install jpcap library

1,528 views
Skip to first unread message

Anand B

unread,
Mar 27, 2007, 2:06:40 PM3/27/07
to bojug
hello all,

I am using Netbeans 5.5 IDE to do all java development work. Off late
i have been working with packet capturing utility and similar stuff. I
did some homework regarding this and ,

1) installed winpcap library.
2) installed mingw and msys ( since it was asked ).
3) downloaded jpcap source and win32 files from
http://jpcap.sourceforge.net/

Now how do i integrate the library to netbeans. I tried adding the jar
file (net.sourceforge.jpcap-0.01.16) it to the java platform manager
and also in library manager but i didn't work.

when i type ,
import net.sourceforge.jpcap.*;

it provides with the drop down list i.e. when i type "net." it shows a
list with sourceforge in it. but later it says package
net.sourceforge.jpcap not found.

If I am doing something wrong here plz tell me what should i do ? or
if you need more input then please ask.

regards,
Anand B

Jeevan Kumar

unread,
Mar 28, 2007, 12:59:31 AM3/28/07
to bo...@googlegroups.com
Anand,
Please try these steps
1. Right click on your project in NetBeans 5.5 and select properties
2. Select libraries on the left hand side of the properties window
3. Add the jpcap jar by clicking the "Add jar/Folder" button.

If these do work, do check the jar if it does have the classes you need.
Regards,
Jeevan
On 3/27/07, Anand B < anand_bh...@yahoo.com> wrote:

hello all,

I am using Netbeans 5.5 IDE to do all java development work. Off late
i have been working with packet capturing utility and similar stuff. I
did some homework regarding this and ,

1) installed winpcap library.
2) installed mingw and msys ( since it was asked ).
3) downloaded jpcap source and win32 files from
http://jpcap.sourceforge.net/

Now how do i integrate the library to netbeans. I tried adding the jar
file (net.sourceforge.jpcap-0.01.16 ) it to the java platform manager

Ranganath s

unread,
Mar 28, 2007, 12:57:19 AM3/28/07
to bo...@googlegroups.com


<< I tried adding the jar
file (net.sourceforge.jpcap-0.01.16) it to the java platform manager
and also in library manager but i didn't work.

   have you added those jar files (lib) to your project classpath?





Anand B

unread,
Mar 28, 2007, 8:01:14 AM3/28/07
to bojug
OK here is what i did ,

I have these two files,

net.sourceforge.jpcap-0.01.16.jar and
javadoc_net.sourceforge.jpcap-0.01.16.jar

i added the first one to the project properties just as you said.
i added the javadoc jar file to the javadoc tab of the java platform
manager.

now when i type "import net." it gives a drop down list of sourceforge
(which is bcoz i have added the net.sourceforge.jpcap-0.01.16.jar file
in project properties ) and when i type "import
net.sourceforge.jpcap." it gives a list of packages under it and also
java doc information for them.

but later it shows that the package does not exist. (with a red cross
mark in place of line numbers ).

I am pretty sure that the jar file contains all the class files.

I even tried with the source folder which contained the class files
too ( i.e. adding the source folder in project properties but with
same result ).


Tell me if i am doing something wrong,

regards,
Anand B


Jeevan Kumar wrote:
> Anand,
> Please try these steps
> 1. Right click on your project in NetBeans 5.5 and select properties
> 2. Select libraries on the left hand side of the properties window
> 3. Add the jpcap jar by clicking the "Add jar/Folder" button.
>
> If these do work, do check the jar if it does have the classes you need.
> Regards,
> Jeevan
> On 3/27/07, Anand B <anand_bh...@yahoo.com> wrote:
> >
> >
> > hello all,
> >
> > I am using Netbeans 5.5 IDE to do all java development work. Off late
> > i have been working with packet capturing utility and similar stuff. I
> > did some homework regarding this and ,
> >
> > 1) installed winpcap library.
> > 2) installed mingw and msys ( since it was asked ).
> > 3) downloaded jpcap source and win32 files from
> > http://jpcap.sourceforge.net/
> >
> > Now how do i integrate the library to netbeans. I tried adding the jar

> > file (net.sourceforge.jpcap-0.01.16) it to the java platform manager

Reply all
Reply to author
Forward
0 new messages