jn025
jn025

Reputation: 2895

Java applet security error

Hi I'm wanting to test some applets and I'm just running it in my local browser from the file on my computer. But I am getting a security error

Your security settings have blocked an untrusted application from running

I am new to applets so maybe I am missing something out? I am just using basic paint method and drawing.

how can I test this file on my own computer?

Upvotes: 0

Views: 97

Answers (2)

Lonzak
Lonzak

Reputation: 9816

You could do one of the following four things:

  1. Sign your applet with an official certificate
  2. Lower your security bar in the java system settings to medium
  3. Sign your applet with an self-signed applet and put your certificate in the java trust store
  4. Put your URL to the exception site list of java

And please note that in some browsers you also have to enable the java plugin...

Upvotes: 1

Tom Hawtin - tackline
Tom Hawtin - tackline

Reputation: 147164

Sine April 2013, even untrusted applets need to be signed with a valid certificate for "best user experience". See Java Applet & Web Start - Code Signing on Oracle's site. At the time of writing the current release notes for 7u51 describe recent changes. The Java Platform Group blog is worth reading.

If you're following an applet tutorial, updated online material is probably better than a book.

Upvotes: 2

Related Questions