简体   繁体   English

如何在netbeans中添加Java类路径

[英]how to add java classpath in netbeans

I'm writing a java program in netbeans. 我在netbeans中编写一个Java程序。 But I need to add a classpath something.jar. 但是我需要添加一个classpath something.jar。 In netbeans how can I do that? 在netbeans中我该怎么做? I compile with command: 我用命令编译:

java -classpath .:something.jar MyCode.java

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. 在“ NetBeans项目属性”窗口中,单击左侧面板中的“库”,在右侧面板中可以配置4个类路径类别。 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 看看这篇文章,它可以追溯到2006年,但是Netbeans的这一部分几乎保持不变: http : //javahowto.blogspot.com/2006/06/set-classpath-in-eclipse-and-netbeans.html

Here are the steps with image description :) 这是带有图像描述的步骤:)

How to add jar file in Netbeans 如何在Netbeans中添加jar文件

Let me know if you need something else... 让我知道您是否还需要其他东西...

Good Luck!!! 祝好运!!!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM