java.security.AccessControlException

Preventing unknown thread sample.SittingDuck (1) from access: (java.io.FilePermission C:\robocode\robots\sample\SittingDuck.data\count.dat read)

Solutions on the web4772

  • Preventing unknown thread sample.SittingDuck (1) from access: (java.io.FilePermission C:\robocode\robots\sample\SittingDuck.data\count.dat read)
  • via robocode by mykael22000
    , 1 year ago
    Preventing unknown thread AWT-EventQueue-0 from access: (java.io.FilePermission C:\robocode\robots\mpc.Myk003_1.0.jar read)
  • Preventing sample.SittingDuck from access: (java.io.FilePermission C:\Program Files\robocode\robots\sample read): You may only read files in your own root package directory.
  • Stack trace

    • java.security.AccessControlException: Preventing unknown thread sample.SittingDuck (1) from access: (java.io.FilePermission C:\robocode\robots\sample\SittingDuck.data\count.dat read) at robocode.security.RobocodeSecurityManager.checkPermission(Unknown Source) at java.lang.SecurityManager.checkRead(Unknown Source) at java.io.FileInputStream.<init>(Unknown Source) at java.io.FileReader.<init>(Unknown Source) at sample.SittingDuck.run(Unknown Source) at robocode.peer.RobotPeer.run(Unknown Source) at java.lang.Thread.run(Unknown Source)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You are the first who have seen this exception. Write a tip to help other users and build your expert profile.