Re: [gentoo-user] no javac on gentoo amd64?

2010-04-03 Thread J. Roeleveld
On Saturday 03 April 2010 09:17:47 Xi Shen wrote:
> hi,
> 
> my system is gentoo amd 64. java-config -L show i have two VMs on my
>  system:
> 
> The following VMs are available for generation-2:
> 1)  IcedTea6-bin 1.7.1 [icedtea6-bin]
> *)  Sun JRE 1.6.0.18 [sun-jre-bin-1.6]
> 
> but when i ran javac, it says:
> 
> * javac is not available for sun-jre-bin-1.6 on x86_64
> * IMPORTANT: some Java tools are not available on some VMs on some
>  architectures
> 
> we do not have javac on amd64 system? how to fix this?
> i did not find much use information on
>  http://www.gentoo.org/doc/en/java.xml
> 

The JRE (Java Runtime Environment) only has the Runtime tools.
You need to install the JDK.

It works on my system:
**
jo...@eve ~ $ java-config -L
The following VMs are available for generation-2:
*)  Sun JDK 1.6.0.17 [sun-jdk-1.6]   

VMs marked as Build Only may contain Security Vulnerabilities and/or be EOL.
Gentoo recommends not setting these VMs as either your System or User VM.   

 
Please see http://www.gentoo.org/doc/en/java.xml#build-only for more 
information 


**
jo...@eve ~ $ eix -I jdk

 
[I] dev-java/sun-jdk

 
 Available versions:

 
(1.4)   ~*1.4.2.19-r1!f!s[1]
(1.5)   1.5.0.22-r1!s
(1.6)   1.6.0.17!s ~1.6.0.18!s ~1.6.0.18-r1!s ~1.6.0.19!s
{X alsa derby doc examples jce nsplugin odbc}
 Installed versions:  1.6.0.17(1.6)!s(09:05:13 AM 11/18/2009)(X alsa 
nsplugin -derby -doc -examples -jce -odbc)
 Homepage:http://java.sun.com/javase/6/
 Description: Sun's Java SE Development Kit

[I] virtual/jdk
 Available versions:
(1.4)   ~1.4.2-r1[1]
(1.5)   1.5.0 ~1.5.0-r1[1] ~1.5.0-r2[1]
(1.6)   1.6.0 ~1.6.0-r1[1] ~1.6.0-r2[1]
 Installed versions:  1.6.0(1.6)(09:07:44 AM 11/18/2009)
 Homepage:http://java.sun.com/
 Description: Virtual for JDK

[1] layman/java-overlay

Found 2 matches.
**
jo...@eve ~ $ javac
Usage: javac  
where possible options include:
  -g Generate all debugging info

**
jo...@eve ~ $ uname -a
Linux eve 2.6.30-gentoo-r5 #1 SMP Wed Nov 18 12:23:47 CET 2009 x86_64 AMD 
Phenom(tm) 9950 Quad-Core Processor AuthenticAMD GNU/Linux
**

HTH,

Joost Roeleveld



[gentoo-user] no javac on gentoo amd64?

2010-04-03 Thread Xi Shen
hi,

my system is gentoo amd 64. java-config -L show i have two VMs on my system:

The following VMs are available for generation-2:
1)  IcedTea6-bin 1.7.1 [icedtea6-bin]
*)  Sun JRE 1.6.0.18 [sun-jre-bin-1.6]

but when i ran javac, it says:

* javac is not available for sun-jre-bin-1.6 on x86_64
* IMPORTANT: some Java tools are not available on some VMs on some architectures

we do not have javac on amd64 system? how to fix this?
i did not find much use information on http://www.gentoo.org/doc/en/java.xml


-- 
Best Regards,
David Shen

http://twitter.com/davidshen84/