Problem in calling .so file in Linux
HI
i am creating one native library in Linux machine. Then I make my application as .jar file .
The application is located on Windows machine. Then i run my apllication on Linux.
But when i am calling the native library it gives java.lang.UnsatisfiedLinkError -- Intialize()
.i set the environment path as LD_LIBRARY_PATH =/usr/lib.
What's the problem?
Thanks & Regards
B.Anantharamu
# 2
HI
this is the detailed error msg. InitializePrinter is native method. whats the problem?
java.lang.UnsatisfiedLinkError: InitializePrinter
at com.eaglelot.gamehawker.terminalAPI.GameHawker.InitializePrinter(Native Method)
at com.eaglelot.gamehawker.terminalAPI.GHTerminalCommn.printLottoTicket(GHTerminalCommn.java:169)
at com.eaglelot.gamehawker.games.PnlLottoGame.printTicket(PnlLottoGame.java:698)
at com.eaglelot.gamehawker.games.PnlLottoGame.ticketWager(PnlLottoGame.java:665)
at com.eaglelot.gamehawker.games.PnlLottoGame.printActionPerformed(PnlLottoGame.java:611)
at com.eaglelot.gamehawker.games.PnlLottoGame.actionPerformed(PnlLottoGame.java:342)
at com.eaglelot.gamehawker.games.PnlLottoGame.actionPerformed(PnlLottoGame.java:314)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
at java.awt.Component.processMouseEvent(Component.java:5100)
at java.awt.Component.processEvent(Component.java:4897)
at java.awt.Container.processEvent(Container.java:1569)
at java.awt.Component.dispatchEventImpl(Component.java:3615)
at java.awt.Container.dispatchEventImpl(Container.java:1627)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
at java.awt.Container.dispatchEventImpl(Container.java:1613)
at java.awt.Window.dispatchEventImpl(Window.java:1606)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:480)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)