Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

setting classpaths

Options
  • 28-03-2005 6: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 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 Posts: 5,141 ✭✭✭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