public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Alan McKinnon <alan.mckinnon@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] java eselect
Date: Fri, 10 Jun 2011 21:29:47 +0200	[thread overview]
Message-ID: <201106102129.48200.alan.mckinnon@gmail.com> (raw)
In-Reply-To: <BANLkTikhmia7TyPS-6+4RayZE=vuppGG3Q@mail.gmail.com>

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



  reply	other threads:[~2011-06-10 20:07 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201106102129.48200.alan.mckinnon@gmail.com \
    --to=alan.mckinnon@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox