简体   繁体   English

将Java Web Start应用程序(jnlp)转换为applet

[英]Converting a java web start application (jnlp) to an applet

I have a java application which is a java web start application. 我有一个Java应用程序,它是一个Java Web Start应用程序。 It is used to administer a remote server. 它用于管理远程服务器。 Now I want to convert it to an applet to run in the browser. 现在,我想将其转换为可在浏览器中运行的小程序。 Is there an easy way to achieve this. 有没有简单的方法来实现这一目标。 What are my options to achieve this? 我有什么选择来实现这一目标? By the way my java application stores and reads some conf files on the client file system. 顺便说一下,我的Java应用程序在客户端文件系统上存储和读取一些conf文件。 Would this be a problem if I run my application as an applet? 如果我将应用程序作为applet运行,这会成为问题吗?

That shouldn't be too hard since Sun/Oracle introduced JNLP support for applets in version 6u10 (1.6.0_10). 自从Sun / Oracle在6u10版本(1.6.0_10)中引入了对applet的JNLP支持以来,这应该不太困难。 In short: 简而言之:

  1. Adapt your app to the applet lifecycle , 使您的应用适应applet的生命周期
  2. set the permissions correctly and 正确设置权限
  3. sign it with an official certificate . 官方证书 签名
  4. (and of course embedd your applet in a web page) (并且当然将您的小程序嵌入到网页中)

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

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