Question about Sun Java SDK Install...

oLLie

Diamond Member
Jan 15, 2001
5,203
1
0
Hi Software - Applications, Programming and Games forum-goers!

When I install the latest Java SDK, it tries to put a copy of the JRE in C:\Program Files\blah blah blah.
The problem (I have with this) is, there already is a copy in C:\j2sdk1blahblah\jre

So I unchecked the option for installing JRE to C:\Program Files\blah blah blah.
Now, is there a way to tell Internet Explorer and other Java Runtime-using programs to look in the SDK folder to find the JRE?
Or do I have to play Sun's stupid game of installing an extra copy of the runtime environ? Thanks guys,

Ollie
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
If the one in c:\j2sdk is setup right you should be able to pick it from the Java control panel.
 

oLLie

Diamond Member
Jan 15, 2001
5,203
1
0
Hmm... this link says that there is a private copy and an optional public copy. Looks like I chose not to install the public copy. It specifically says:

Private vs. public J2RE - Installing the Java 2 SDK installs a private Java 2 Runtime Environment and optionally a public copy. The private J2RE is required to run the tools included with the Java 2 SDK. It has no registry settings and is contained entirely in a jre directory (typically at C:\Program Files\j2sdk1.4.2\jre) whose location is known only to the SDK. On the other hand, the public J2RE can be used by other Java applications, is contained outside the SDK (typically at C:\Program Files\Java\j2re1.4.2), is registered with the Windows registry (at HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft), can be removed using Add/Remove Programs, might or might not be registered with browsers, and might or might not have java.exe copied to the Windows system directory (making it the default system Java platform or not).

I have an entry called JavaSoft under Software under HKEY_LOCAL_MACHINE in the registry, but I can't find the Control Panel. I suppose it only gets installed with the optional public runtime.

I believe there is a way to force it to use the private JRE in the registry. Could you list everything that you have in your JavaSoft key in HKEY_LOCAL...?

If I try to run webstart manually (i.e. run C:\j2sdk1.4.2_02\jre\javaws\javaws.exe) so that I can go to preferences and view the runtimes installed, I get this:
"Bad installation. No JRE found in configuration file"


This thread over at the java.sun forums seems to be related to what I want to do, but I believe I have it set up the way the guy suggested in there and it still doesn't work. Any ideas?

*edit* I wonder what would happen if I downloaded just the runtime (J2SE JRE) from Sun and installed it to the private runtime directory. Crazy enough to work?