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

[437 byte] By [Anand_Bala2007a] at [2007-11-27 1:49:47]
# 1
It helps if you post the exact error (on a line by itself.)Most likely is that your JNI and native java signatures do not match.It could be however that some compilation options are not quite correct.
jschella at 2007-7-12 1:15:35 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 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)

Anand_Bala2007a at 2007-7-12 1:15:35 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 3
I already told you what the errors were likely to be.Presumably you are loading the library.Other than that you need to first start by posting the java class (the native method specifically) and the exact signature that you are using in C.
jschella at 2007-7-12 1:15:35 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 4
HI Thanks. The problem was solved . I declare native metod signature correctly. Thanks & RegardsB.AnanthaRamu
Anand_Bala2007a at 2007-7-12 1:15:35 > top of Java-index,Java HotSpot Virtual Machine,Specifications...