NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Can't import a jar in the project.

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users
View previous topic :: View next topic  
Author Message
shahdharmit



Joined: 16 Oct 2009
Posts: 5

PostPosted: Fri Oct 23, 2009 6:40 am    Post subject: Can't import a jar in the project. Reply with quote

Hello,

I use Fedora 11 and have installed netbeans 6.5 on it. I downloaded a jar package that I wanna include in my project. I did some googling and found that I need to right click on the project, go to its propertis and in Libraries, I need to add the jar package. I did that. In spite of doing that when I do
Code:
import net.sourceforge.jpcap.capture;
I get an error saying
Quote:
package net doesn't exist
. The package net.sourceforge.jpcap-0.01.16.jar that I wanna include is in /usr/lib/jpcap-0.01.16/jars folder.

In a post somewhere on other forum, someone wrote that he had to delete the very 1st line of the package. I tried that too but it didn't work out that way either.

Can someone please point me what mistake am I doing or some other way to solve the issue?

Thanks.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo