Skip to main content



      Home
Home » Newcomers » Newcomers » eclipse under leopard - UnsupportedClassVersion
eclipse under leopard - UnsupportedClassVersion [message #248204] Thu, 07 February 2008 04:36 Go to next message
Eclipse UserFriend
Originally posted by: roy782.gmail.com

Hi, im not new to eclipse but new to eclipse under leopard( Mac os) and mac
for what i understand jdk is already installed in leopard so i don't need
to download jdk.

i ave two problems
1. when i import external jars i get an "Exception in thread "main"
java.lang.UnsupportedClassVersionError: Bad version number in .class file"

for what i understand it means that i have an old version of jdk?? can
someone please help me resolve this issue

2. i can't locate jdk src.zip file in order to view jdk document an
classes. does any know where can i locate it under leopard?

thanks anyhow
Roy
Re: eclipse under leopard - UnsupportedClassVersion [message #248266 is a reply to message #248204] Thu, 07 February 2008 11:40 Go to previous messageGo to next message
Eclipse UserFriend
Roy wrote:
> Hi, im not new to eclipse but new to eclipse under leopard( Mac os) and mac
> for what i understand jdk is already installed in leopard so i don't
> need to download jdk.
>
> i ave two problems
> 1. when i import external jars i get an "Exception in thread "main"
> java.lang.UnsupportedClassVersionError: Bad version number in .class file"
>
> for what i understand it means that i have an old version of jdk?? can
> someone please help me resolve this issue
>
> 2. i can't locate jdk src.zip file in order to view jdk document an
> classes. does any know where can i locate it under leopard?
>
> thanks anyhow
> Roy
>
>

1.
Run java -version on the commandline to see which version of Java is
used by default. If it's 1.4 (which was the default on OS X 10.4) you
there is some parameter that you can set in eclipse.ini to select the
correct Java version (you need at least 1.5).

2. Everything Java related on OSX can be found in /Library/Java

Jochen
Re: eclipse under leopard - UnsupportedClassVersion [message #248405 is a reply to message #248266] Fri, 08 February 2008 09:32 Go to previous messageGo to next message
Eclipse UserFriend
Jochen <jochen.wuttke@gmx.de> wrote:
> 1. Run java -version on the commandline to see which
> version of Java is used by default. If it's 1.4 (which
> was the default on OS X 10.4) you there is some parameter
> that you can set in eclipse.ini to select the correct
> Java version (you need at least 1.5).

The default Java version on a fresh Leopard install is
1.5.0_13. On OSX 10.4.11, Apple updates also bring it to
1.5.0_13.

I was able to install Eclipse 3.4M4 on a Leopard machine,
including subclipse, and try it out briefly; it seemed to
work OK for editing and compilation but I didn't know what
to test to see if the "crashing problems" had been cured.
Re: eclipse under leopard - UnsupportedClassVersion [message #248482 is a reply to message #248405] Sun, 10 February 2008 02:44 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: roy782.gmail.com

my version is 1.5.0_13. and i also checked in eclipse that it
works on the same version and it does.
i still have the same problem when i import a jar file
can someone help?
thanks
Roy
Re: eclipse under leopard - UnsupportedClassVersion [message #248496 is a reply to message #248482] Sun, 10 February 2008 13:22 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: cboe.news.eclipse.org

Sounds like you are trying to import a jar created with Java 1.6. You
need to get a version of the jar file that was compiled with 1.5 or
earlier.

On Sun, 2008-02-10 at 07:44 +0000, Roy wrote:
> my version is 1.5.0_13. and i also checked in eclipse that it
> works on the same version and it does.
> i still have the same problem when i import a jar file
> can someone help?
> thanks
> Roy
>
>
Re: eclipse under leopard - UnsupportedClassVersion [message #248825 is a reply to message #248496] Wed, 13 February 2008 03:23 Go to previous message
Eclipse UserFriend
David Wegener wrote:
> Sounds like you are trying to import a jar created with Java 1.6. You
> need to get a version of the jar file that was compiled with 1.5 or
> earlier.

More specifically, you need to recompile all classes in your jar file
(prior to import) with the javac "-target 1.5" option. This will create
Java 1.5 class files.

HTH,
Asaf

--
Asaf Yaffe
Eclipse TPTP Committer, JVMTI Profiler
Previous Topic:Protect agains data loss from accidental disconnects?
Next Topic:daily builds engine?
Goto Forum:
  


Current Time: Mon Jun 02 18:06:51 EDT 2025

Powered by FUDForum. Page generated in 0.07093 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top