Hello everyone, it's been a while since I used B4J as I don't develop anymore, but this weekend I wrote an appilcation that should solve some of my file storage problems, now compiling the app doesn't run as a stand alone and I remember this problem that I had already raised it previously without solving anything.
May I ask what are the steps (understandable to me) to compile and distribute this simple app!
As you are using Java8, by simply clicking the app should be enough to run it.
if that doesnt work; check your java version of the PC.
enter into CMD and write: java -version
it should be java 8, if it is any other. then
Go to your java 8 folder and into the bin folder
From there run the command java.exe -version, if you see the 8 now. then run
java.exe -jar c:/path/to/your/executable.jar
I'll summarize - there are two options:
- Use Java 11 / 14 and create a standalone package (Project - Build Standalone Package)
- Use Java 8 and the jar itself is self executable, which means that if Java 8 is installed properly on the client computer, the client can run the jar with a double click.