While trying to self teach java I have stumbled upon a problem.
I have a simple GUI applet which I am trying to run.
I am using java 8 version 66. At runtime I get an 'application blocked by Java security' when I try to preview it in a browser using Dreamweaver.
The reason given is that my security settings have blocked a local application from running.
When clicking on the more information link I get info about the java control panel. They instructed to add a url in the exception site list.
When I want to add my dir in this case C:\dwtest\applet\www\html, it won't add to the exception site list.
I have read the documentation for controling an untrusted app running in my browser on https://www.java.com/en/download/help/jcp_security.xml and https://www.java.com/en/download/faq/exception_sitelist.xml.
Here they are only discussing about adding an URL and nothing about a directory for where the html and .class files are stored.
Is this really a security issue or am I overlooking something?
I know applets are not used much but I am trying to grasp the concept of it. I think it would increase my over-all knowledge of Java.
Any help would be grealty apreciated.
This is what I know/think I am getting correct:
*1- my html code
<title>HTML Test Page</title>
</head>
<body>
SimpleGui4b will appear in a java enabled browser. <br>
<applet aligned="middle" vspace="0" hspace="0" height="300" width="400"
name="SimpleGui4b" code="SimpleGui4b.class" codebase="."> wordt niet geladen
</applet>
</body>
</html>]
*2- I have the html file and two .class files in the same dir which is
C:\dwtest\applet\www\html
*3- my class files are working fine as an application in java but not when I made it in to an applet.
*4-dreamweaver has access to C:\dwtest\applet\www\html
Thanks,