how to add java classpath in netbeans

风格不统一 提交于 2019-11-28 10:29:12

问题


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:


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




回答2:


Here are the steps with image description :)

How to add jar file in Netbeans

Let me know if you need something else...

Good Luck!!!



来源:https://stackoverflow.com/questions/9139714/how-to-add-java-classpath-in-netbeans

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!