Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

Java CLASSPATH help

  • 10-10-2008 12:12PM
    #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, Paid Member Posts: 2,033 ✭✭✭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
Advertisement