This is probably a silly question, but how or where do I add jgrapht so my java compiler in terminal will include it? I’ve got the .jar file but don’t know where to put it.
I’m using Mac OS X ML and Netbeans.
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.
To use an external Java library you need to add it to your classpath. The Java documentation has some great information on how to set it.
Assuming you’re using the
javaccompiler, you’ll use a command similar to:See also: Compiling Java
You specifiacally mention Netbeans, so you’ll also want to look at this question, and this blog post.
I hope this helps! 🙂