Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 294029 - Failed to emerge dev-java/jaxme-0.5.2 java.lang.UnsupportedClassVersionError: Bad version number in .class
Summary: Failed to emerge dev-java/jaxme-0.5.2 java.lang.UnsupportedClassVersionError:...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on: 288695
Blocks:
  Show dependency tree
 
Reported: 2009-11-22 10:02 UTC by Raphael Dehousse
Modified: 2010-01-09 18:09 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Jaxme build log (build.log,7.48 KB, text/plain)
2009-11-22 10:05 UTC, Raphael Dehousse
Details
emerge --info (emerge-info,3.96 KB, text/plain)
2009-11-22 10:06 UTC, Raphael Dehousse
Details
environment (environment,161.25 KB, text/plain)
2009-11-22 10:07 UTC, Raphael Dehousse
Details
jdk.conf (jdk.conf,277 bytes, text/plain)
2009-11-22 22:32 UTC, Raphael Dehousse
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Raphael Dehousse 2009-11-22 10:02:08 UTC
Hello,

jaxme has been put stable on x86 but I'm not able to get it on my system.
I get java.lang.UnsupportedClassVersionError: Bad version number in .class

Why ?

Thanks !

Cheers,

Raph
Comment 1 Raphael Dehousse 2009-11-22 10:05:35 UTC
Created attachment 210862 [details]
Jaxme build log

GENTOO_VM=sun-jdk-1.5  CLASSPATH="" JAVA_HOME="/opt/sun-jdk-1.5.0.20"
JAVACFLAGS="-source 1.5 -target 1.5" COMPILER="javac"
Comment 2 Raphael Dehousse 2009-11-22 10:06:19 UTC
Created attachment 210863 [details]
emerge --info
Comment 3 Raphael Dehousse 2009-11-22 10:07:19 UTC
Created attachment 210864 [details]
environment
Comment 4 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2009-11-22 10:32:24 UTC
Some of jaxme dependencies was installed with 1.6 java bytecode. Probably due to the 'java6' USE flag. In this case you need to use 1.6 JDK to emerge jaxme. Do you have any installed? Should be picked up instead of the sun-jdk-1.5, unless you did some version specific modifications to /etc/java-config-2/build/jdk.conf
Otherwise it would be instance of bug 161622.
Comment 5 Raphael Dehousse 2009-11-22 22:32:19 UTC
Created attachment 210935 [details]
jdk.conf

Hello,

Thanks for your response.

Here is my jdk.conf, I did not specified anything in it.
I have virtual jdk 1.6 and dev-java/icedtea6-bin installed

shouldn't it be enough?

Thanks:

Cheers,

Raph
Comment 6 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2009-11-23 15:26:05 UTC
Hm, right, it's this thing again. I forgot, icedtea6-bin is not in the defaults yet.

Meanwhile, please put this in /etc/java-config-2/build/jdk.conf:
*=icedtea6-bin
Comment 7 Raphael Dehousse 2009-11-23 18:15:43 UTC
Hello,

Indeed, with that, it works :)

Thanks a lot for your help !

Could I mark this bug as resolved or do you prefer I keep it open until the other bug is fixed ?

Cheers,

Raph
Comment 8 Petteri Räty (RETIRED) gentoo-dev 2010-01-09 18:09:46 UTC
(In reply to comment #7)
> 
> Could I mark this bug as resolved or do you prefer I keep it open until the
> other bug is fixed ?
> 

As java-config-2.1.10 has all the fixes related to this yes we can mark this as resolved now.