Forum Stats

  • 3,783,390 Users
  • 2,254,767 Discussions
  • 7,880,376 Comments

Discussions

Cannot override Java security

3026433
3026433 Member Posts: 1

I am trying to run an application in Firefox, but even adding the address to the exception list doesn't do squat.  It just gives me

access denied ("java.io.FilePermission" "\E:\Programs\EngineSim\ex1.gif "read")

I tried to use the program found here https://www.grc.nasa.gov/www/K-12/Enginesim/index.htmand added an exception to the downloaded file location, and I also tried the online version here https://www.grc.nasa.gov/www/K-12/Enginesim/index.htm
This is really frustrating me.  I cannot believe that the developers of Java would make it so difficult for users to override something so simple.  It's like they think that Java somehow knows what's safe better than the user does.

Answers

  • handat
    handat Member Posts: 4,688 Gold Crown
    edited Oct 10, 2015 3:00AM

    This is not the fault of the people who wrote Java, this was done intentionally for security and is well documented. The person you need to blame is the person who wrote the java applet that you are trying to run. He or she did not write and package the applet correctly.

    A workaround for the lazyness of that developer is to find the java.policy file and add the following, but it should be properly fixed by the developer:

    grant {

    permission "java.io.FilePermission" "/E:/Programs/EngineSim/ex1.gif "read";

    };

This discussion has been closed.