Dogbonesix Active Member Licensed User Longtime User Jun 7, 2017 #1 I get this message when trying to compile with the latest version. I have increased the MaxRamForDex from 512 to 1024 to both INI files and still have the same problem. The same application compiled without error in ver 6.8. Any help is appreciated. B4A version: 7.01 Parsing code. (0.00s) Compiling code. (0.31s) Compiling layouts code. (0.02s) Organizing libraries. (0.00s) Generating R file. (0.09s) Compiling generated Java code. (1.62s) Convert byte code - optimized dex. Error java.lang.UnsupportedClassVersionError: com/android/dx/command/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"
I get this message when trying to compile with the latest version. I have increased the MaxRamForDex from 512 to 1024 to both INI files and still have the same problem. The same application compiled without error in ver 6.8. Any help is appreciated. B4A version: 7.01 Parsing code. (0.00s) Compiling code. (0.31s) Compiling layouts code. (0.02s) Organizing libraries. (0.00s) Generating R file. (0.09s) Compiling generated Java code. (1.62s) Convert byte code - optimized dex. Error java.lang.UnsupportedClassVersionError: com/android/dx/command/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"
fixit30 Active Member Licensed User Longtime User Jun 7, 2017 #2 Erel said: - Java 8 is required (Tools - Configure Paths) Click to expand... https://www.b4x.com/android/forum/threads/b4a-v7-01-has-been-released.79908/#content You need to update your Java SDK version to Java 8. Make sure to also configure your paths to use the new version. Upvote 0
Erel said: - Java 8 is required (Tools - Configure Paths) Click to expand... https://www.b4x.com/android/forum/threads/b4a-v7-01-has-been-released.79908/#content You need to update your Java SDK version to Java 8. Make sure to also configure your paths to use the new version.
Dogbonesix Active Member Licensed User Longtime User Jun 8, 2017 #3 That fix the problem. I missed the new Java requirement in the notes... Thanks Upvote 0