We are developing a prototype on an old TV box that runs Java applets (via PersonJava JRE 1.1.8). The box runs applets great, no problems.
However, we would like to use appletviewer (from Java 8) to develop locally. However, appletviewer is not able to load images from the documentBase. Images load fine in applet on the TV Box, the problem is in appletviewer.
We understand that applets are deprecated, but we would still like to have a nice development process for this project. Alternatively, are there any other easy ways to run applets in 2021?
In the appletviewer this code:
bgImage = getImage(getDocumentBase(), "myImage.gif");
leads to this error:
java.security.AccessControlException: access denied ("java.net.URLPermission" "http://localhost:8080/applets/hello/myImage.gif" "*:*")