wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes UnsupportedClassVersionError Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "UnsupportedClassVersionError" Watch "UnsupportedClassVersionError" New topic
Author

UnsupportedClassVersionError

tirapa reddy
Greenhorn

Joined: May 05, 2007
Posts: 19
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

Joined: Nov 18, 2006
Posts: 689

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

Joined: May 05, 2007
Posts: 19
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

Joined: Aug 31, 2004
Posts: 11343

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.


"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14114
    
  16

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.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: UnsupportedClassVersionError