Windows Public / Private JRE
843804Sep 18 2003 — edited Sep 22 2003Hi,
Does anyone have any suggestions about linking between the public and private JRE's. I am on a windows platform and my sdk is in installed at C:\j2sdk1.4.2 and I have a JAVA_HOME variable set this directory. Most of my apps: Tomcat, Cocoon, etc. require the JAVA_HOME variable to run, the run scripts tack on the \jre\bin\java to execute the private JRE included with the SDK.
I also run several apps via Java Webstart which I could only get to work under the public JRE installed at C:\Program Files\Java\j2re1.4.2_01. Now, even though my path is set for the Private JRE anytime I invoke the java command, the public JRE is executed.
My problem is I do not want to maintain two copies of the \ext directory, nor do I want to worry about trying to debug code not knowing which JRE was invoked.
Is there a simple way without breaking existing scripts to use a single JRE with the SDK and Web Start?
Thanks,
Adam