B4J Question how can i run my project.jar

Have you added JAVA_HOME to your environment variables?
If not:


  • (if you have windows 10 then search environment variables in start. if not do the following)
  • Go to Control Panel, choose System.
  • Choose Advanced system settings. ...
  • On the Advanced tab, click Environment Variables. ...
  • Click New to create a new environment variable.
Now in the Variable name field, type JAVA_HOME
click Browse Directory and select the bin folder in your installed java directory
for example: C:\Program Files\Java\jdk-12.0.2\bin (Note that it shouldn't be exactly like this. this is just an example)
Click ok and close other windows. try running your exported jar file in your project directory/objects
Let me know if it worked
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
With Java 11 you are no longer able to create executable JARs.
You need to use a small Batch to start it. Search the Forum for an Example.

Alternatively you could use Java 8. With Java 8 the JARs are Executable.

Or use B4jpackager 11 and create an EXE for your java app.

 
Upvote 0

Peter Simpson

Expert
Licensed User
Longtime User
Just install Java JRE 8+ (I personally use 10.0.2 on client computers) and that's is all you need to install, double click on the .jar file and and watch your program run ?
 
Upvote 0
Top