Hi all programmers,
I've a very strange issue on B4J 10.00.
I've developed some graphic controls libraries used on my apps for a long time.
These libraries are developed directly in B4J and compiled as libraries.
Now I've some projects that works as expected, just by select the libraries in the Library Tab.
On another project I do the same, but when I compile B4J log show me this error message:
If I import the library classes inside the projects they compile without errors.
Recently i dismissed the AdditionalLibraries folder by just renaming it AdditionalLibrariesBackup and created a new one in Documents containing libraries for all platforms:
Please can someone explain me because this happen ? I missed something ?
I have to release in the forum some libraries, but before it happen I have to solve this problem.
Many thanks
I've a very strange issue on B4J 10.00.
I've developed some graphic controls libraries used on my apps for a long time.
These libraries are developed directly in B4J and compiled as libraries.
Now I've some projects that works as expected, just by select the libraries in the Library Tab.
On another project I do the same, but when I compile B4J log show me this error message:
Libraries are compiled with B4J itself, so I don't know because java version is not the same. On preferences I've set JDK 11.main._process_globals (java line: 1548)
java.lang.UnsupportedClassVersionError: b4j/example/classled 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
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:756)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:473)
at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:355)
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
at b4j.example.main._process_globals(main.java:1548)
at b4j.example.main.initializeProcessGlobals(main.java:1463)
at b4j.example.main.start(main.java:34)
at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$8(LauncherImpl.java:863)
at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$7(PlatformImpl.java:326)
at com.sun.javafx.application.PlatformImpl.lambda$null$5(PlatformImpl.java:295)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$6(PlatformImpl.java:294)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$null$4(WinApplication.java:185)
at java.lang.Thread.run(Thread.java:750)
If I import the library classes inside the projects they compile without errors.
Recently i dismissed the AdditionalLibraries folder by just renaming it AdditionalLibrariesBackup and created a new one in Documents containing libraries for all platforms:
On this folder I've B4A, B4J, B4i, B4R, B4X and B4XlibXMLFiles sub-folders respectively containing additional libraries for any platform.C:\Users\Massimo\Documents\B4X-AdditionalLibraries
Please can someone explain me because this happen ? I missed something ?
I have to release in the forum some libraries, but before it happen I have to solve this problem.
Many thanks
Last edited: