Gentoo Archives: gentoo-user

From: Shawn Haggett <podge@××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Java "bad version number" - what to up/downgrade?
Date: Tue, 18 Nov 2008 07:05:05
Message-Id: 492268FC.6070604@podgeweb.com
In Reply to: Re: [gentoo-user] Java "bad version number" - what to up/downgrade? by Grant
1 On Tue, 18 Nov 2008 02:56:57 pm Grant wrote:
2 > >> I'm getting the following from dumphd:
3 > >>
4 > >> "bad version number in .class file"
5 > >>
6 > >> I gather that I may have the wrong version of something Java installed
7 > >> but I don't know how that works. Can anyone tell me what package I
8 > >> should try upgrading or downgrading?
9 > >
10 > > This normally means the class file is from a new version of Java then the
11 > > virtual machine trying to run it (i.e. class files compiled under Java
12 > > 1.5, but your trying to run it in Java 1.4).
13 > >
14 > > "java-config -L" (without quotes) will show you what virtual machines you
15 > > have installed. On my machine it shows (the asterisk is the currently
16 > > selected one, i.e. what will be used to run java applications):
17 > >
18 > > podge@venus ~ $ java-config -L
19 > > The following VMs are available for generation-2:
20 > > 1) Blackdown JDK 1.4.2.03 [blackdown-jdk-1.4.2]
21 > > 2) Sun JDK 1.5.0.16 [sun-jdk-1.5]
22 > > *) Sun JDK 1.6.0.07 [sun-jdk-1.6]
23 > > podge@venus ~ $
24 > >
25 > > If the newest VM isn't selected as the default, read the man page for
26 > > java-config and tell it to set the newest one as default (1.6 is the
27 > > newest version).
28 > >
29 > > Shawn
30 >
31 > Thank you very much. Since I'm not a Java developer, do I want jre as
32 > opposed to jdk?
33 >
34 > - Grabt
35
36 Yeah, the JRE will be fine. The important thing is just which version is
37 active. I do Java development, hence the JDK.
38
39 Shawn

Replies

Subject Author
Re: [gentoo-user] Java "bad version number" - what to up/downgrade? Grant <emailgrant@×××××.com>