B4J Question Enable to run b4J program

lucdrb

Active Member
Licensed User
Longtime User
Hi,

I can't run my program with the Jar exe file.

In debug mode it's working fine, directly after the complilation in the release mode it's also running fine but when I try to run it with the jar file, I didn't have anything.

I've to kill the Java(TM) platform SE binary to rerun the program debug mode

I use B4J version 7

Should I forgot something?

Thanks for your Help
Luc
 

lucdrb

Active Member
Licensed User
Longtime User
I only said that everything is ok in debug mode and when I execute in release mode the program start well after the complilation.

When I close B4J and try to run the program with a double clic on the jar file (find in the program_name/object), nothing happend.
 
Upvote 0

lucdrb

Active Member
Licensed User
Longtime User
It's a UI app
If it's can help I try to run it on a Mac and I got the same thing
 
Upvote 0

OliverA

Expert
Licensed User
Longtime User
Which JDK?
 
Upvote 0

metheoneandonly

Member
Licensed User
Longtime User
Hello, same here, exactly the same problem. It says "Exception in thread "JavaFX Application Thread" Exception in thread "main" java.lang.UnsupportedClassVersionError: b4j/example/main has been compiled by a more recent version of the Java Runtime (class file version 53.0), this version of the Java Runtime only recognizes class file versions up to 52.0". JDK is OpenJDK 11 + OpenJFX 11 as said on the B4J Download page, JRE is most recent.
 
Upvote 0

Daestrum

Expert
Licensed User
Longtime User
There is no JRE for java 11, the app has to run against the JDK java.exe.

If you run Java -version in a command prompt window, what does it return.
 
Upvote 0

lucdrb

Active Member
Licensed User
Longtime User
Here the result of java _version:
java version "1.8.0_201"
Java(TM) SE Runtime Environment (build 1.8.0_201-b09)
Java HotSpot(TM) 64-Bit Server VM (build 25.201-b09, mixed mode)

and I'm using the JDK 11.0.1

I'll try the B4Jpackager11 and I got 2 errors, I'll open a new thread for it
Thanks
Luc
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…