Jump to content
xisto Community
Sign in to follow this  
Nileshpatel

Error Unsupppoted Class Version 49.0 none

Recommended Posts

You're trying to run Java code compiled with 1.5 SDK on an earlier VM (e.g. 1.4).

 

Version 49 => Java 1.5 and 48 => Java 1.4

 

By default compiling code with a 1.5 Java compiler will generate bytecode that only runs on a 1.5 VM, but you can set flags to make the bytecode backwards compatible.

 

Tomcat 5.5.x is (AFAIK) buildt with 1.5 SDK, but with backwards compability enabled. Thus Tomcat can run on an 1.4 VM...

 

You could either upgrade the VM Tomcat is running on, or compile your code with the "-target 1.4" option, e.g.

 

javac -target 1.4 MyCode.java

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.