aspose file tools*
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
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
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
ExamLab Creator
Saloon Keeper

Joined: Jul 29, 2008
Posts: 3100
    
  40

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: http://aspose.com/file-tools
 
subject: java.lang.reflect.InvocationTargetException Caused by: java.lang.UnsatisfiedLinkError