java 无法加载资源 Jar 文件
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/36846486/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Unable to load resource Jar file
提问by Muhamet Aljobairi
I'm working on JavaFx project, and we need to run the app on java jnlp. We singed all the jar files, and i added the IP address into Java configuration, but i faced this problem
我正在处理 JavaFx 项目,我们需要在 java jnlp 上运行该应用程序。我们烧录了所有的 jar 文件,并将 IP 地址添加到 Java 配置中,但是我遇到了这个问题
ExitException[ 3]com.sun.deploy.net.FailedDownloadException: Unable to load resource: http://192.168.1.16:8080/walleterp/lib\WalletERPLibs.jar
at sun.plugin2.applet.JNLP2Manager.downloadResources(Unknown Source)
at sun.plugin2.applet.JNLP2Manager.prepareLaunchFile(Unknown Source)
at sun.plugin2.applet.JNLP2Manager.loadJarFiles(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
I tried :
我试过 :
Change the network setting on Java Config, and i changed it to 'Direct Connection'.
Clear the temporary folder.
Changed the Browser Proxy
更改 Java Config 上的网络设置,我将其更改为“直接连接”。
清除临时文件夹。
更改浏览器代理
but nothing changed for my error. How can i solve the problem
但我的错误没有任何改变。我该如何解决问题
回答by Kiswanij
Most likely it is not something directly related to your client-side web-start. Try the following :
很可能它与您的客户端 web-start没有直接关系。尝试以下操作:
Try to access the jar file directly from browser http://192.168.1.16:8080/walleterp/lib/WalletERPLibs.jar
, and verify if the download is correct using your favorite compression tools (I am using winrar) and check the file.
尝试直接从浏览器访问 jar 文件http://192.168.1.16:8080/walleterp/lib/WalletERPLibs.jar
,并使用您喜欢的压缩工具(我使用的是 winrar)验证下载是否正确并检查文件。
If not accessible (and probably is) check the following :
如果无法访问(并且可能是),请检查以下内容:
project and file names capitalization, since java web/applications servers are case sensitive.
some application servers (wildfly) restricts jar files download
for security reasons, please provide your web-server, however this is not available in tomcat.Check your web.xmlfor any configured ServletFiltersthat may
interrupt your request.
项目和文件名大写,因为 java web/applications 服务器区分大小写。
一些应用服务器(wildfly)
出于安全原因限制了 jar 文件的下载,请提供您的网络服务器,但是这在 tomcat 中不可用。检查您的 web.xml是否有任何可能 中断您的请求的已配置Servlet过滤器
。