This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JNI error

 
Raj Devaraj
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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(ClassLoader.java, Compiled Code)
at java.lang.Runtime.loadLibrary0(Runtime.java, Compiled Code)
at java.lang.System.loadLibrary(System.java, Compiled Code)
at HelloWorld.<clinit>(HelloWorld.java:10)
at ListTestPanel.actionPerformed(ListTest.java, Compiled Code)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java, Compiled Code)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java, Compiled Code)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java, Compiled Code)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java, Compiled Code)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java, Compiled Code)
at java.awt.Component.processMouseEvent(Component.java, Compiled Code)
at java.awt.Component.processEvent(Component.java, Compiled Code)
at java.awt.Container.processEvent(Container.java, Compiled Code)
at java.awt.Component.dispatchEventImpl(Component.java, Compiled Code)
at java.awt.Container.dispatchEventImpl(Container.java, Compiled Code)
at java.awt.Component.dispatchEvent(Component.java, Compiled Code)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java, Compiled Code)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java, Compiled Code)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java, Compiled Code)
at java.awt.Container.dispatchEventImpl(Container.java, Compiled Code)
at java.awt.Window.dispatchEventImpl(Window.java, Compiled Code)
at java.awt.Component.dispatchEvent(Component.java, Compiled Code)
at java.awt.EventQueue.dispatchEvent(EventQueue.java, Compiled Code)
at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java, Compiled Code)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java, Compiled Code)
at java.awt.EventDispatchThread.run(EventDispatchThread.java, Compiled Code)
It gives this error "java.lang.UnsatisfiedLinkError: no hello in java.library.path"
What am I doing wrong?.

Thanks in advance
 
Kenny
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try adding the following to the command -Djava.library.path=<Dll Dir>
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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,
Cindy
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic