This week's book giveaway is in the Testing forum.
We're giving away four copies of Practical Unit Testing with TestNG and Mockito and have Tomek Kaczanowski on-line!
See this thread for details.
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
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Application Frameworks » Struts
Reply Bookmark "java.lang.reflect.InvocationTargetException Caused by: java.lang.UnsatisfiedLinkError" Watch "java.lang.reflect.InvocationTargetException Caused by: java.lang.UnsatisfiedLinkError" New topic
Author

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

Shashika Wickramarachchi
Greenhorn

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..

java.lang.reflect.InvocationTargetException
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(Launcher.java:1293)
at com.sun.javaws.Launcher.executeMainClass(Launcher.java:1239)
at com.sun.javaws.Launcher.doLaunchApp(Launcher.java:1086)
at com.sun.javaws.Launcher.run(Launcher.java:105)
at java.lang.Thread.run(Unknown 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$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native 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(Browser.java:362)
at AgentBrowser.Browser.<init>(Browser.java:99)
at AgentBrowser.Browser.main(Browser.java:117)
... 9 more

http://java.ittoolbox.com/groups/technical-functional/javaee-l/how-to-resolve-the-errorjavalangreflectinvocationtargetexception-1710507
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
Greenhorn

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
Saloon Keeper

Joined: Jul 29, 2008
Posts: 2595

Welcome to JavaRanch


Author of ExamLab - the free mock exam kit for SCJP / OCPJP
Home Page -- Twitter Profile -- JavaRanch FAQ -- How to Ask a Question
 
 
subject: java.lang.reflect.InvocationTargetException Caused by: java.lang.UnsatisfiedLinkError
 
Threads others viewed
WAMP/Java/MysqlConnector Issue
Exception in thread "main"
Applet error
Can't Run Application from WebStart, But Works in IDE
Unable to run Simple JFrame app using jdic.jar in eclipse!
jQuery in Action, 2nd edition

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture