如何在netbeans中添加java classpath [英] how to add java classpath in netbeans

查看:472
本文介绍了如何在netbeans中添加java classpath的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在netbeans中编写一个java程序。但我需要添加一个类路径something.jar。
在netbeans中我该怎么做?
我用命令编译:

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


推荐答案

在NetBeans项目属性窗口中,单击左侧面板中的库,然后单击右侧面板是您可以配置的4类classpath。看看这篇文章,它是从2006年开始的,但Netbeans的这一部分基本保持不变: http://javahowto.blogspot.com/2006/06/set-classpath-in-eclipse-and-netbeans.html

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

这篇关于如何在netbeans中添加java classpath的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆