Skip to main content

"Can't locate the native browser path!" - Linux

6 replies [Last post]
nebuchadneza
Offline
Joined: 2004-06-30

Hello!

I use the JDIC Browser component in a project, that I haven't touched for a few months. Back then it used to work just fine, but today I can't get it to work. I have no problems on Windows, but on my Linux System (Fedora Core 6) I have no chance on getting it to work. I get the error I posted above. Here is the complete stack trace (which I also get, when i try to start the Browser demo):

java -classpath ../../jdic.jar:. -Djava.library.path=../../ Browser
org.jdesktop.jdic.init.JdicInitException: org.jdesktop.jdic.init.JdicInitException: Can't locate the native browser path!
at org.jdesktop.jdic.init.JdicManager.initBrowserNative(Unknown Source)
at org.jdesktop.jdic.browser.WebBrowser.(Unknown Source)
at Browser.jbInit(Unknown Source)
at Browser.(Unknown Source)
at Browser.main(Unknown Source)
Caused by: org.jdesktop.jdic.init.JdicInitException: Can't locate the native browser path!
... 5 more

I tried the Linux version as well as the cross-platform package... no luck. Does anybody know what might be the problem here? I don't know what else I can try to get it run and assume, it might be an easy point.

Thank you so much!
Sascha Häberling

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
nebuchadneza
Offline
Joined: 2004-06-30

After doing some experimenting I found the solution to the problem:
Due to the renaming of mozilla to seamonkey, jdic wasn't able to find the proper executable/libraries anymore. I simply put a soft-link from /usr/bin/seamonkey to /usr/bin/mozilla and the jdic browser works fine again.

Chris Hengge

Would you be willing to share a little more detail? I've got a very small
application (basically a flash player) that works great in Windows XP other
then some javascript errors that don't exist in any other browser viewing
the same page (this seems to be a known error, and there isn't a way yet to
disable displaying the scripts).

Anyways, I've replaced the jdic.jar and all my windows files from the /lib
directory on my project with the jdic.jar and .so files for Linux, but the
project isn't working when I try and run it. I haven't had time to debug it
yet, but since my Linux machine uses KDE/Firefox your post sounded relevant
so I thought I'd try to leverage your knowledge in case I'm running into the
same problem :)

Thanks.

On 6/20/07, jdic@javadesktop.org wrote:
>
> After doing some experimenting I found the solution to the problem:
> Due to the renaming of mozilla to seamonkey, jdic wasn't able to find the
> proper executable/libraries anymore. I simply put a soft-link from
> /usr/bin/seamonkey to /usr/bin/mozilla and the jdic browser works fine
> again.
> [Message sent by forum member 'nebuchadneza' (nebuchadneza)]
>
> http://forums.java.net/jive/thread.jspa?messageID=223125
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jdic-unsubscribe@jdic.dev.java.net
> For additional commands, e-mail: jdic-help@jdic.dev.java.net
>
>
[att1.html]

nebuchadneza
Offline
Joined: 2004-06-30

What is the exact error that you get when running your application on Linux? Is the browser initializing at all? For me it seems that the jdic browser is looking for the "mozilla" executable to be in the PATH. I had Seamonkey installed so what I had to do was soft-linking the "seamonkey" executable to "mozilla". I didn't look any further, but maybe there is a property somewhere which sets the executable to be searched for.
I haven't yet tried to link it to firefox instead. Maybe this is will work, too.

So please provide more information on the error you are getting.

zeta_kun
Offline
Joined: 2006-12-15

nebuchadneza, when mozilla is the default browser the path to the executable should be already available, if its not you can set it using this metod

void setEnginePath(java.lang.String fullPath)

defined in: interface IBrowserEngine

atphalke
Offline
Joined: 2008-01-21

Hello,
I put a softlink from /usr/bin/firefox to /usr/bin/mozilla. Now I am getting following exception
Jtrace: Exception occured when portListening: Connection reset by peer.
Can anybody help me to resolve this.

Thanks in advance.
Atul

Message was edited by: atphalke

cp_kothari
Offline
Joined: 2008-04-15

you are confusing all dear as u r changing the firefox to mozilla :::no need to do that
install mozilla 1.4 u wil directly get a mozilla in user/bin ok