B4J Question [SOLVED] error using B4J Packager 1.50

free2end

Member
Licensed User
Hi,
on W7-32bit, i have installed the jdk 8u192, inno 5.6.1 and B4J 6.80 and compile (release) a blank new .jar to try the B4J Packager 1.50 (Archiver 1.11 and jControlFX 1.50) :
https://www.b4x.com/android/forum/threads/ui-apps-packaging-self-contained-installers.56854/

with the following erros (when running the B4JPackager):

(release mode)
App identifier: b4j.example.main
java.lang.UnsupportedClassVersionError: com/sun/javafx/tools/packager/Main : Unsupported major.minor version 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)
Exception in thread "main"
Success: true
ExitCode: 1

(debug mode)
Waiting for debugger to connect...
Program started.
App identifier: b4j.example.main
Exception in thread "main" oadClass(ClassLoader.java:358)
at sun.launcher.LauncherHelper.checkAndLoadMain(Launc
Exception in thread "main" oadClass(ClassLoader.java:358)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)
y.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
Exception in thread "main" oadClass(ClassLoader.java:358)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)
Exception in thread "main"
Success: true
ExitCode: 1

when tried on W7-64bit with 64bit jdk i have no errors...

any help please?
 
Last edited:

free2end

Member
Licensed User
Thank you Erel for your point (=Java 7)

I found that JAVA_HOME pointed to another location (changed by another app with embedded java7 files)
so the solution was very simple, then
 
Upvote 0
Top