Win a copy of Fixing your Scrum this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Rob Spoor
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Holloway
  • Piet Souris
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Frits Walraven
  • Himai Minh

updating from 1.4.2 to 1.5.0 considerations

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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:
C:\utilities\j2sdk1.5.0_beta2\bin

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.
 
Ranch Hand
Posts: 539
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.)



--Tim
[ June 03, 2004: Message edited by: Tim West ]
 
Seriously Rick? Seriously? You might as well just read this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic