Win a copy of JDBC Workbook this week in the JDBC and Relational Databases forum
or A Day in Code in the A Day in Code forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • salvin francis
  • fred rosenberger


Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
author and iconoclast
Posts: 24203
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
Arockia Raj
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
Is this the real life? Is this just fantasy? Is this a tiny ad?
Devious Experiments for a Truly Passive Greenhouse!
    Bookmark Topic Watch Topic
  • New Topic