Comment importer la bibliothèque jpcap

Ihsanovic Messages postés 3 Date d'inscription dimanche 21 décembre 2003 Statut Membre Dernière intervention 11 janvier 2005 - 27 déc. 2004 à 10:25
midoubh Messages postés 9 Date d'inscription dimanche 28 février 2010 Statut Membre Dernière intervention 5 octobre 2012 - 27 févr. 2010 à 09:49
IhsanovicCPP is mu LIFE
Salut tout le monde, je suis nouveau en java et je voudrai juste importer la bibliothèque jpcap, je l'ai télécharger avec le winpcap, mais < import jpcap.*;> ne marche pas et ca me fait une erreur sur le ( Souligner en rouge). Alors si qq1 a une soltion ou une idée de ce que ca peut etre , qu'il me le dit sur le forum ou sur ma boite mail : <filoman12@caramail.com>.merci

Informatiquement FiloMan12

4 réponses

cs_neodante Messages postés 2835 Date d'inscription lundi 11 août 2003 Statut Modérateur Dernière intervention 16 décembre 2006 11
1 janv. 2005 à 17:59
:big) Neodante :big)

Salut,
regarde dans mes sources, je l'utilise dans un de mes projets (du moins une des 2 libs qui se nomme comme ça) :
http://www.javafr.com/code.aspx?id=20303
Mais à mon avis c'est que tu n'a pas bien configuré ton classpath ...
Fais :
java -classpath "\...\toto.jar" monmaindemaclass
Cela devrait beaucoup mieux marcher ...

@+

[Responsable www.neogamedev.com et Admin CS]
0
Ihsanovic Messages postés 3 Date d'inscription dimanche 21 décembre 2003 Statut Membre Dernière intervention 11 janvier 2005
11 janv. 2005 à 16:25
Merci beaucoup pour ton aide, mais je crois que j'ai probleme d'emplacement
de la bibliotheque...mais bon, t'as pas un tutorial de java(Jbuilder9) en francais
car on developpe une application reseau assez robusque en JBuilder9...
Meme de la doc ...merci d'avance ...
0
fedora2008 Messages postés 4 Date d'inscription mardi 1 avril 2008 Statut Membre Dernière intervention 21 mai 2008
2 juin 2008 à 09:40
Bonjour
j'essaye de programmer une classe pour sniffer le réseau mai l'erreur suivante de déclanche
 

1

java.lang.NoSuchMethodError: setRoutingOption

at jpcap.JpcapCaptor.nativeOpenLive(

Native Method
)at jpcap.JpcapCaptor.openDevice(



JpcapCaptor.java:62

)at Captor_lecture.lecture(



Captor_lecture.java:38

)at Viewer.jComboBoxdevActionPerformed(



Viewer.java:269

)at Viewer.access$1(



Viewer.java:264

)at Viewer$2.actionPerformed(



Viewer.java:110

)at javax.swing.JComboBox.fireActionEvent(Unknown Source)

at javax.swing.JComboBox.setSelectedItem(Unknown Source)

at javax.swing.JComboBox.setSelectedIndex(Unknown Source)

at javax.swing.plaf.basic.BasicComboPopup$Handler.mouseReleased(Unknown Source)

at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)

at java.awt.Component.processMouseEvent(Unknown Source)

at javax.swing.JComponent.processMouseEvent(Unknown Source)

at javax.swing.plaf.basic.BasicComboPopup$1.processMouseEvent(Unknown Source)

at java.awt.Component.processEvent(Unknown Source)

at java.awt.Container.processEvent(Unknown Source)

at java.awt.Component.dispatchEventImpl(Unknown Source)

at java.awt.Container.dispatchEventImpl(Unknown Source)

at java.awt.Component.dispatchEvent(Unknown Source)

at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)

at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)

at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)

at java.awt.Container.dispatchEventImpl(Unknown Source)

at java.awt.Window.dispatchEventImpl(Unknown Source)

at java.awt.Component.dispatchEvent(Unknown Source)

at java.awt.EventQueue.dispatchEvent(Unknown Source)

at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.run(Unknown Source)



#


# An unexpected error has been detected by HotSpot Virtual Machine:


#


# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d6d6af6, pid=2484, tid=220


#


# Java VM: Java HotSpot(TM) Client VM (1.5.0-b64 mixed mode)


# Problematic frame:


# V [jvm.dll+0x96af6]


#


# An error report file with more information is saved as hs_err_pid2484.log


#


# If you would like to submit a bug report, please visit:


# http://java.sun.com/webapps/bugreport/crash.jsp


#





Exception in thread "AWT-EventQueue-0"

pouver vous m'aider
0
midoubh Messages postés 9 Date d'inscription dimanche 28 février 2010 Statut Membre Dernière intervention 5 octobre 2012
27 févr. 2010 à 09:49
slt,
je veux savoir les différents bibliothèque ou packages à importer en java comme import.java.util; et leurs utilités
merci d'avance et j'èspère qu'il ya réponse
0
Rejoignez-nous