Re: private vs. public JRE in different OSs



Every time this F.A.Q. is raised here, the answer usually
boils down to "the JDK uses a private JRE because the docs
say it will." Usually a link is provided to the language spec.

I *dare* someone to explain what bad thing might happen if
the JDK tools used the public JRE, and if the JDK only
shipped the single, public JRE in the bundle. In fact
I double-dare you!

Don't know if it has anything to do with security but...

A default Java install on a Un*x system does NOT mandate
to be the admin (i.e. "root") while a default Windows
install forces you to give the admin account.

As a security measure every single Java VM I install on
a server is installed in a user account. I just set up
a dedicated server (for a client of mine) running Tomcat.
Both the JVM and Tomcat are installed in a user account
and Linux's iptables is used to transparently redirect
request to the privileged ports 80 and 443.

The reason to install a "private" JVM on linux is
simple: security. There is simply no compelling reason
to install the JVM and Tomcat and to run them as root
when they can be installed in a dumb user account.

Could this be something similar for Windows?

I *know*, for having been bitten by that, that you
cannot install the "regular" JRE without being the
admin on an XP system... Could this be that the
"private JRE" can be installed without needing to
be the admin of the machine? For that would be
a *very* compelling reason to have a "private JRE".

Driss





.



Relevant Pages

  • Re: Simple instructions for getting Java to work on 5.10?
    ... > instructions I have found on the web do not work on a default install. ... > Ideally the JRE or JDK would work with Firefox. ...
    (Ubuntu)
  • Re: private vs. public JRE in different OSs
    ... The installation instructions for the JDK for Linux and Windows: ... What could you do without the private JRE? ... To guarantee the JDK tools don't ...
    (comp.lang.java.programmer)
  • Re: 5.4-RELEASE && Java jre1.3
    ... > I've the official dictionary of the Academy RAE of Spain. ... You could always install the 1.3 version of the jdk in addition to the ... They install to different locations so they can co-exist. ... Kind of overkill just to get a 1.3 JRE but... ...
    (freebsd-questions)
  • Re: Do I need JRE 1.6 at all if I already install JDK 1.6 ?
    ... During the install I am asked wether I want to install ... I wonder wether it is necessary to install JRE as well. ... As far as I know JDK contains already an JRE in jdk\jre ...
    (comp.lang.java.help)
  • RE: Java 1.50 not installed in FC4? Use Suns version?
    ... For users of Fedora Core releases ... >> want to install the JDK, do I still need to install ... >If you are referring to Sun's stuff, their JDK includes JRE, so no. ...
    (Fedora)