Java JDIC error message

1.5k Views Asked by At

I have the following line in my Java app, and it's causing the following error message :

  WebBrowser webBrowser=new WebBrowser();


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.<clinit>(Unknown Source)

The app still works, but I wonder if there is a way to correct the error ?

1

There are 1 best solutions below

4
On

There's a problem initializing jdic's native browser but it isn't obvious what it is.

Does passing a URL to the constructor help?

URL        url        = new URL("http://www.stackoverflow.com");
WebBrowser webBrowser = new WebBrowser();

One more thing to check - do you have a default browser? If so, when you double click on an html file in a file manager does the browser window open? If this doesn't work then perhaps jdic is complaining about your default browser path.