1 |
John Jolet schreef: |
2 |
> |
3 |
> On Dec 18, 2005, at 8:58 PM, Mark Knecht wrote: |
4 |
> |
5 |
>> On 12/18/05, Holly Bostick <motub@××××××.nl> wrote: |
6 |
>> |
7 |
>>> Mark Knecht schreef: |
8 |
>>> |
9 |
>>>> |
10 |
>>>> Do anyone know what was meant by the final comment? I've copied |
11 |
>>>> it here for ease of discussion. How do I set the Java VM to |
12 |
>>>> the JDK? Why is this recommended? |
13 |
>>> |
14 |
>>> |
15 |
>>> 1) java-config. |
16 |
>> |
17 |
>> |
18 |
>> OK. Thanks Holly. But if I'm going to set the VM to be the jdk, |
19 |
>> then why install the jre? I guess I have no clue about the |
20 |
>> difference between the jre and the jdk or why both are needed or |
21 |
>> what each one does. I can say that installing the jdk broke one |
22 |
>> aspect of the sun jre. Bummer for me. |
23 |
>> |
24 |
> this has always confused me...if you install the jdk, in the path |
25 |
> with the jdk (/usr/local/java for instance), there's a jre |
26 |
> directory...you have /usr/local/java/bin/java and |
27 |
> /usr/local/java/jre/ bin/java.....both. so you don't need to install |
28 |
> both. the jdk is INCLUSIVE of the jre. |
29 |
|
30 |
Not on my system (32-bit). If I try to use the Sun jre alone, I get the |
31 |
same errors that Mark reported if I try to set it as the system VM; |
32 |
using it as user VM seemed OK as I recall. Eventually I got tired of |
33 |
having the system vm and the user vm being different (probably me being |
34 |
anal rather than a real "issue"), and since using Sun 1.5.0.* as the |
35 |
user VM hadn't seemed to cause any major issues, I attempted to make it |
36 |
the system VM as well, at which point I got this stuff (this is Mark's, |
37 |
but this was the same error I got): |
38 |
|
39 |
|
40 |
* Found no JDK, setting sun-jre-bin-1.5.0.06 as default system VM |
41 |
javac not found at /opt/sun-jre-bin-1.5.0.06/bin/javac or |
42 |
/opt/sun-jre-bin-1.5.0.06/jre/bin/javac |
43 |
javadoc not found at /opt/sun-jre-bin-1.5.0.06/bin/javadoc or |
44 |
/opt/sun-jre-bin-1.5.0.06/jre/bin/javadoc |
45 |
jar not found at /opt/sun-jre-bin-1.5.0.06/bin/jar or |
46 |
/opt/sun-jre-bin-1.5.0.06/jre/bin/jar |
47 |
rmic not found at /opt/sun-jre-bin-1.5.0.06/bin/rmic or |
48 |
/opt/sun-jre-bin-1.5.0.06/jre/bin/rmic |
49 |
THIS SYSTEM VM IS NOT SUFFICIENT, REQUIRED BINARIES WERE NOT FOUND |
50 |
System Virtual Machine set |
51 |
You may want to update your enviroment by running: |
52 |
"/usr/sbin/env-update && source /etc/profile" |
53 |
|
54 |
Unfortunately I don't remember what was actually in the /bin folder as I |
55 |
have since uninstalled the jre and set both the user and system vm to |
56 |
the sun jdk. But either java and jar really weren't there, or they were |
57 |
and java-config couldn't find them, and in either case I really didn't |
58 |
have the time or interest to investigate the root issue (gotta choose |
59 |
your battles with Gentoo, sometimes ;-) ), so I just switched everything |
60 |
to the jdk (which works fine, despite being only 1.4.2, when some apps I |
61 |
use recommend 1.5.0+), uninstalled the jre (I had previously |
62 |
unmerged/masked the blackdown jre when I installed Sun's) and went on |
63 |
with my week (last week, I think this was). Haven't noticed any issues |
64 |
with having done so; web browsers seem to work, as well as what |
65 |
java-based apps I use. |
66 |
|
67 |
So I admit I don't know what the problem is, and I also concede that it |
68 |
probably shouldn't be happening (as you say), but I confirm that Mark's |
69 |
original issue does seem to be real and that is the workaround/hack I |
70 |
used to bypass it when I encountered it. |
71 |
|
72 |
However, any "real" Java users/developers might find it is inappropriate |
73 |
and I make no guarantees that it is. It's just what worked for me, |
74 |
because I didn't like that error at all-- though I don't necessarily |
75 |
think that it was fatal or even critical or that I would have had |
76 |
"problems" had I just let it stand and used the Sun jre as the system vm |
77 |
(after all, what do I do as root with Java? Nothing, afaik). |
78 |
|
79 |
Holly |
80 |
|
81 |
-- |
82 |
gentoo-user@g.o mailing list |