Skip to main content

FireFox 3.0 and jdic 0.9.5 (released on June 3, 2008)

6 replies [Last post]
alka
Offline
Joined: 2007-03-27

On Windows Vista SP1 and Windows XP SP2 the latest FireFox 3.0 does not work with jdic 0.9.5.

I get the following error: The first 3 lines it seems are debug trace:
Native loader!
isDefaultBrowserMozilla
isDefaultBrowserMozilla
Can't execute the native embedded browser. Error message: java.io.IOException: The filename, directory name, or volume label syntax is incorrect

Another weird issue I noticed on Windows Vista is that changing IE7 to be the default browser still gives me the same above error. I had to uninstall FireFox 3.0 from my machine to get the jdic web browser to display the html file.

Has anyone installed FireFox 3.0 and experienced this problem?
Does anyone know of a workaround to fix this?

Thanks,
--Alka

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
aces
Offline
Joined: 2003-07-17

Hi

Same problem here.
After I updated to FireFox 3, my JDIC help system just stop working.
I had set IE as my default browser to have it working again.

[b]
Someone can point how to set/suggest JDIC to use IE ?
Thanks ;)
[/b]

Below is a partial stack trace:
[code]
org.jdesktop.jdic.init.JdicInitException: java.io.IOException: The filename, directory name, or volume label syntax is incorrect
at org.jdesktop.jdic.init.JdicManager.initBrowserNative(Unknown Source)
at org.jdesktop.jdic.browser.WebBrowser.(Unknown Source)
at javax.help.plaf.basic.BasicNativeContentViewerUI.installUI(BasicNativeContentViewerUI.java:125)
at javax.swing.JComponent.setUI(JComponent.java:668)
at javax.help.JHelpContentViewer.setUI(JHelpContentViewer.java:120)
at javax.help.JHelpContentViewer.updateUI(JHelpContentViewer.java:140)
at javax.help.JHelpContentViewer.(JHelpContentViewer.java:87)
at javax.help.JHelp.(JHelp.java:122)
at javax.help.WindowPresentation.createJHelp(WindowPresentation.java:853)
at javax.help.WindowPresentation.createHelpWindow(WindowPresentation.java:889)
at javax.help.WindowPresentation.setDisplayed(WindowPresentation.java:354)
at javax.help.DefaultHelpBroker.setDisplayed(DefaultHelpBroker.java:186)
[/code]

aces
Offline
Joined: 2003-07-17

Hi

I fill a RFE for this issue, with a proposed fix
[b] Force IE on Windows [/b]
https://jdic.dev.java.net/issues/show_bug.cgi?id=526

If you believe it can help you, please go over there and vote for this RFE.

Below I reproduce the text:
[i]
Hi

Current release is not compatible with Firefox 3.
To avoid problems on Win32 system with Firefox set as default browser, I´d like
to suggest a way to change JDIC behavior :

A System property to override current default browser, and use IE.

It could be done this way on org.jdesktop.jdic.browser.internal.WebBrowserUtil :

[/i]
[code]
/***************************************************/
/**

 * Constant string property name to force IE by JDIC.
 * This one can be set as VM parameter
 * java -Djdic.forceIE=true MyApp
 * or within app, before invoking JDIC :
 * System.setProperty("jdic.forceIE","true");
 *

**/
public static final String FORCE_IE = "jdic.forceIE";

/**
* Modified version of isDefaultBrowserMozilla to support
* FORCE_IE feature
**/
public static boolean isDefaultBrowserMozilla() {

String osName = System.getProperty("os.name").toLowerCase();

if ((osName.indexOf("solaris") >= 0) ||
(osName.indexOf("linux") >= 0) ) {
return true;
}
else
{
String forceIE = System.getProperty(FORCE_IE);
if(forceIE != null && forceIE.equalsIgnoreCase("true")){
return false;
}

String nativeBrowserPath = getBrowserPath();
// Only when Mozilla is set as the default browser, return true.
// Or else, fall back to Internet Explorer.
// FireFox 1.0 is statically linked into Gecko and therefore can not
// be embedded. If FireFox is embeddable for some future version,
// we would have to explicitly check for both Mozilla and FireFox.
if (nativeBrowserPath.indexOf("mozilla") >= 0) {
return true;
} else {
return false;
}
}

}
/********************************************************************/
[/code]
[i]
Thanks in advance

Alessandro (aces)
[/i]

masewarner
Offline
Joined: 2006-12-21

I have tried to run even the SimpleBrowser.java application in Ubuntu 8.04 and there is no way this code works, I even downloaded Firefox 2 and tried to get it to work. I don't think that this stuff was tested at all and it does not seem to work. Is anyone fixing this or is this project totally dead?

geekycoder
Offline
Joined: 2008-06-19

Hi,
you're not alone.
I get the same error as you are. Look like it doesn't work with firefox 3.0 anymore.

shreder
Offline
Joined: 2008-07-04

You can try our product for firefox 3.0.
We have a very similar API, I hope this will help resolve your problem.
http://www.teamdev.com/jxbrowser/index.jsf

harman_smith
Offline
Joined: 2008-11-21

Your API Its very nice but very expensive too :(