It's not a secret anymore!*
The moose likes Beginning Java and the fly likes class version problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "class version problem" Watch "class version problem" New topic

class version problem

Ram Korutla
Ranch Hand

Joined: Dec 24, 2007
Posts: 80

I had re-compiled the sources of Daisy Diff open source with JDK1.5 using ant which creates a jar of the compiled classes.

However, when I checked the version of the class, it is 50 and it said I should use JDK6 or above.

Our project is supposed to work with JDK 5.

Can someone let me know how to overcome above problem

Campbell Ritchie

Joined: Oct 13, 2005
Posts: 38087
Find the documentation for the java tool, and it has options for source and output compatibility.
It is sorta covered in the JavaRanch Style Guide.
subject: class version problem
Similar Threads
Overloading with var-args
Local Class Declaration
Debugging WebSphere 5.02 using Eclipse 2.1
What does this mean: Compiled from (version 1.3 : 47.0, super bit)?
How to find which version of java was used to compile particular java class.