Click to See Complete Forum and Search --> : Can't locate the native browser path!


ST.mani
06-17-2008, 08:43 AM
Hi,


In my java application i used the jdic.jar for loading flash files in browser. It works fine in Windows platform. Now i shifted to LINUX platform. I am using the Mozilla Firebox 2.0.14 as the browser. The Mozilla firefox is installed under the path of /usr/local/firefox-2.0.0.14.

I put the jdic.jar and other supported (libjdic.so, jnlp2rpm, mozembed-linux-gtk2, mozembed-linux-gtk1.2, libtray.so, packager.jar, libmozembed-linux-gtk1.2.so, libmozembed-linux-gtk2.so ) files in the Java classpath (/usr/local/ java/ JDK1.6.0_06/jre/lib/ext). When i run the Java application, It prints the following error.
---------------------------------------------------------------------------------------------------------------------------
org.jdesktop.jdic.init.JdicInitException: org.jdesktop.jdic.init.JdicInitException: Can't locate the native browser path!
at org.jdesktop.jdic.init.JdicManager.initBrowserNati ve(Unknown Source)
at org.jdesktop.jdic.browser.WebBrowser.<clinit>(Unknown Source)
at netsim.NetSimBasics.<init>(NetSimBasics.java:42)
at netsim.NetSimBasics.main(NetSimBasics.java:67)
Caused by: org.jdesktop.jdic.init.JdicInitException: Can't locate the native browser path!
... 4 more
Exception in e : java.lang.NullPointerException
Exception in thread "main" java.lang.NullPointerException
at org.jdesktop.jdic.browser.WebBrowser.setURL(Unknow n Source)
at org.jdesktop.jdic.browser.WebBrowser.setURL(Unknow n Source)
at netsim.NetSimBasics.<init>(NetSimBasics.java:60)
at netsim.NetSimBasics.main(NetSimBasics.java:67)
---------------------------------------------------------------------------------------------------------------------------
Please reply to solve this problem?

Thank you.

cybertron
06-18-2008, 04:23 PM
I'm not familiar with jdic, but you might want to contact the developers if you can. They'll probably be able to tell you what browser path it's looking for.

deathadder
06-19-2008, 03:18 AM
From the bottom of this page: http://java.sun.com/developer/JDCTechTips/2005/tt0505.html

To compile the example program, you need to include the jdic.jar file in your class path. To run the program, you need the native libraries included in a place where the JVM can find it. Alternatively, you can point to the jar file and the native libraries at runtime by using -Djava.library.path= followed by the path to the directory that contains the native libraries. For example, on a Windows machine, if you copy the jar file and dll files into the same directory as the one that contains your program, you can use the following command to run the program:

java -classpath jdic.jar;. -Djava.library.path=.
OpenWithRegisteredApp

I've got no personal experience with jdic, so I've got no idea if this is actually what you need, but it's worth a try.

HTH