File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes JNI error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "JNI error" Watch "JNI error" New topic

JNI error

Raj Devaraj
Ranch Hand

Joined: Jun 29, 2000
Posts: 44
I am trying to run c programs through Java GUi. I have successfully done it before. But now I am getting the following error. Please help me.
Exception occurred during event dispatching:
java.lang.UnsatisfiedLinkError: no hello in java.library.path
at java.lang.ClassLoader.loadLibrary(, Compiled Code)
at java.lang.Runtime.loadLibrary0(, Compiled Code)
at java.lang.System.loadLibrary(, Compiled Code)
at HelloWorld.<clinit>(
at ListTestPanel.actionPerformed(, Compiled Code)
at javax.swing.AbstractButton.fireActionPerformed(, Compiled Code)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(, Compiled Code)
at javax.swing.DefaultButtonModel.fireActionPerformed(, Compiled Code)
at javax.swing.DefaultButtonModel.setPressed(, Compiled Code)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(, Compiled Code)
at java.awt.Component.processMouseEvent(, Compiled Code)
at java.awt.Component.processEvent(, Compiled Code)
at java.awt.Container.processEvent(, Compiled Code)
at java.awt.Component.dispatchEventImpl(, Compiled Code)
at java.awt.Container.dispatchEventImpl(, Compiled Code)
at java.awt.Component.dispatchEvent(, Compiled Code)
at java.awt.LightweightDispatcher.retargetMouseEvent(, Compiled Code)
at java.awt.LightweightDispatcher.processMouseEvent(, Compiled Code)
at java.awt.LightweightDispatcher.dispatchEvent(, Compiled Code)
at java.awt.Container.dispatchEventImpl(, Compiled Code)
at java.awt.Window.dispatchEventImpl(, Compiled Code)
at java.awt.Component.dispatchEvent(, Compiled Code)
at java.awt.EventQueue.dispatchEvent(, Compiled Code)
at java.awt.EventDispatchThread.pumpOneEvent(, Compiled Code)
at java.awt.EventDispatchThread.pumpEvents(, Compiled Code)
at, Compiled Code)
It gives this error "java.lang.UnsatisfiedLinkError: no hello in java.library.path"
What am I doing wrong?.

Thanks in advance

Joined: Feb 21, 2002
Posts: 3
Try adding the following to the command -Djava.library.path=<Dll Dir>
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521
Hi Kenny,
Welcome to JavaRanch and thanks for hlpeing out. However, please change your name to be compliant with JavaRanch's naming policy. It should not be obviously fictitious.
Your displayed name should be 2 separate names with more than 1 letter each. We really would prefer that you use your REAL name.
You can change your name: here.
Hope to see you around more,

"JavaRanch, where the deer and the Certified play" - David O'Meara
I agree. Here's the link:
subject: JNI error
It's not a secret anymore!