Skip to main content

Firefox support for JDIC?

2 replies [Last post]
rblanchard
Offline
Joined: 2007-10-15
Points: 0

Not sure whether this is an appropriate question to ask here, or to the Firefox community.

Does anyone know if there is work to support Firefox in JDIC?

I have read some of the old posts concerning static vs. dynamic linking of Gecko and that because it is a static link, Firefox cannot be embedded. So, does this merely mean that building Firefox with dynamic links to Gecko would alleviate the problem, or is there more to it?

Has anyone made attempts to get JDIC working with Firefox. Or more appropriately, getting Firefox to work with JDIC?

The JDIC browser component has been useful, but as I am in Linux, relying on Mozilla (which is not ordinarily shipped anymore with any Linux distributions) seems a greater risk over time.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
rblanchard
Offline
Joined: 2007-10-15
Points: 0

I guess I have answered one of my own questions.

I downloaded the Firefox 2.0.0.9 source and built disabling the static library and enabling the shared library.

I then rebuilt JDIC using Firefox instead of Mozilla.

After then trying to trick the system by making symbolic links from the firefox binary to a mozilla binary, I ran a simple browser case, and did not succeed.

Has anyone else made any attempts at this and have any lessons learned to share?

Thanks.

rblanchard
Offline
Joined: 2007-10-15
Points: 0

Okay... this time I tried to be a little smarter, and am still running into trouble. Is there anyone else out there that cares to pursue this issue with Firefox and JDIC?

My latest attempt was in downloading the Firefox 1.5.0.12 source and building that. It was built with shared libraries. Furthermore, I grabbed all of the "sdk" folder and used that as the GECKO_SDK reference. I modified JDIC code to look for "firefox" binary instead of "mozilla" where needed. I then built JDIC against the GECKO_SDK that was part of Firefox, and using a MOZILLA_DIST of the firefox installation.

Everything builds just fine, but on attempting to run a simple browser application, the native browser dies. It also throws an exception prior to this, which is picked up in the MsgClient class, and the error is:

*** Jtrace: Exception occured when portListening: Connection reset by peer.

Anyone have any input on this?