1 |
>> >> I'm getting the following from dumphd: |
2 |
>> >> |
3 |
>> >> "bad version number in .class file" |
4 |
>> >> |
5 |
>> >> I gather that I may have the wrong version of something Java installed |
6 |
>> >> but I don't know how that works. Can anyone tell me what package I |
7 |
>> >> should try upgrading or downgrading? |
8 |
>> > |
9 |
>> > This normally means the class file is from a new version of Java then |
10 |
>> > 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 |
15 |
>> > you |
16 |
>> > have installed. On my machine it shows (the asterisk is the currently |
17 |
>> > selected one, i.e. what will be used to run java applications): |
18 |
>> > |
19 |
>> > podge@venus ~ $ java-config -L |
20 |
>> > The following VMs are available for generation-2: |
21 |
>> > 1) Blackdown JDK 1.4.2.03 [blackdown-jdk-1.4.2] |
22 |
>> > 2) Sun JDK 1.5.0.16 [sun-jdk-1.5] |
23 |
>> > *) Sun JDK 1.6.0.07 [sun-jdk-1.6] |
24 |
>> > podge@venus ~ $ |
25 |
>> > |
26 |
>> > If the newest VM isn't selected as the default, read the man page for |
27 |
>> > java-config and tell it to set the newest one as default (1.6 is the |
28 |
>> > newest version). |
29 |
>> > |
30 |
>> > Shawn |
31 |
>> |
32 |
>> Thank you very much. Since I'm not a Java developer, do I want jre as |
33 |
>> opposed to jdk? |
34 |
>> |
35 |
>> - Grabt |
36 |
> |
37 |
> Yeah, the JRE will be fine. The important thing is just which version is |
38 |
> active. I do Java development, hence the JDK. |
39 |
> |
40 |
> Shawn |
41 |
|
42 |
Can you tell me the best way to Gentoo all of this? I've now got: |
43 |
|
44 |
# java-config -L |
45 |
The following VMs are available for generation-2: |
46 |
1) Sun 32bit JRE 1.6.0.07 [emul-linux-x86-java-1.6] |
47 |
2) Sun JDK 1.5.0.16 [sun-jdk-1.5] |
48 |
*) Sun JDK 1.6.0.07 [sun-jdk-1.6] |
49 |
|
50 |
and dev-java/sun-jdk in my world file, and it wasn't there before. |
51 |
Also, emerge world wants to install virtual/jre-1.6.0 and |
52 |
virtual/jdk-1.6.0. Should I un-emerge sun-jdk-1.5? |
53 |
|
54 |
- Grant |