简体   繁体   English

Java JDIC错误消息

[英]Java JDIC error message

I have the following line in my Java app, and it's causing the following error message : 我的Java应用程序中包含以下行,并导致以下错误消息:

  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 ? 该应用程序仍然可以运行,但是我想知道是否有一种方法可以纠正错误?

There's a problem initializing jdic's native browser but it isn't obvious what it is. 初始化jdic的本机浏览器时遇到问题,但这并不明显。

Does passing a URL to the constructor help? 将URL传递给构造函数是否有帮助?

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? 如果是这样,当您在文件管理器中双击HTML文件时,浏览器窗口是否打开? If this doesn't work then perhaps jdic is complaining about your default browser path. 如果这不起作用,则jdic可能在抱怨您的默认浏览器路径。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM