简体   繁体   English

Java 6上的签名Applet

[英]The Signed Applet on Java 6

My Java signed applet which is signed by Netbeans works well on Java's which is version 7. But on version 6 it does not work. 由Netbeans签名的Java签名小程序在Java的版本7上运行良好。但是在版本6上,它不起作用。 How can I solve this problem.Is Java version 6 does not allow this? 如何解决此问题。Java版本6不允许吗? This is HTML code: 这是HTML代码:

<html>
<head>

</head>
<body>
<applet archive="mi.jar" code="Mi.class" witdh="500" height="500">MY APLET</applet>
</body>
</html>

Java compiler javac has an option to compile the code to generate compatible bytecode for other platform versions by specifying -target option. Java编译器javac通过指定-target选项,可以编译代码以生成与其他平台版本兼容的字节码。 Consult the cross-platform option in Oracle docs for Cross-Compilation Options . 有关交叉编译选项,请参阅Oracle文档中的平台选项 If he code compiles with this option then you could run both platform if not then you have to rewrite the Java 7 code to be compilable for the Java 6 platform. 如果他的代码使用此选项进行编译,那么您可以同时运行两个平台,则必须重写Java 7代码才能针对Java 6平台进行编译。

In the Netbeans IDE there should be a project settings where you could change either JDK or language level. 在Netbeans IDE中,应该有一个项目设置,您可以在其中更改JDK或语言级别。

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

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