• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
RE: java.lang.UnsupportedClassVersionError: Bad version number in.class file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: java.lang.UnsupportedClassVersionError: Bad version number in.class file


  • Subject: RE: java.lang.UnsupportedClassVersionError: Bad version number in.class file
  • From: "Kantala, Dmytro R." <email@hidden>
  • Date: Mon, 14 Jun 2010 09:55:27 -0400
  • Thread-topic: java.lang.UnsupportedClassVersionError: Bad version number in.class file

Title: RE: java.lang.UnsupportedClassVersionError: Bad version number in.class file

Were you able to resolve by switching compiler version?

I am running into the same problem.  I have eclipse configured to compile for 1.5.

Build machine
Snow Leopard: 10.6.0
Eclipse: 3.4.2
Wolips: 3.4.5830
WO: 5.4.3

Server
Leopard: 10.5.8
WO: 5.4.3

Thanks,
DK

-----Original Message-----
From: webobjects-dev-bounces+dkantala=email@hidden on behalf of Jake Bearkley
Sent: Mon 6/14/2010 9:01 AM
To: Farrukh Ijaz
Cc: email@hidden
Subject: Re: java.lang.UnsupportedClassVersionError: Bad version number in.class file

Sorry,

user error, I was trying to start the wrong application!! doh!

I have been working on this too long and need sleep!

thanks for your patience

Bearko

On Mon, Jun 14, 2010 at 10:05 PM, Jake Bearkley <email@hidden> wrote:

> Thanks, but as I have said, I have changed the preference and I still get
> the error.
>
> What else can I do to eliminate the error?
>
> I use no java 1.6 code.  The application is currently being developed on a
> Leopard environment with java 1.5 and I am trying to set up a new
> development machine.
>
> Thanks in Advance
> Bearko
>
>
> On Mon, Jun 14, 2010 at 9:43 PM, Farrukh Ijaz <
> email@hidden> wrote:
>
>> Thats fine! JDK 1.6 compiler can generate code compatible to JDK 1.5. The
>> message is for the target system. I've the same scenario where I have
>> applications in production running on PPC platform 1.5 but I've on my
>> Macbook 1.6.
>>
>> However you may find error if you're having code of 1.6 which is not
>> compatible to 1.5. In that case you need to change it with 1.5 compatible
>> code. But chances are very rare you get an error.
>>
>> Farrukh
>>
>> On 2010-06-14, at 3:01 PM, Jake Bearkley wrote:
>>
>> Hi All,
>>
>> I have done that :) but I still get the error
>>
>> when I select 1.5 as the compiler compliance level, a message appears at
>> the bottom
>> "When selecting 1.5 compliance, make sure to have a compatible JRE
>> installed and activated (currently 1.6)"
>>
>> but I can not install and activate 1.5 JRE because the directory is dimmed
>> when I try and add the JRE!!!
>>
>>
>> Cheers
>> Bearko
>>
>>
>>
>> On Mon, Jun 14, 2010 at 9:24 PM, Farrukh Ijaz <
>> email@hidden> wrote:
>>
>>> Eclipse > Preferences > Java > Compiler
>>>
>>> Set it to Java 1.5 before compiling.
>>>
>>> You can do the similar setup per project.
>>>
>>> Farrukh
>>>
>>> On 2010-06-14, at 2:51 PM, Jake Bearkley wrote:
>>>
>>> > HI All,
>>> >
>>> > I am trying to build an application on Snow Leopard with Java 1.6 and
>>> run on a Leopard server with Java 1.5
>>> >
>>> > Can someone give me guidance on how to do this.
>>> >
>>> > Java 1.5 is a symbolic link to 1.6 on the file system
>>> >
>>> > Within eclipse I have attempted to set the Workspace settings to use
>>> 1.5, to do this I also need to set the System JRE.
>>> >
>>> > I am unable to install JRE for 1.5, when I try to install it, I am
>>> unable to select the 1.5 directory as it is dimmed.
>>> >
>>> > can anyone enlighten me?
>>> >
>>> > Thanks in advance
>>> > Bearko
>>> >
>>> > _______________________________________________
>>> > Do not post admin requests to the list. They will be ignored.
>>> > Webobjects-dev mailing list      (email@hidden)
>>> > Help/Unsubscribe/Update your Subscription:
>>> >
>>> >
>>> > This email sent to email@hidden
>>>
>>>
>>
>>
>




Confidential & Privileged

Unless otherwise indicated or obvious from its nature, the information contained in this communication is attorney-client privileged and confidential information/work product. This communication is intended for the use of the individual or entity named above. If the reader of this communication is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error or are not sure whether it is privileged, please immediately notify us by return e-mail and destroy any copies--electronic, paper or otherwise--which you may have of this communication.

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: java.lang.UnsupportedClassVersionError: Bad version number in.class file
      • From: Chuck Hill <email@hidden>
References: 
 >java.lang.UnsupportedClassVersionError: Bad version number in .class file (From: Jake Bearkley <email@hidden>)
 >Re: java.lang.UnsupportedClassVersionError: Bad version number in.class file (From: Jake Bearkley <email@hidden>)
 >Re: java.lang.UnsupportedClassVersionError: Bad version number in.class file (From: Farrukh Ijaz <email@hidden>)
 >Re: java.lang.UnsupportedClassVersionError: Bad version number in.class file (From: Jake Bearkley <email@hidden>)
 >Re: java.lang.UnsupportedClassVersionError: Bad version number in.class file (From: Jake Bearkley <email@hidden>)

  • Prev by Date: Re: java.lang.UnsupportedClassVersionError: Bad version number in.class file
  • Next by Date: Re: java.lang.UnsupportedClassVersionError: Bad version number in.class file
  • Previous by thread: Re: java.lang.UnsupportedClassVersionError: Bad version number in.class file
  • Next by thread: Re: java.lang.UnsupportedClassVersionError: Bad version number in.class file
  • Index(es):
    • Date
    • Thread