1

I'm writing a java program in netbeans. But I need to add a classpath something.jar. In netbeans how can I do that? I compile with command:

java -classpath .:something.jar MyCode.java
1
  • Actuly I solved the issue some minutes after this post. I forgot to mention here! Commented Feb 6, 2012 at 11:29

2 Answers 2

3

In NetBeans Project Properties Window, you click Libraries in the left panel, and in the right panel are 4 categories of classpath you can configure. Take a look at this article, it's back from 2006, but this part of Netbeans remained pretty much the same: http://javahowto.blogspot.com/2006/06/set-classpath-in-eclipse-and-netbeans.html

Sign up to request clarification or add additional context in comments.

Comments

3

Here are the steps with image description :)

How to add jar file in Netbeans

Let me know if you need something else...

Good Luck!!!

1 Comment

External linking is discouraged. Please include the relevant content in your answer.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.