What is the default drive for your application? /opt/
will be C:/opt/
on Windows if this is the drive of your current working directory.
Instead of storing data in a system directory like /opt
I would use a directory relative to the user's home directory i.e. System.getProperty("user.home")