Frank
Frank

Reputation: 31096

Java JDIC error message

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 ?

Upvotes: 2

Views: 1523

Answers (1)

richj
richj

Reputation: 7529

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.

Upvotes: 0

Related Questions