Jul 26, 2008

Error Unsupppoted Class Version 49.0 - none

Free Web Hosting, No Ads > CONTRIBUTE > Computers > Programming Languages > Java, Java Servlets, Java Script, & JSP

free web hosting

Error Unsupppoted Class Version 49.0 - none

Nileshpatel
When i run my war file in tomcat5.5.9 it is display Unsupported version 49.0 error .Do you have any idea?

Reply

slu
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


Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Recent Queries:-
  1. unsupported classversion 49.0 - 26.44 hr back. (1)
  2. java class version 49.0 - 38.60 hr back. (1)
  3. class version 49 - 58.89 hr back. (1)
  4. version java 49.0 - 84.28 hr back. (1)
  5. java class version error - 85.21 hr back. (1)
  6. classversion - 133.86 hr back. (1)
  7. class version 49.0 - 89.64 hr back. (2)
  8. free java ver 49.0 - 197.80 hr back. (1)
Similar Topics

Keywords : error, unsupppoted, class, version, 49, 0

  1. Javascript Error
    Error "missing ) in parenthetical" with JSON statment (2)
  2. Lightbox Js Error In Opera
    Opacity Issue (2)
    I use the Lightbox JS script for displaying images ( seen here ). It works great, but the trouble
    is, in Opera when you click an image to view a larger version, the image will load up and everything
    like usual but if your mouse cursor is hovered over the image the opacity will get stuck at less
    than full. When an image usually loads the opacity starts at very opaque(maybe 0) and fades in to
    full opacity. But for some reason in Opera, hovering over it will stop this function from finishing.
    Take a look at the script and see if you can help me figure out why this is happen....
  3. How Do I Create An Array Of Objects?
    The code in the tutorial I have read returns an error upon compilation (3)
    I want to create an array of type Cards. Is this the right way of doing it? CODE Card
    decker[]; decker = new Card[5]; I always get the error DeckofCards: java:47:
    missing return statement whenever I compile this.....

    1. Looking for error, unsupppoted, class, version, 49, 0

Searching Video's for error, unsupppoted, class, version, 49, 0
advertisement



Error Unsupppoted Class Version 49.0 - none



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE