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

Java CLASSPATH help

Options
  • 10-10-2008 12:12pm
    #1
    Registered Users Posts: 150 ✭✭


    Does anybody know how to set the CLASSPATH variable for Java in OS X 10.5.5?? I can't compile a small program because it isn't set properly for me. I need to add a .jar file path into it.

    Cheers


Comments

  • Registered Users Posts: 1,996 ✭✭✭lynchie


    You shouldn't use a global classpath. They should be used per application.

    javac -cp abc.jar:. MyClass.java


  • Registered Users Posts: 150 ✭✭Mr_Magpie


    Thanks a million. I've spent ages trying to figure this out. And to think the answer was so simple. I'd gotten that far just I forgot the ":." in between the files. Cheers


Advertisement