Question

Good Morning

I created i JApplet Java gamemenu, with eclipse everything works just fine in with the debugger. But now i want to release it and i got some Problems.

I found many different ways to integrate a Applet in a website.

<applet archive="rest.jar" code="Startseite.class" width="1200" height="600">
</applet>

or

<applet code="MenuTest.src.klassen" archive="rest.jar"></applet> 

or

<object codetype="application/java-archive"classid="java:Startseite.class"
   width="400" height="300">
</object>
  1. First of all, which of these posibilities is the best way to include an Applet in a Website.

  2. Wenn i try to open the html file with any of these codes, there is an Java Error about an "Security settings who blocked this Runnable code". Is this a Problem with the Firewall, or with Java itself?

thanks very much

BBallBoy

Was it helpful?

Solution

https://www.java.com/en/download/help/java_blocked.xml

Hello Good question I recently ran in to this myself. You need to add an exception for your app in the java control panel security settings.

Steps to Add URLs to the Exception Site list Go to the Java Control Panel (On Windows Click Start and then Configure Java) Click on the Security tab Click on the Edit Site List button Click Add in the Exception Site List window

Add url to Exception Site list Click in the empty field under the Location field to enter the URL

Example: http://www.example.com (URL should begin with http:// or https://)

If the URL where the applet is hosted is different from the URL of the web page from which the applet is launched, then you will need to add both the URL for the applet as well as the URL for the web page.

Example with different URLs for the applet and the web page For Yahoo games Checkers, you would enter both URLs (The urls listed can be different depending on which host is serving the game) http://www.games.yahoo.com This is the url for the Yahoo games domain http://yog36.games.sp2.yahoo.com This is the url where the game is hosted and shown in the dialog box for the blocked application

Click OK to save the URL that you entered Click Continue on the Security Warning dialog Applications where this issue has been reported

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top