* Re: [gentoo-user] java eselect
[not found] <BANLkTind0HsMy=KJnn9V3xwC1oHYoeZRZg@mail.gmail.com>
@ 2011-06-10 18:41 ` Paul Hartman
2011-06-10 19:03 ` András Csányi
2011-06-10 18:45 ` Yohan Pereira
1 sibling, 1 reply; 7+ messages in thread
From: Paul Hartman @ 2011-06-10 18:41 UTC (permalink / raw
To: gentoo-user
On Fri, Jun 10, 2011 at 1:05 PM, András Csányi <sayusi.ando@gmail.com> wrote:
> Hi All,
>
> I would like to use netbeans to programming in java language. I can't
> start netbeans because "Cannot find java...". I thought, no problem
> because here is the fantastic eselect tool and I'm going to set up the
> java environment on my machine. But, I made a mistake. On my machine
> only sun-jdk-1.6.0.26 is installed and I set up this to system-vm. By
> the way, the system-vm is not accessible for user, only for root. On
> one hand, after this I tried to delete or disable the system-vm but I
> didn't find any option for this in eselect. On the other hand, to use
> the same java-vm as system-vm and as user-vm is not possible because
> the eselect not able to do this setup.
>
> Here is my question:
> - how can I change to user-vm a system-vm when I have only one
> installed java-vm which is set up as system-vm?
>
> Thanks for any help in advance!
Maybe use java-config instead of eselect. Something like "java-config -s 1"
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] java eselect
[not found] <BANLkTind0HsMy=KJnn9V3xwC1oHYoeZRZg@mail.gmail.com>
2011-06-10 18:41 ` [gentoo-user] java eselect Paul Hartman
@ 2011-06-10 18:45 ` Yohan Pereira
2011-06-10 18:58 ` András Csányi
1 sibling, 1 reply; 7+ messages in thread
From: Yohan Pereira @ 2011-06-10 18:45 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 456 bytes --]
On Friday 10 Jun 2011 20:05:16 András Csányi wrote:
> how can I change to user-vm a system-vm when I have only one
> installed java-vm which is set up as system-vm?
the system-vm and the user-vm can be the same.
So in this case just set the user-vm to sun-jdk-1.6.0.26 by running
eselect java-vm set user 1
assuming you have only one vm as you say.
--
- Yohan Pereira
"A man can do as he will, but not will as he will" - Schopenhauer
[-- Attachment #2: Type: text/html, Size: 3240 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] java eselect
2011-06-10 18:45 ` Yohan Pereira
@ 2011-06-10 18:58 ` András Csányi
2011-06-10 19:13 ` Yohan Pereira
0 siblings, 1 reply; 7+ messages in thread
From: András Csányi @ 2011-06-10 18:58 UTC (permalink / raw
To: gentoo-user
On 10 June 2011 20:45, Yohan Pereira <yohan.pereira@gmail.com> wrote:
> On Friday 10 Jun 2011 20:05:16 András Csányi wrote:
>
>> how can I change to user-vm a system-vm when I have only one
>
>> installed java-vm which is set up as system-vm?
>
> the system-vm and the user-vm can be the same.
>
> So in this case just set the user-vm to sun-jdk-1.6.0.26 by running
>
> eselect java-vm set user 1
>
> assuming you have only one vm as you say.
Unfortunately not can be user and system vm the same according to
output of eselect commands below.
sa-home sayusi # eselect java-vm list
Available Java Virtual Machines:
[1] sun-jdk-1.6 system-vm
sa-home sayusi # eselect java-vm set user 1
!!! Error: Sorry, you cannot set a user vm as root. Set the system vm instead
exiting
sa-home sayusi #
--
- -
-- Csanyi Andras (Sayusi Ando) -- http://sayusi.hu --
http://facebook.com/andras.csanyi
-- ""Trust in God and keep your gunpowder dry!" - Cromwell
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] java eselect
2011-06-10 18:41 ` [gentoo-user] java eselect Paul Hartman
@ 2011-06-10 19:03 ` András Csányi
2011-06-10 19:29 ` Alan McKinnon
0 siblings, 1 reply; 7+ messages in thread
From: András Csányi @ 2011-06-10 19:03 UTC (permalink / raw
To: gentoo-user
On 10 June 2011 20:41, Paul Hartman <paul.hartman+gentoo@gmail.com> wrote:
> On Fri, Jun 10, 2011 at 1:05 PM, András Csányi <sayusi.ando@gmail.com> wrote:
>> Hi All,
>>
>> I would like to use netbeans to programming in java language. I can't
>> start netbeans because "Cannot find java...". I thought, no problem
>> because here is the fantastic eselect tool and I'm going to set up the
>> java environment on my machine. But, I made a mistake. On my machine
>> only sun-jdk-1.6.0.26 is installed and I set up this to system-vm. By
>> the way, the system-vm is not accessible for user, only for root. On
>> one hand, after this I tried to delete or disable the system-vm but I
>> didn't find any option for this in eselect. On the other hand, to use
>> the same java-vm as system-vm and as user-vm is not possible because
>> the eselect not able to do this setup.
>>
>> Here is my question:
>> - how can I change to user-vm a system-vm when I have only one
>> installed java-vm which is set up as system-vm?
>>
>> Thanks for any help in advance!
>
> Maybe use java-config instead of eselect. Something like "java-config -s 1"
java-config is not appropriate.
sa-home sayusi # java-config-2 -L
The following VMs are available for generation-2:
*) Sun JDK 1.6.0.26 [sun-jdk-1.6]
sa-home sayusi # java-config-2 -s sun-jdk-1.6
!!! ERROR: The user 'root' should always use the System VM
sa-home sayusi # java-config -s sun-jdk-1.6
!!! ERROR: The user 'root' should always use the System VM
sa-home sayusi #
--
- -
-- Csanyi Andras (Sayusi Ando) -- http://sayusi.hu --
http://facebook.com/andras.csanyi
-- ""Trust in God and keep your gunpowder dry!" - Cromwell
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] java eselect
2011-06-10 18:58 ` András Csányi
@ 2011-06-10 19:13 ` Yohan Pereira
2011-06-10 19:26 ` András Csányi
0 siblings, 1 reply; 7+ messages in thread
From: Yohan Pereira @ 2011-06-10 19:13 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 364 bytes --]
On Friday 10 Jun 2011 20:58:28 András Csányi wrote:
> Unfortunately not can be user and system vm the same according to
> output of eselect commands below.
you have to run the command as a normal user not the root user.
Same goes for java-config as Paul suggested.
--
- Yohan Pereira
"A man can do as he will, but not will as he will" - Schopenhauer
[-- Attachment #2: Type: text/html, Size: 2350 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] java eselect
2011-06-10 19:13 ` Yohan Pereira
@ 2011-06-10 19:26 ` András Csányi
0 siblings, 0 replies; 7+ messages in thread
From: András Csányi @ 2011-06-10 19:26 UTC (permalink / raw
To: gentoo-user
On 10 June 2011 21:13, Yohan Pereira <yohan.pereira@gmail.com> wrote:
> On Friday 10 Jun 2011 20:58:28 András Csányi wrote:
>
>> Unfortunately not can be user and system vm the same according to
>
>> output of eselect commands below.
>
> you have to run the command as a normal user not the root user.
>
> Same goes for java-config as Paul suggested.
Oooopssss... :) I'm a noob...
Many thanks for this enlightenment! :)
--
- -
-- Csanyi Andras (Sayusi Ando) -- http://sayusi.hu --
http://facebook.com/andras.csanyi
-- ""Trust in God and keep your gunpowder dry!" - Cromwell
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] java eselect
2011-06-10 19:03 ` András Csányi
@ 2011-06-10 19:29 ` Alan McKinnon
0 siblings, 0 replies; 7+ messages in thread
From: Alan McKinnon @ 2011-06-10 19:29 UTC (permalink / raw
To: gentoo-user
Apparently, though unproven, at 21:03 on Friday 10 June 2011, András Csányi
did opine thusly:
> On 10 June 2011 20:41, Paul Hartman <paul.hartman+gentoo@gmail.com> wrote:
> > On Fri, Jun 10, 2011 at 1:05 PM, András Csányi <sayusi.ando@gmail.com>
wrote:
> >> Hi All,
> >>
> >> I would like to use netbeans to programming in java language. I can't
> >> start netbeans because "Cannot find java...". I thought, no problem
> >> because here is the fantastic eselect tool and I'm going to set up the
> >> java environment on my machine. But, I made a mistake. On my machine
> >> only sun-jdk-1.6.0.26 is installed and I set up this to system-vm. By
> >> the way, the system-vm is not accessible for user, only for root. On
> >> one hand, after this I tried to delete or disable the system-vm but I
> >> didn't find any option for this in eselect. On the other hand, to use
> >> the same java-vm as system-vm and as user-vm is not possible because
> >> the eselect not able to do this setup.
> >>
> >> Here is my question:
> >> - how can I change to user-vm a system-vm when I have only one
> >> installed java-vm which is set up as system-vm?
> >>
> >> Thanks for any help in advance!
> >
> > Maybe use java-config instead of eselect. Something like "java-config -s
> > 1"
>
> java-config is not appropriate.
>
> sa-home sayusi # java-config-2 -L
> The following VMs are available for generation-2:
> *) Sun JDK 1.6.0.26 [sun-jdk-1.6]
>
> sa-home sayusi # java-config-2 -s sun-jdk-1.6
> !!! ERROR: The user 'root' should always use the System VM
>
> sa-home sayusi # java-config -s sun-jdk-1.6
> !!! ERROR: The user 'root' should always use the System VM
> sa-home sayusi #
That is incorrect.
java-config is quite appropriate. Using it to try and set a user vm for root
is not, as the output clearly shows.
--
alan dot mckinnon at gmail dot com
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2011-06-10 20:07 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <BANLkTind0HsMy=KJnn9V3xwC1oHYoeZRZg@mail.gmail.com>
2011-06-10 18:41 ` [gentoo-user] java eselect Paul Hartman
2011-06-10 19:03 ` András Csányi
2011-06-10 19:29 ` Alan McKinnon
2011-06-10 18:45 ` Yohan Pereira
2011-06-10 18:58 ` András Csányi
2011-06-10 19:13 ` Yohan Pereira
2011-06-10 19:26 ` András Csányi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox