I have a program that I want to publish that was built using Java. At the moment, the program creates folders / files in the directory:
"C:\Users\Steve\Documents\myProgram"
This obviously won't work unless the users have the exact same folder structure. How do I direct the program to a folder on the desktop? As the path "C:\Users\Steve\Desktop" wouldn't work.
Publishing the program using NetBeans creates a .jar. As I want the program to be used by many people, is it possible to create a batch file that using commands:
- Creates a folder onto the desktop (that stores the program files created through the program)
- Then launch the .jar
I could then get a converter and change the .bat to .exe. I'm not sure if this is the correct way about it.
On a side note, I'm pretty sure this wouldn't work as the user would still need Java installed to run the program. I'm not 100% sure, hence me asking.