I got the following error for the command ionic build android I don't have a clue what this error means. What should be done to rectify this error.I read that it happens if you dont have all the required platforms but I already installed almost all the versions of android along with latest build tools, support repositories and libraries.
-dex:
[dex] input: C:\Users\XXX\Desktop\IonicProjects\Master\platfor
ms\android\ant-build\classes
[dex] input: C:\Users\XXX\Desktop\IonicProjects\Master\platfor
ms\android\CordovaLib\ant-build\classes.jar
[dex] Pre-Dexing C:\Users\XXX\Desktop\IonicProjects\Master\pla
tforms\android\CordovaLib\ant-build\classes.jar -> classes-564f85b75a48715c68c6f
85da336a58d.jar
[dx] java.lang.UnsupportedClassVersionError: com/android/dx/command/Main
: Unsupported major.minor version 52.0
[dx] at java.lang.ClassLoader.defineClass1(Native Method)
[dx] at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
[dx] at java.security.SecureClassLoader.defineClass(SecureClassLoader
.java:142)
[dx] at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
[dx] at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
[dx] at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
[dx] at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
[dx] at java.security.AccessController.doPrivileged(Native Method)
[dx] at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
[dx] at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
[dx] at java.lang.ClassLoader.loadClass(ClassLoader.java:412)
[dx] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
[dx] at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
[dx] at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.j
ava:482)
[dx] Exception in thread "main"
BUILD FAILED
D:\android-sdk\tools\ant\build.xml:888: The following error occurred while execu
ting this line:
D:\android-sdk\tools\ant\build.xml:890: The following error occurred while execu
ting this line:
D:\android-sdk\tools\ant\build.xml:902: The following error occurred while execu
ting this line:
D:\android-sdk\tools\ant\build.xml:283: null returned: 1
Total time: 13 seconds
C:\Users\XXX\Desktop\IonicProjects\Master\platforms\android\cordova\
node_modules\q\q.js:126
throw e;
^
Error code 1 for command: cmd with args: /s,/c,ant,debug,-f,C:\Users\XXX\Desktop\IonicProjects\Master\platforms\android\build.xml,-Dout.dir=ant-buil
d,-Dgen.absolute.dir=ant-gen
ERROR running one or more of the platforms: Error: cmd: Command failed with exit
code 1
You may not have the required environment or OS to run this project
Any sort of help or suggestion would be appreciated.
Thanks
Unsupported major.minor version 52.0 indicates that you need at least Java 8 to run the build, so try to update your JDK (Java class file number).
Related
Installed clean version of JEE Eclipse 2022-06 and then installed JBoss Tools 4.24.0. No configuration changes. Now getting these errors which make Eclipse un-usable.
openjdk 11.0.15 2022-04-19 LTS
OpenJDK Runtime Environment 18.9 (build 11.0.15+9-LTS)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.15+9-LTS, mixed mode, sharing)
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.UnsupportedClassVersionError: com/redhat/qute/ls/QuteServerLauncher has been compiled by a more recent version of the Java Runtime (class file version 55.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:352)
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:601)
Exception in thread "main" java.lang.UnsupportedClassVersionError: com/github/cameltooling/lsp/internal/Runner has been compiled by a more recent version of the Java Runtime (class file version 55.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 org.springframework.boot.loader.LaunchedURLClassLoader.loadClass(LaunchedURLClassLoader.java:151)
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:46)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:108)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:58)
at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:88)
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.UnsupportedClassVersionError: com/redhat/qute/ls/QuteServerLauncher has been compiled by a more recent version of the Java Runtime (class file version 55.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:352)
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:601)
Exception in thread "main" java.lang.UnsupportedClassVersionError: com/github/cameltooling/lsp/internal/Runner has been compiled by a more recent version of the Java Runtime (class file version 55.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 org.springframework.boot.loader.LaunchedURLClassLoader.loadClass(LaunchedURLClassLoader.java:151)
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:46)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:108)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:58)
at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:88)
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.UnsupportedClassVersionError: com/redhat/qute/ls/QuteServerLauncher has been compiled by a more recent version of the Java Runtime (class file version 55.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:352)
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:601)
I'm trying to install orientdb server on my Mac (High Sierra, Version 10.13.3) after downloading Java ( Version 8 Update 191) but I'm getting "Unsupported major.minor version 52.0" error. Can you help?
Doing ./server.sh or ./console.sh returns:
removing old pid file
/Users/rony/Downloads/orientdb-3.0.9/bin/orient.pid Exception in
thread "main" java.lang.UnsupportedClassVersionError:
com/orientechnologies/orient/server/OServerMain : Unsupported
major.minor version 52.0 at java.lang.ClassLoader.defineClass1(Native
Method) at
java.lang.ClassLoader.defineClassCond(ClassLoader.java:637) at
java.lang.ClassLoader.defineClass(ClassLoader.java:621) at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283) at
java.net.URLClassLoader.access$000(URLClassLoader.java:58) at
java.net.URLClassLoader$1.run(URLClassLoader.java:197) at
java.security.AccessController.doPrivileged(Native Method) at
java.net.URLClassLoader.findClass(URLClassLoader.java:190) at
java.lang.ClassLoader.loadClass(ClassLoader.java:306) at
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at
java.lang.ClassLoader.loadClass(ClassLoader.java:247)
I have been using Parasoft SOATEST 9.9 and was using it to develop and run my web services tests against our server(using Oracle 11g drivers). Recently we moved to use the Oracle 12c drivers(12.2.0.1) and I replaced my earlier oracle.jar to 'ojdbc8-12.2.0.1.jar' and made sure to point this in my Parasoft > Preferences> JDBC drivers (enclsoed screenshot of the Preferences window) and after that when I run my tests, I am getting the below error and not able to connect to database: Can someone please help ? Thanks in advance!
[
Error Message:
DataSource: oracle/jdbc/OracleDriver : Unsupported major.minor version 52.0
Additional Details:
java.lang.UnsupportedClassVersionError: oracle/jdbc/OracleDriver : 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 java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at com.parasoft.xtest.common.web.XTestJdbcClassLoaderProvider$WebJdbcClassLoader.loadClass(XTestJdbcClassLoaderProvider.java:68)
at com.parasoft.xtest.common.web.XTestJdbcClassLoaderProvider$WebJdbcClassLoader.loadClass(XTestJdbcClassLoaderProvider.java:59)
at com.parasoft.db.JdbcConnectionFactory.getDriverStatic(JdbcConnectionFactory.java:75)
at com.parasoft.db.JdbcConnectionFactory.getDriver(JdbcConnectionFactory.java:58)
at com.parasoft.db.JdbcConnectionFactory.getJDBCConnection(JdbcConnectionFactory.java:36)
at com.parasoft.db.AppJdbcConnectionFactory.getJDBCConnection(AppJdbcConnectionFactory.java:25)
at com.parasoft.db.VariableDbConnectionProvider.getConnection(VariableDbConnectionProvider.java:41)
at webtool.db.DbTool.doApply(DbTool.java:142)
at webtool.tool.WebTool.applyTool(WebTool.java:127)
at com.parasoft.tool.Tool.apply(Tool.java:285)
at com.parasoft.tool.Tool.getApplyResult(Tool.java:297)
at webtool.test.ToolTest.run(ToolTest.java:840)
at webtool.test.Test$4.loop(Test.java:912)
at webtool.test.execution.CompositeExecutionLoop.loop(CompositeExecutionLoop.java:60)
at webtool.test.execution.CompositeExecutionLoop.loop(CompositeExecutionLoop.java:69)
at webtool.test.execution.CompositeExecutionLoop.loop(CompositeExecutionLoop.java:69)
at webtool.test.execution.CompositeExecutionLoop.loop(CompositeExecutionLoop.java:69)
at webtool.test.execution.TestSuiteLoop.runSetUpTearDownTests(TestSuiteLoop.java:247)
at webtool.test.execution.TestSuiteLoop.runSetUpTests(TestSuiteLoop.java:221)
at webtool.test.execution.TestSuiteLoop.setup(TestSuiteLoop.java:133)
at webtool.test.execution.CompositeExecutionLoop.setup(CompositeExecutionLoop.java:109)
at webtool.test.execution.CompositeExecutionLoop.loop(CompositeExecutionLoop.java:54)
at webtool.test.execution.CompositeExecutionLoop.loop(CompositeExecutionLoop.java:69)
at webtool.test.execution.CompositeExecutionLoop.loop(CompositeExecutionLoop.java:69)
at webtool.test.execution.CompositeExecutionLoop.loop(CompositeExecutionLoop.java:69)
at webtool.test.execution.CompositeExecutionLoop.loop(CompositeExecutionLoop.java:69)
at webtool.test.Test.run(Test.java:1071)
at webtool.test.TestExecutor.run(TestExecutor.java:361)
What is your JDK version? ojdbc8.jar requires JDK 8. Please refer to FAQ for more details.
Your Parasoft SOAtest v9.9 is using older version of Java (Java 7)
You have two options:
upgrade your SOAtest to latest version (recommended - now v9.10.3)
start soatest.exe with option -Zjava_home {path_to_Java)
i.e: soatest.exe -Zjava_home "C:\Program Files\Java\jdk1.8.0_131"
Exporting google vr unity SDK master sample file from unity and getting an error like Error building Player: CommandInvokationFailure: Unable to convert classes into dex format. See the Console for details.
Please see the complete error
Error building Player: CommandInvokationFailure: Unable to convert classes into dex format. See the Console for details.
C:\Program Files\Java\jdk1.7.0_51\bin\java.exe -Xmx2048M -Dcom.android.sdkmanager.toolsdir="C:/Users/Administrator/AppData/Local/Android/sdk\tools" -Dfile.encoding=UTF8 -jar "C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\sdktools.jar" -
stderr[
Exception in thread "main" 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 java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:270)
at SDKMain.main(SDKMain.java:127)
]
stdout[
]
It seems to be a problem of mismatch between the JDK necessary for the google vr sdk and yours. You might need to update your JDK and Android SDK.
This links found another workaround:
link 1
link 2
I installed the google app engine sdk and plugin and every time I'm trying to save a java file my IDE (Eclipse Kepler) shows me an error window: "Java Virtual Machine Launcher - Could not find the main class com.google.appengine.tools.enhancer.Enhance. Program will exit".
In the console there is also a message:
"java.lang.UnsupportedClassVersionError: com/google/appengine/tools/enhancer/Enhance : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Exception in thread "main"
It happens only in GAP and GWT projects...simple web or java projects are fine.
How can I fix it?
Thanks.