• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

UnsupportedClassVersionError

 
tirapa reddy
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i installed oracle ,after that i got an error

Exception in thread "main" java.lang.UnsupportedClassVersionError: first (Unsupp
orted major.minor version 49.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)

why this problem raises ,please tell me the solution i want use both oracle and java
 
Kaydell Leavitt
Ranch Hand
Posts: 689
Eclipse IDE Firefox Browser Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I believe that this error means that there is an incompatibility between the Java application that you developed and the Java Runtime Environment (JRE) that the Java application is trying to use.
 
tirapa reddy
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this error come for every program .after uninstall oracle only it is working.
but i want to use both .is there any solution to this.

thanks in advance
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My understanding is that Oracle comes with its own JVM (called "Oracle JVM"). Evidently the Oracle JVM is a version prior to what your code was compiled with.

I don't know much about Oracle, but it might help if you tell us what version of Oracle you're using.
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Pie
Posts: 15369
40
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oracle very annoyingly installs a JVM when you install Oracle (client or server software) on your computer. Remove the Oracle JVM from your PATH environment variable after installing Oracle.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic