B4J Question B4J Start App with Java Version 6

coyote

Member
Licensed User
Longtime User
Hi,

I have a Win 7 PC without admin privileges.
The installed version of Java is Java 6 39 (Build 1.6.0._39-b04).

B4J is installed on a Win 7 PC with Java 7 51 (Build 1.70_51-b13).

When I start my program on the non-admin PC, I get the message:
B4X:
Java FX Launcher
This application requires a newer version of the Java runtime.

Is it possible to run my application with Java 6?

Coyote
 

Theera

Well-Known Member
Licensed User
Longtime User
Non-UI ,You can use JDK 6,but UI ,You must use JDK7 up.
 
Upvote 0

magoandroid

Member
Licensed User
Longtime User
Hi coyote,

if you want to use different JDK/JRE than the one installed on the system and you don't have admin privileges, you can use L4J to build an executable that contains the JDK/JRE folder and your application.

I pointed this out in another thread, you can find it here although it was related to a networking issue is still valid for your scenario
Create Windows native executables (exe files)

Cheers
MAgo
 
Upvote 0

coyote

Member
Licensed User
Longtime User
Hey Mago,

thanks for the hint. It works, I just had same trouble with the correct path to jre.

When Bundled JRE path is just: jre
Then the correct path looks like:

c:\app\test.exe
c:\app\test.jar
c:\app\jre

Coyote
 
Last edited:
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…