Results 1 to 2 of 2
  1. #1
    makpandian's Avatar
    makpandian is offline Senior Member
    Join Date
    Dec 2008
    Location
    Chennai
    Posts
    396
    Rep Power
    6

    Default Shall we skip Unsupported class version error?

    Hi,
    I am developing a web application in JDK5 in eclipse .But I use JBOSS 5 which configured with JDK6 as my app server. Due to some internal function I can t change my JDK in version in server and development environment.

    I have suffering Unsupported class file version error Because I compiled my class in JDK5 and try to run JDK6. Is there any way to skip this problem.?
    Mak
    (Living @ Virtual World)

  2. #2
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,000
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by makpandian View Post
    Hi,
    I am developing a web application in JDK5 in eclipse .But I use JBOSS 5 which configured with JDK6 as my app server. Due to some internal function I can t change my JDK in version in server and development environment.

    I have suffering Unsupported class file version error Because I compiled my class in JDK5 and try to run JDK6. Is there any way to skip this problem.?
    No, the entire idea is too preposterous to be mentioned. The JRE can't guarantee any forward compatibility, e.g. the entire class format could've changed in a future release of the JDK. You have to bring your JRE and JDK in sync.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

Similar Threads

  1. Replies: 5
    Last Post: 03-31-2011, 12:17 PM
  2. Class Version in Serialization
    By Gunas in forum New To Java
    Replies: 5
    Last Post: 02-04-2010, 04:01 AM
  3. Scanner Skip
    By right2001 in forum New To Java
    Replies: 16
    Last Post: 04-17-2009, 03:08 AM
  4. compilation error(version problem?)
    By Ms.Ranjan in forum New To Java
    Replies: 3
    Last Post: 07-11-2008, 04:31 PM
  5. Replies: 1
    Last Post: 08-09-2007, 07:32 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •