1 |
Apparently, though unproven, at 21:03 on Friday 10 June 2011, András Csányi |
2 |
did opine thusly: |
3 |
|
4 |
> On 10 June 2011 20:41, Paul Hartman <paul.hartman+gentoo@×××××.com> wrote: |
5 |
> > On Fri, Jun 10, 2011 at 1:05 PM, András Csányi <sayusi.ando@×××××.com> |
6 |
wrote: |
7 |
> >> Hi All, |
8 |
> >> |
9 |
> >> I would like to use netbeans to programming in java language. I can't |
10 |
> >> start netbeans because "Cannot find java...". I thought, no problem |
11 |
> >> because here is the fantastic eselect tool and I'm going to set up the |
12 |
> >> java environment on my machine. But, I made a mistake. On my machine |
13 |
> >> only sun-jdk-1.6.0.26 is installed and I set up this to system-vm. By |
14 |
> >> the way, the system-vm is not accessible for user, only for root. On |
15 |
> >> one hand, after this I tried to delete or disable the system-vm but I |
16 |
> >> didn't find any option for this in eselect. On the other hand, to use |
17 |
> >> the same java-vm as system-vm and as user-vm is not possible because |
18 |
> >> the eselect not able to do this setup. |
19 |
> >> |
20 |
> >> Here is my question: |
21 |
> >> - how can I change to user-vm a system-vm when I have only one |
22 |
> >> installed java-vm which is set up as system-vm? |
23 |
> >> |
24 |
> >> Thanks for any help in advance! |
25 |
> > |
26 |
> > Maybe use java-config instead of eselect. Something like "java-config -s |
27 |
> > 1" |
28 |
> |
29 |
> java-config is not appropriate. |
30 |
> |
31 |
> sa-home sayusi # java-config-2 -L |
32 |
> The following VMs are available for generation-2: |
33 |
> *) Sun JDK 1.6.0.26 [sun-jdk-1.6] |
34 |
> |
35 |
> sa-home sayusi # java-config-2 -s sun-jdk-1.6 |
36 |
> !!! ERROR: The user 'root' should always use the System VM |
37 |
> |
38 |
> sa-home sayusi # java-config -s sun-jdk-1.6 |
39 |
> !!! ERROR: The user 'root' should always use the System VM |
40 |
> sa-home sayusi # |
41 |
|
42 |
That is incorrect. |
43 |
|
44 |
java-config is quite appropriate. Using it to try and set a user vm for root |
45 |
is not, as the output clearly shows. |
46 |
|
47 |
-- |
48 |
alan dot mckinnon at gmail dot com |