Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

setting classpaths

  • 28-03-2005 06:54PM
    #1
    Closed Accounts Posts: 175 ✭✭


    anyone help? i have jdk1.5.0 and am trying to complie a program which uses PrintWirter and BufferedReader from the io package....can anyone tell me where to set the classpath to for for it to complie?

    i have java installed in :

    C:\Program Files\Java\jdk1.5.0

    Cheers!


Comments

  • Registered Users, Registered Users 2 Posts: 21,264 ✭✭✭✭Hobbes


    set JAVA_HOME=C:\Program Files\Java\jdk1.5.0
    set CLASSPATH=.;%JAVA_HOME%\jre\lib\rt.jar;%CLASSPATH%
    set PATH=%PATH%;%JAVA_HOME%\bin


  • Registered Users, Registered Users 2 Posts: 5,130 ✭✭✭Yakuza


    I haven't done much in Java for the last six months or so, (so I could be out of tune!), but I recommend you get your hands on Eclipse, or NetBeans, or JBuilder. They are all free downloads, and provide a decent IDE environment for compiling, debugging and (most importantly for slackers like me:)) code look-ahead. The installation routines should put the JDK in a folder it can see, so that it compiles.

    Good luck :)


  • Closed Accounts Posts: 175 ✭✭napalm@night


    Cheers Guys! Thanks for the Help!


Advertisement