运行老的Java小程序的最直接的方法
问题描述:
在互联网上的许多物理动画/模拟applets是几十年的历史Java小程序,它是极难得到他们的工作。什么是运行Java小程序(该浏览器不允许)的最好方法?
Many physical animation / simulation applets on the internet are decades old Java applets and it is extremely difficult to get them to work. What would be the best way to run a Java applet (which browsers do not allow)?
例如,我有一个中使用的.class
A 的.htm
For example, I have a .class
used in a .htm
<applet code="taylor.class" name="taylor" width="900" height="800">
<param name="label" value="This string was passed from the HTML host.">
<param name="background" value="008080">
<param name="foreground" value="FFFFFF">
</applet>
我如何不被拦截的安全运行的东西呢?
How do I run this without being blocked by security things?
答
您可以使用的appletviewer 的JDK。在appletviewer中可以让你无需使用浏览器打开小程序(通过其URL)。
You can use the appletviewer of the JDK. The appletviewer allows you to open the applet (via its URL) without the need to use a browser.