Gentoo Archives: gentoo-user

From: David Relson <relson@×××××××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: Java problem
Date: Sun, 23 May 2010 13:26:14
Message-Id: 20100523092457.6f5773a7@osage.osagesoftware.com
In Reply to: [gentoo-user] Re: Java problem by walt
1 Walt and Kenneth,
2
3 Your help with this problem is appreciated, though the problem still
4 persists.
5
6 What versions of java do you guys have installed? What does "eselect
7 java-vm list" show on your machines?
8
9 I'm on AMD64, what architectures are you running?
10
11 Looking around, /usr/bin/java is a symlink to run-java-tool which is
12 working. For example "java -version" displays an appropriate value.
13
14
15 Output from multiple tests of eselect, java-config, and emerge is
16 attached. To summarize the attachment:
17
18 /usr/lib/jvm reports icedtea6 and sun-jdk-1.6.0.20
19
20 "eselect java-vm list" shows sun-jdk as active
21
22 "eix -e --nocolor ant-core" shows ant-core installed
23
24 "eselect java-vm set system 1" successfully changes to icedtea6
25
26 "emerge -qv ant-junit" fails because ant-junit isn't found
27
28 "eselect java-vm set system 2" successfully changes to sun-jdk-1.6.0.20
29
30 "emerge -qv ant-junit" fails because ant-junit isn't found
31
32 notice that both icedtea6 and sun-jdk-1.6.0.20 have been tried and "emerge ant-junit" fails with both
33
34
35 On a related note,
36
37 "java-config -S" only works for user 'root'. It doesn't work for an individual user, e.g. 'relson'
38
39 "eselect java-vm set" allows system-wide setting of the vm and also has a per-user option.
40
41 Also, eselect includes an unnecessary (but harmless) / in the sym-link, i.e.
42
43 eselect: current-system-vm -> /usr/lib/jvm//icedtea6
44 java-config: current-system-vm -> /usr/lib/jvm/icedtea6
45
46
47
48 On Sat, 22 May 2010 20:41:19 -0700
49 walt wrote:
50
51 > On 05/22/2010 01:10 PM, David Relson wrote:
52 > >
53 > > * Unable to determine VM for building from dependencies:
54 > > * Failed to determine VM for building.
55 >
56 > Well, I've seen those error messages more than once. If I were
57 > half-a-bottle more sober, I'm sure I could remember how I fixed
58 > the problem.
59 >
60 > Gentoo offers two (competing?) ways to specify the system-vm.
61 >
62 > #eselect java-vm
63 > Usage: eselect java-vm <action> <options>
64 > Extra actions:
65 > list List Available Virtual Machines
66 > set Set a new system or user vm
67 > show Show the current vm
68 >
69 > #java-config
70 > Usage: java-config [options]
71 > -L, --list-available-vms
72 > List available Java Virtual Machines
73 > -S VM, --set-system-vm=VM
74 > Set the default Java VM for the system
75 >
76 > I seem to recall that the important things changed by these two
77 > gizmos are some symlinks like, for example:
78 >
79 > /etc/java-config-2/current-system-vm -> /usr/lib/jvm//sun-jdk-1.6/
80 > /usr/bin/java -> run-java-tool
81 >
82 > Maybe I can remember more details tomorrow.
83 >
84 >
85 >

Attachments

File name MIME type
java_output.txt text/plain

Replies

Subject Author
Re: [gentoo-user] Re: Java problem "Arttu V." <arttuv69@×××××.com>