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
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Java CLASSPATH help

  • 10-10-2008 11:12am
    #1
    Registered Users, Registered Users 2 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, Registered Users 2 Posts: 2,013 ✭✭✭lynchie


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

    javac -cp abc.jar:. MyClass.java


  • Registered Users, Registered Users 2 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