Skip to main content

Installing 6uN over 6u2

18 replies [Last post]
weiqigao
Offline
Joined: 2003-06-10
Points: 0

I installed 6uN on a WinXP Pro SP2 box that already has JDK 6u2 installed. I have changed my JAVA_HOME environment variable to point to the 6uN JDK directory, and my PATH is specified using %JAVA_HOME%.

After reboot, however, running

java -version

from a command prompt still results in

java version "1.6.0_02"

Also, when I visit a web page that contains Java applets, the Java tray icon that shows up also claims to be "1.6.0_02".

Is there any thing that I need to do to make the 6uN JRE to be the JRE used for Java applets?

I suspect the four files in my C:\WINDOWS\System32 directory (java.exe, javaw.exe, javaws.exe and javacpl.cpl) have something to do with it. But I'm reluctant to delete them.

Your help is appreciated.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
weiqigao
Offline
Joined: 2003-06-10
Points: 0

I did the JRE install. Applets are working within IE7 and Firefox 2.0.0.7 now. However they stopped working with Safari 3 Beta.

bilal_el_uneis
Offline
Joined: 2006-12-10
Points: 0

thx.. i uninstalled my prev jdk and jre and then did clean install for the new uN.. everything went smooth and jqs is up and running and console shows that java uN is registered and default jre now.

Very cool. thx

tdanecito
Offline
Joined: 2005-10-10
Points: 0

Hi All,

I am having a simular problem where I am using the deployment toolkit and need to know what the version info should be to get 6u5 to install. I tried the following and it did not install 6u5

deployJava.createWebStartLaunchButton(url,'1.6.0_05');

Thanks,
-Tony

tdanecito
Offline
Joined: 2005-10-10
Points: 0

Okay I even tried the following and did not work:

deployJava.createWebStartLaunchButton(url,'1.6.0_05-ea');

So what do I need to do? I want the users to press the button and download 6u5 even if 1.6.0_03 is installed.

Thnaks,
-Tony

andyherrick
Offline
Joined: 2005-04-17
Points: 0

The pure javascript version of DT, will only install the latest default install from java.com.
In order for DT to install1.6.0_05-ea, you would need to first install the IE and firefox plugins.
The simplest way to test this is to install 1.5.0_05-ea , and then uninstall it.
In this case the plugins will remain installed, and if a web page calls deployJava.installLatestJRE() or deployJava.createWebStartLaunchButton(url,'1.6.0_05'); then 1.6.0_05 will get reinstalled.

w/o the plugins, the javascript can only determine the family version of java installed, so deployJava.createWebStartLaunchButton(url,'1.6.0_05'); will only begin an install if no 1.6.0 version is installed. If it does an install, it will installed the latest version from java.com (at this point this is 1.6.0_03, but when 6uN ships it will be 1.6.0_05 or later). So you can put on the web page:
if (!deployJava.isPluginInstalled) {
deployJava.installLatestJRE();
}
deployJava.createWebStartLaunchButton(url,'1.6.0_05');

and this will ensure that at least Java Web Start 1.6.0_05 is used.

tdanecito
Offline
Joined: 2005-10-10
Points: 0

Thanks Andy. I have people who want to test the DT and 6u5 so I would like DT to download 6u5 rather than install the jre twice.

Does anyone know if that is possible?

Thanks,
-Tony

rogerl
Offline
Joined: 2004-11-15
Points: 0

To take advantage of the new JRE features, you need the JRE, which, hmmmmmmmmm, we seemed to have left of the page when we pushed build 4. That was bad on our part. In prior Snapshot releases we had not pushed the JRE, the oversight in this case was due to that history.

The JRE, online installer, is now on the download page:
http://download.java.net/jdk6/

[b]Windows Online Installation JRE file [/b] ------------ look for this
jre-6u5-ea-windows-i586-p-iftw.exe

-Roger
Sun Microsystems

jstansel
Offline
Joined: 2007-04-26
Points: 0

The http://download.java.net/jdk6/ link appears to be for Java SE 6u2 build b05. To get to the file you mentioned I visited the http://download.java.net/jdk6/binaries/ page.

-james.

Update: maybe I had a proxy error. I did a ctrl-shift-R to force a no-cache request and now I'm seeing the 6u5ea page. (It appears identical to the http://download.java.net/jdk6/binaries/ page.)

bilal_el_uneis
Offline
Joined: 2006-12-10
Points: 0

yeah i have noticed that too.. but for now im just going to stick witn jre1.6 u2 and just use console to test my app with jre1.6 uN.. im sure when the time comes to get this jre released sun will have a better installer :)

bilal_el_uneis
Offline
Joined: 2006-12-10
Points: 0

open console and go to the jre dir..

jqs -register

jqs -enable

now i can see that jqs has started as a service and will always start on startup of my machine.. how do i know it is working when im running java application and will it use jre 1.6 uN?

Message was edited by: bilal_el_uneis

radvani7
Offline
Joined: 2005-10-10
Points: 0

You can check if jqs is working by using the command

jqs -register -logfile jqs.log -verbose 1

This will make the JQS service log to the file jqs.log, so you can see exactly what files it's touching, and when.

bilal_el_uneis
Offline
Joined: 2006-12-10
Points: 0

does jqs get called when a java application is run too or just applets? also where that log file will be created?

and if jqs actually runs for app, should i assume it will use jre 1.6 uN? although when i type java -version i see only u2

thx.

jmelvin
Offline
Joined: 2004-12-01
Points: 0

The JDK installer will only install a new public JRE if there is no pre-existing 6uX public JRE.
So, that is why the 6uN JRE is not getting installed properly. I recommend that you try installing the **JRE** installer for 6uN rather than the JDK. This will setup and start the Java Quick Starter service automatically. Manual setup should not be necessary.

JQS (Java Quick Starter) is a Windows service and is running in the background, prefetching
files from the JRE binary into the disk cache. This prefetching will improved cold startup for both applets and applications.

weiqigao
Offline
Joined: 2003-06-10
Points: 0

Thanks. I will abandon my registry modifications and install the 6uN JRE in addition to the JDK.

calvinaustin
Offline
Joined: 2003-11-14
Points: 0

I tried to install over 6 update 1 with the update N JDK and JRE, neither updated the registry which is not a great start to the new consumer jre experience at all.

I guess I will have to delete everything and start fresh like everyone else

radvani7
Offline
Joined: 2005-10-10
Points: 0

I am having the exact same problem -- specifically, the Java Plugin won't start with 1.6u5 -- it always starts with 1.6u2. This is true even if I disable the Mozilla plugin scanner and FORCE it to use 1.6u5 by copying those plugin files into the firefox/plugins directory. When I do that, Java applets simply don't run at all. The only method I found for hacking this is changing the registry key for the Java 1.6u2 install location to the 1.6u5 location -- when I do this the Java Plugin starts 1.6u5, but Quickstart doesn't seem to be working when using this hack.

Are there any standard instructions for getting the Java Plugin to use 1.6u5?

radvani7
Offline
Joined: 2005-10-10
Points: 0

I figured out the problem with my installation and am posting it here for reference by anyone else who is having trouble getting this build to be recognized by Java Plugin:

The problem with the installer on my machine was that it did not create the necessary registry keys (obviously I'm using Windows), which are used by Firefox to scan for your Java Plugin and Runtime. I had to add these keys manually.

The two keys requiredare:

HKEY_LOCAL_MACHINE/SOFTWARE/JavaSoft/Java Plug-in/1.6.0_05 and
HKEY_LOCAL_MACHINE/SOFTWARE/JavaSoft/Java Runtime Environment/1.6.0_05

Within each key, just duplicate the values used for your other plugin/runtimes, except change the paths to reflect the install directory of your 1.6u5.

Once this is done, test it out by launching Firefox and going to about:plugins. The JDK 1.6u5 should be listed as your active JRE. If this is OK, then you're good to go.

I tested this with Quickstart and it works BEAUTIFULLY. Cold-start times have gone down to the hot-start level (~1-2 seconds). Terrific job! I hope this gets out the door soon. Also, for those who are complain about JQS using too many resources, I have found it to be incredibly non-invasive: it only touches the disk cache when the computer is inactive, so I doubt it will get in anybody's way. Again, great thinking by Sun.

One question: will JQS be enabled by default in the future release? I hope so.

weiqigao
Offline
Joined: 2003-06-10
Points: 0

Thanks for the info.

I have to change two more registry entries in addition to what you have outlined:

In HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment, I have to change the BrowserJavaVersion from 1.6.0_02 to 1.6.0_05

In HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.6, I have to change the JavaHome and RuntimeLib to point to the 1.6.0_05 locations (they were pointed to the 1.6.0_02 locations).

Now the command

java -version

prints out the correct string

java version "1.6.0_05-ea"
Java(TM) SE Runtime Environment (build 1.6.0_05-ea-b04)
Java HotSpot(TM) Client VM (build 1.6.0_05-ea-b04, mixed mode, sharing)

And both Firefox and Safari uses 6uN for Java applets. However, IE7 still uses 6u2 for Java applets.