Can anyone tell me how to add to the classpath on OSX?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you want to make a certain set of JAR files (or .class files) available to every Java application on the machine, then your best bet is to add those files to
/Library/Java/Extensions.Or, if you want to do it for every Java application, but only when your Mac OS X account runs them, then use
~/Library/Java/Extensionsinstead.EDIT: If you want to do this only for a particular application, as Thorbjørn asked, then you will need to tell us more about how the application is packaged.