aspose file tools*
The moose likes Java in General 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 » Java in General
Bookmark "UnsupportedClassVersionError" Watch "UnsupportedClassVersionError" New topic
Author

UnsupportedClassVersionError

Arockia Raj
Ranch Hand

Joined: Dec 08, 2006
Posts: 37
Hi,
I am having library jar file which is compiled with jdk 1.3 version.My application is running in jdk 1.4.When i am trying to run the files from the library i am getting the following error.

java.lang.UnsupportedClassVersionError: (Unsupported major.minor version 48.0)

Please help me in resolving this issue.

Also library source code is not with me and hence recomiling with jdk 1. 4 is not possible
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24184
    
  34

Your problem must be the other way around; old class files work just fine with new JDKs, but class files compiled on a new JDK won't, by default, work with some older ones. Try typing "java -version" to make sure of the Java version you're running when you run the application. Please don't tell me you already know what it will say -- you might be surprised!


[Jess in Action][AskingGoodQuestions]
Arockia Raj
Ranch Hand

Joined: Dec 08, 2006
Posts: 37
Thankx for your reply,
I checked the Major version of the library class file and the project file.

Library Class file Major Version : 45 --JDK 1.1
project class file Major Version : 48 --JDK 1.4

I am able to load and run both the class files if my WSAD JDK is 1.3.But if i change my compiler settings to JDK 1.4 i am getting unsupported class version error.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: UnsupportedClassVersionError