1 |
On Saturday 03 April 2010 09:17:47 Xi Shen wrote: |
2 |
> hi, |
3 |
> |
4 |
> my system is gentoo amd 64. java-config -L show i have two VMs on my |
5 |
> system: |
6 |
> |
7 |
> The following VMs are available for generation-2: |
8 |
> 1) IcedTea6-bin 1.7.1 [icedtea6-bin] |
9 |
> *) Sun JRE 1.6.0.18 [sun-jre-bin-1.6] |
10 |
> |
11 |
> but when i ran javac, it says: |
12 |
> |
13 |
> * javac is not available for sun-jre-bin-1.6 on x86_64 |
14 |
> * IMPORTANT: some Java tools are not available on some VMs on some |
15 |
> architectures |
16 |
> |
17 |
> we do not have javac on amd64 system? how to fix this? |
18 |
> i did not find much use information on |
19 |
> http://www.gentoo.org/doc/en/java.xml |
20 |
> |
21 |
|
22 |
The JRE (Java Runtime Environment) only has the Runtime tools. |
23 |
You need to install the JDK. |
24 |
|
25 |
It works on my system: |
26 |
** |
27 |
joost@eve ~ $ java-config -L |
28 |
The following VMs are available for generation-2: |
29 |
*) Sun JDK 1.6.0.17 [sun-jdk-1.6] |
30 |
|
31 |
VMs marked as Build Only may contain Security Vulnerabilities and/or be EOL. |
32 |
Gentoo recommends not setting these VMs as either your System or User VM. |
33 |
Please see http://www.gentoo.org/doc/en/java.xml#build-only for more |
34 |
information |
35 |
** |
36 |
joost@eve ~ $ eix -I jdk |
37 |
[I] dev-java/sun-jdk |
38 |
Available versions: |
39 |
(1.4) ~*1.4.2.19-r1!f!s[1] |
40 |
(1.5) 1.5.0.22-r1!s |
41 |
(1.6) 1.6.0.17!s ~1.6.0.18!s ~1.6.0.18-r1!s ~1.6.0.19!s |
42 |
{X alsa derby doc examples jce nsplugin odbc} |
43 |
Installed versions: 1.6.0.17(1.6)!s(09:05:13 AM 11/18/2009)(X alsa |
44 |
nsplugin -derby -doc -examples -jce -odbc) |
45 |
Homepage: http://java.sun.com/javase/6/ |
46 |
Description: Sun's Java SE Development Kit |
47 |
|
48 |
[I] virtual/jdk |
49 |
Available versions: |
50 |
(1.4) ~1.4.2-r1[1] |
51 |
(1.5) 1.5.0 ~1.5.0-r1[1] ~1.5.0-r2[1] |
52 |
(1.6) 1.6.0 ~1.6.0-r1[1] ~1.6.0-r2[1] |
53 |
Installed versions: 1.6.0(1.6)(09:07:44 AM 11/18/2009) |
54 |
Homepage: http://java.sun.com/ |
55 |
Description: Virtual for JDK |
56 |
|
57 |
[1] layman/java-overlay |
58 |
|
59 |
Found 2 matches. |
60 |
** |
61 |
joost@eve ~ $ javac |
62 |
Usage: javac <options> <source files> |
63 |
where possible options include: |
64 |
-g Generate all debugging info |
65 |
<snipped rest of output> |
66 |
** |
67 |
joost@eve ~ $ uname -a |
68 |
Linux eve 2.6.30-gentoo-r5 #1 SMP Wed Nov 18 12:23:47 CET 2009 x86_64 AMD |
69 |
Phenom(tm) 9950 Quad-Core Processor AuthenticAMD GNU/Linux |
70 |
** |
71 |
|
72 |
HTH, |
73 |
|
74 |
Joost Roeleveld |