I have a vbscript that my Windows-only application uses. I call it using Runtime
And it works.
Now I want to distribute the application as a jar. Where should I put the script?
You might want to think of a folder called
scripts that would be at the same level as your
Include the file in your JAR. The first time you need it, copy it from the JAR:
And store it in the Application Data directory:
File file = new File(System.getProperty("user.home") + "/Application Data/MyApp/my_script.vbs");
Run it as needed from there.