Olá pessoal!
Estou desenvolendo um sistema que faz a comunicação com a porta paralela.
Depois de algumas pesquisas, eu achei uma api(parport) que utiliza métodos nativos em C para essa comunicação com a porta.
Só que ao rodar o programa, é exibida a mensagem de erro:
Exception in thread “AWT-EventQueue-0” java.lang.UnsatisfiedLinkError: no parport in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
at java.lang.Runtime.loadLibrary0(Runtime.java:822)
at java.lang.System.loadLibrary(System.java:992)
at projete.communication.ParallelPort.(ParallelPort.java:75)
at projete.communication.ParallelPortCommunication.(ParallelPortCommunication.java:13)
at projete.control.GameControl.(GameControl.java:22)
at projete.ProjeteView.jMenuItem1ActionPerformed(ProjeteView.java:511)
at projete.ProjeteView.access$500(ProjeteView.java:17)
at projete.ProjeteView$4.actionPerformed(ProjeteView.java:437)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1000)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1041)
at java.awt.Component.processMouseEvent(Component.java:5488)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
at java.awt.Component.processEvent(Component.java:5253)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3955)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
at java.awt.Container.dispatchEventImpl(Container.java:2010)
at java.awt.Window.dispatchEventImpl(Window.java:1774)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Já copiei o arquivo parport.dll p/ as pastas bin do jdk e jre, como descrito em alguns tutorias que estive lendo a respeito desta api.
Obs.: Estou utilizando o S.O. WinXP e programando com o NetBeans!
Alguem pode me dizer oq ainda falta fazer para que funcione corretamente minha apliacação?
Obrigado.
