开发者

Creating/accessing libraries in netbeans

开发者 https://www.devze.com 2023-03-10 05:24 出处:网络
I am a new netbeans user, and I\'m having trouble importing user created libraries. I created a library named \"MyLibrary\". I then added a folder that contains my saved projects (entitled \"netbean

I am a new netbeans user, and I'm having trouble importing user created libraries.

I created a library named "MyLibrary". I then added a folder that contains my saved projects (entitled "netbeansProjects") to the classpath, which I wrote in the netbeans IDE. Now I'm trying to import a class into a project I'm working on, but it wont allow to me to it. I'm getting the massage "Package does not exist". I would really appreciate some assistance on this problem. I searched online; I couldn't find 开发者_如何学JAVAanything.


You'll have to create the library using the Netbeans Library Manager. Go to Tools ->Libraries then select the New Library... button and make a new Class Library. You will only be able to add jar files using this method not a Netbeans project.

To add a Netbeans project:

In the Netbeans Projects window right click on Libraries folder under your project, and select Add Project... then navigate to the Netbeans project your would like use. You will have to do this for each project you would like to use.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号