Java 小程序是 Java SE 在网站上工作的唯一方式吗?
Java SE(标准版)是否提供了一种使其程序能够在 Applet 旁边在线运行的方法? 或者小程序是做到这一点的唯一方法吗?
Does Java SE (Standard Edition) offer a way to make its programs work online beside the Applets? Or is the applet the only way to do that?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我只知道 Java Applet 和 JavaFX
The only I know of are Java Applet and JavaFX
您可以使用 Webstart 来允许用户从以下位置启动您的 Java 应用程序网站并使应用程序与服务器进行通信。 与小程序一样,Webstart 应用程序默认在沙箱中运行,因此您应该考虑对应用程序 jar 进行签名,以允许其通过网络进行通信。
如果您的目标是编写 Web 应用程序而不是部署独立应用程序,您还可以考虑 GWT 或 Servlet/JSP。 这完全取决于您想要实现的目标。
You could use Webstart to allow users to launch your Java application from a website and have the application communicate back with a server. As with applets, Webstart applications run in a sandbox by default and hence you should look into signing your application jar to allow it to communicate over the network.
You could also consider GWT or Servlets / JSP if your aim is to write a web application rather than deploy a standalone app. It all depends on what you're trying to achieve.
Java 正试图通过一种名为 JavaFX 的新技术在客户端卷土重来。
不过,不确定这是否不仅仅是一个小程序。
然后是 WebStart,它从网站(尽管它们随后在浏览器之外运行)。
Java is trying to make a comeback on the client-side with a new technology called JavaFX.
Not sure if that is not just an applet under the hood, though.
And then there is WebStart, which launches Java applications from a website (although they then run outside of the browser).