File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "UnsupportedClassVersionError" Watch "UnsupportedClassVersionError" New topic


tirapa reddy

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

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

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
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 15093

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 8 API documentation
I agree. Here's the link:
subject: UnsupportedClassVersionError
It's not a secret anymore!