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