如何上传Java JNLP文件到服务器?
我正在学习使用 http://netbeans.org/kb/ 的 Netbeans 构建 JNLP 文件docs/java/javase-jws.html 并且我想将 JNLP 文件上传到服务器,但我不确定 JNLP 文件只能与 tomcat 或 glassfish 一起使用,或者可以与其他服务器一起使用。因此,我将项目中 dis 文件夹中的所有文件粘贴到 apache appserv 中的 www 文件夹中。但是当我单击“午餐”按钮时,它会显示此代码。
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<jnlp href="launch.jnlp" spec="1.0+">
<information>
<title>Basic Application Example</title>
<vendor>Sun Microsystems Inc.</vendor>
<homepage href="http://appframework.dev.java.net"/>
<description>A simple java desktop application based on Swing Application Framework</description>
<description kind="short">Basic Application Example</description>
</information>
<update check="always"/>
<security>
<all-permissions/>
</security>
<resources>
<j2se version="1.5+"/>
<jar href="test_app.jar" main="true"/>
<jar href="lib/appframework-1.0.3.jar"/>
<jar href="lib/swing-worker-1.1.jar"/>
<jar href="lib/gdata-calendar-2.0.jar"/>
<jar href="lib/gdata-client-1.0.jar"/>
</resources>
<application-desc main-class="test_app.Test_appApp">
</application-desc>
</jnlp>
I studing to build JNLP file with Netbeans from http://netbeans.org/kb/docs/java/javase-jws.html and I want to upload JNLP file to server , but I'm not sure JNLP file can use with tomcat or glassfish only, or can use with another server. So I paste all file form dis folder in my project to www folder in apache appserv. but when I click Lunch button it show this code.
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<jnlp href="launch.jnlp" spec="1.0+">
<information>
<title>Basic Application Example</title>
<vendor>Sun Microsystems Inc.</vendor>
<homepage href="http://appframework.dev.java.net"/>
<description>A simple java desktop application based on Swing Application Framework</description>
<description kind="short">Basic Application Example</description>
</information>
<update check="always"/>
<security>
<all-permissions/>
</security>
<resources>
<j2se version="1.5+"/>
<jar href="test_app.jar" main="true"/>
<jar href="lib/appframework-1.0.3.jar"/>
<jar href="lib/swing-worker-1.1.jar"/>
<jar href="lib/gdata-calendar-2.0.jar"/>
<jar href="lib/gdata-client-1.0.jar"/>
</resources>
<application-desc main-class="test_app.Test_appApp">
</application-desc>
</jnlp>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为您需要将以下条目添加到配置文件中:
在 Debian 版本中,此文件位于
/etc/apache2/apache2.conf
,但您的发行版可能有所不同。如需了解更多信息,请访问 https://wiki.apache.org/httpd/DistrosDefaultLayout。I think you need to Add the following entries to the configuration file:
On Debian flavors, this file is at
/etc/apache2/apache2.conf
, but your distribution may be different. See more at https://wiki.apache.org/httpd/DistrosDefaultLayout.