This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes updating from 1.4.2 to 1.5.0 considerations Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "updating from 1.4.2 to 1.5.0 considerations" Watch "updating from 1.4.2 to 1.5.0 considerations" New topic

updating from 1.4.2 to 1.5.0 considerations

Emilio Gagliardi

Joined: Jun 02, 2004
Posts: 16
Hi all;
I'm sure this is simple!
I just installed java 1.5.0 beta 2 and want to verify that my IDE is using the newest java runtime. The install directory was: C:\utilities\j2sdk1.5.0_beta2
so I added the following line to my user and system PATH variable:

Is that all I need to do? I'm using netbeans 3.6. I just need to make sure I'm using 1.5.0 because of a library that I found uses the 1.5.0 JDK.

Thank you very much.

Tim West
Ranch Hand

Joined: Mar 15, 2004
Posts: 539
Aside from starting 'java' with the '-version' parameter, you could use System.getProperties() to work it out, or just try and run some 1.5-style code. Ie, this will only compile with 1.5:

(Code stolen from here.)

[ June 03, 2004: Message edited by: Tim West ]
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: updating from 1.4.2 to 1.5.0 considerations
It's not a secret anymore!