permaculture playing cards
The moose likes Struts and the fly likes java.lang.reflect.InvocationTargetException Caused by: java.lang.UnsatisfiedLinkError Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "java.lang.reflect.InvocationTargetException Caused by: java.lang.UnsatisfiedLinkError" Watch "java.lang.reflect.InvocationTargetException Caused by: java.lang.UnsatisfiedLinkError" New topic

java.lang.reflect.InvocationTargetException Caused by: java.lang.UnsatisfiedLinkError

Shashika Wickramarachchi

Joined: Jun 01, 2010
Posts: 5
Hi all,

I'm using jdic web browser (windows version) and customizing it for a project. I want to make an executable jar file. Since I'm using NetBeans 6.7.1, I'm getting a jar file in dist folder. Bt when I run it it does not open the jdic browser.

Then I tried java web start and make a jnlp file. When it tries to run I get the below error..

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.sun.javaws.Launcher.executeApplication(
at com.sun.javaws.Launcher.executeMainClass(
at com.sun.javaws.Launcher.doLaunchApp(
at Source)
Caused by: java.lang.UnsatisfiedLinkError: no jdic in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at org.jdesktop.jdic.browser.internal.WebBrowserUtil$ Source)
at Method)
at org.jdesktop.jdic.browser.internal.WebBrowserUtil.loadLibrary(Unknown Source)
at org.jdesktop.jdic.browser.internal.WebBrowserUtil.getDefaultBrowserPath(Unknown Source)
at org.jdesktop.jdic.browser.BrowserEngineManager.selectEngine(Unknown Source)
at org.jdesktop.jdic.browser.BrowserEngineManager.getActiveEngine(Unknown Source)
at AgentBrowser.Browser.jbInit(
at AgentBrowser.Browser.<init>(
at AgentBrowser.Browser.main(
... 9 more
A person shared his view on "java.lang.reflect.InvocationTargetException" but I'm not quite sure about that since the browser works nicely if I run through NetBeans. (running the project through NetBeans).

I dnt know how does this library path problem occurs

please help me..!!

thanks in advance
Shashika Wickramarachchi

Joined: Jun 01, 2010
Posts: 5
Yeah..! it's working

I just copied jdic files (jdic.jar,jdic.dll, IeEmbed.exe etc) into dict/lib/ folder and now it is working.
Devaka Cooray
ExamLab Creator

Joined: Jul 29, 2008
Posts: 3930

Welcome to JavaRanch

Author of ExamLab ExamLab - a free SCJP / OCPJP exam simulator
What would SCJP exam questions look like? -- Home -- Twitter -- How to Ask a Question
I agree. Here's the link:
subject: java.lang.reflect.InvocationTargetException Caused by: java.lang.UnsatisfiedLinkError
It's not a secret anymore!