B4J Question How can I start the app on Desktop

Sinan Tuzcu

Well-Known Member
Licensed User
Longtime User
Hi guys,

is it possible, to run the app on the Desktop?
I try since yesterday to run the application,, but doesn't work.
I click on the jar file and the mouse cursor rotate but nothing will open and I get also not error message.

I have install the latest version of Java how it is described on the webpage.

BR
Sinan
 

stevel05

Expert
Licensed User
Longtime User
We need some more information before we can give you a proper answer. Which version of Java did you install? It's different for Java 8 and Java 11.
 
Upvote 0

stevel05

Expert
Licensed User
Longtime User
Ok, to run a java app from the desktop in java 11 you need to create an exe file that contains the JRE (Java Runtime Environment) using B4JPackager11.

For Java 8 the JRE is installed on the PC and will run a Jar file.
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
B4JPackager 11 is indeed the way to build a standalone package.
For Java 8 the JRE is installed on the PC and will run a Jar file.
Not always the case. The real difference is that if Java 8 is installed on the computer then you can run apps by double clicking on the compiled jar.
Starting from Java 11, JavaFX is not included in the JRE so executable jars cannot run without some configuration.
 
Upvote 0
Top