无法加载资源Jar文件 [英] Unable to load resource Jar file
问题描述
我正在研究JavaFx项目,我们需要在java jnlp上运行应用程序。
我们烧掉了所有jar文件,我将IP地址添加到Java配置中,但我遇到了这个问题
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
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)
我试过:
-
更改Java Config上的网络设置,我将其更改为直接连接。
Change the network setting on Java Config, and i changed it to 'Direct Connection'.
Cl收听临时文件夹。
Clear the temporary folder.
更改了浏览器代理
但我的错误没有改变。
我如何解决问题
but nothing changed for my error. How can i solve the problem
推荐答案
很可能它不是与您的客户端直接相关的东西 - 侧面网络启动。
请尝试以下操作:
Most likely it is not something directly related to your client-side web-start. Try the following :
尝试直接从浏览器访问jar文件 http://192.168.1.16:8080/walleterp/ lib / WalletERPLibs.jar
,并使用您喜欢的压缩工具验证下载是否正确(我使用的是winrar)并检查文件。
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.
如果无法访问(可能是),请检查以下内容:
If not accessible (and probably is) check the following :
-
项目和文件名大小写 ,因为java web / applications
服务器区分大小写。
project and file names capitalization, since java web/applications servers are case sensitive.
某些应用程序服务器(wildfly)限制jar文件下载
出于安全原因,请提供您的网络服务器,但这是tomcat 中没有的
。
some application servers (wildfly) restricts jar files download
for security reasons, please provide your web-server, however this is
not available in tomcat.
检查您的web.xml ,查看可能用
中断您的请求的任何已配置 Servlet 过滤器。
这篇关于无法加载资源Jar文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!