我做了一个程序,但是当运行的时候Java Web Start提示下载错误,无法下载资源:file://F/shaobo/shaobo/src/shaobo1/filechooser.jnlp
但是我的路径写的正确啊,请帮助我看一下问题出在哪里.
我的启动文件如下:
<?xml version= "1.0" encoding ="UTF-8"?>
<jnlp spec ="1.0+"
codebase ="file://F:/shaobo/shaobo/src/shaobo1"
href= "filechooser.jnlp">
<information>
<title>FileChooser demo application</title>
<vendor>Mindview Inc.</vendor>
<description>
Jnlp File choose Application
</description>
<description kind= "short">
A demonstration of opening, reading and
writing a text file
</description>
<icon href="Sunset.jpg"/>
<offline-allowed/>
</information>
<resources>
<j2se version ="1.4+"/>
<jar href= "JnlpFileChooser.jar" download= "eager"/>
</resources>
<application-desc
main-class= "shaobo1.JnlpFileChooser"/>
</jnlp>
----------------解决方案--------------------------------------------------------
不要用绝对路径,对相对路径来配置
----------------解决方案--------------------------------------------------------
我试了,好像不行啊,用相对路径会提示codebase的值无效
----------------解决方案--------------------------------------------------------
那是因为你确实把路径写错了
----------------解决方案--------------------------------------------------------
我仔细检查过了我的路径没有写错,你能举个例子将我的代码怎样用相对路径写吗
----------------解决方案--------------------------------------------------------