views:

469

answers:

3

I just got an Java update notification that Update 17 is out, so I ran the update and found that only my public JRE was updated. I still only have Update 16 of the JDK.

Is there a way to have the latest JDK automatically when it's available?

Of course, the update shouldn't get rid of old versions. That should be done manually since Eclipse is still using the old version. Once I've updated my settings I would delete the old JDK manually.

+2  A: 

Not on Windows. If you are getting your JDK via a linux distro with an auto-updater, you could depend on that. Somehow I doubt that is what you have in mind. I do not believe that there is any Sun-supplied auto-download for the JDK.

bmargulies
You could write an auto-download script yourself to get the latest JDK installer, just make it a scheduler task and it will run every night. The problem will be installing the new JDK, since I doubt the installer has a non-interactive mode.
Nate C-K
Plus, Sun's Java download site has a few irritating click-through screens using long URL's full of ID's and such before you actually get to download the installer, so even the auto-download part wouldn't be a walk in the park.
Nate C-K
A: 

Under OS X this is part of the operating system and is automatically updated. For Windows you must do it yourself.

Thorbjørn Ravn Andersen
+1  A: 

You could write an auto-downloader and auto-updater.

A solution for XP would be to have it remember a symlink (possible on NTFS) that is like

jdk -> jdk_1.6.16

Then, after install, update the symlink to point at

jdk -> jdk_1.6.17

After you write the auto-downloader/-updater, remember to share it with the community :)

glebm