如何将库导入NetBeans中的Java项目? [英] How can I import a library to a Java project in NetBeans?

查看:374
本文介绍了如何将库导入NetBeans中的Java项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要一个可以创建具有Double或Float数字而不是int数的多边形的类.好吧,我在此处,然后此处是Jar文件的下载.我提取了Jar并将其添加到NetBeans的库中;但是现在,我不知道如何将包导入到我的项目中.如果键入"import org.apache.batik.ext.awt.geom;",则表示该软件包不存在.如何将该软件包导入到我的项目中?谢谢!

I needed a class that could create polygons with Double or Float numbers, instead of int numbers. Well, I found it here, and here is the Jar file download. I extracted the Jar and added it to the libraries in NetBeans; but now, I don't know how to import the package to my project. If I type "import org.apache.batik.ext.awt.geom;", it says that the package does not exist. How can I import that package to my project? Thanks!

推荐答案

这非常容易..您只需在netbeans中展开项目树,然后右键单击项目中的Libraries文件夹,然后选择Add Jar/Folder.选项,然后选择下载的jar文件..单击以打开..之后,您就可以导入这些库了.

It's very easy.. you just expand the project tree in netbeans and right click to Libraries folder which is in the project.. and select the Add Jar/Folder option and choose your downloaded jar file.. nad click to open.. after that you can able to import these libraries..

这篇关于如何将库导入NetBeans中的Java项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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