2016-05-09 16 views
0

私はJavaアプレットの実行に関するチュートリアルに従っています。このドキュメントhttps://www.java.com/en/download/help/java_blocked.xmlに従って、単純なアプレットが以下の側面に従わないと、Javaアプレットを実行できませんJRE上で。はアプレットを実行できません

 
* Unsigned application 

An application without a certificate (i.e. unsigned apps), or missing 
application Name and Publisher information are blocked by default. 
Running this kind of application is potentially unsafe and present 
higher level of risk. 

* Self-signed application (Certificate not from trusted authority) 

An application with self-signed certificate is blocked by default. 
Applications of this type present the highest level of risk because 
publisher is not identified and the application may be granted access 
to personal data on your computer. 

* Jar file missing Permission Attribute 

Permissions Attribute verifies that the application requests the permission 
level that developer specified. If this attribute is not present, it might be 
possible for an attacker to exploit a user by re-deploying an application that is 
signed with original certificate and running the application at a different 
privilege level. 



質問:Javaアプレットを簡単に実行するための回避策はありますか?ここで



が私のコードです:

HelloWorldApplet.java

import java.awt.Graphics; 

class HelloWorldApplet { 

    public void paint(Graphics g) { 

     g.drawString("Hello World!", 5, 25); 

    } 

} 

HelloWorldApplet.html

<html> 
    <head> 
     <title> Hello! </title> 
    </head> 
    <body> 
     <P> My Java applet says: 
     <APPLET CODE="HelloWorldApplet.class" WIDTH=150 HEIGHT=25> 
    </body> 
</html> 



Obs:私はUbuntuで 'appletviewer'バイナリを使用しようとしましたが、うまくいきません。

ありがとうございます!

+2

アプレットは死んでいる/ほとんど死んでいる技術なので、コードで遊んでいるだけでなく、それらを使って足で自分を撃っています。また、Chromeを使用している場合、アプレットは42より上のバージョンでは実行されません。 – TheEllis

+0

ええ、私は、セキュリティ上の懸念を考慮すると、Oracle自体からでも同意します。私は、 Javaアプレットを含むJava。私はちょうどテスト目的、学習、そのもののために、任意の回避策があるかどうか疑問に思っていた。 – ivanleoncz

答えて

1

アプレットを気にしないでください。なぜ何かが非難されたことを学ぶ?まだサポートされているJava Web Startをチェックしてください。あるいは、コマンドラインで通常のメインアプリケーションを使ってJavaの仕事を学ぼうとしているのであれば、

+0

アドバイスありがとう:)! – ivanleoncz

関連する問題