This site requires JavaScript, please enable it in your browser!
Greenfoot back

Report as inappropriate.

SharkMonkey
SharkMonkey presents ...

2014/5/15

foos

No description.

1036 views / 245 in the last 7 days

Tags: cabrillo

There is no HTML 5 translation of this scenario available.
View legacy version (requires Java plugin)

This scenarios uses Java features that are not available for use after conversion to HTML 5. Please try the legacy version, which requires the Java plugin to be installed.

lordhersheylordhershey

2014/5/15

An Exception is thrown in the applet: CacheEntry[http://www.greenfoot.org/sharedjars/jl1.0.1.jar]: updateAvailable=false,lastModified=Fri Aug 17 07:49:55 EDT 2012,length=143160 java.security.AccessControlException: access denied ("java.io.FilePermission" "instructions.txt" "read") at java.security.AccessControlContext.checkPermission(Unknown Source) at java.security.AccessController.checkPermission(Unknown Source) at java.lang.SecurityManager.checkPermission(Unknown Source) at sun.plugin2.applet.AWTAppletSecurityManager.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 Instructions.readInstructions(Instructions.java:21) at Instructions.<init>(Instructions.java:15) at Table.<init>(Table.java:37) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at greenfoot.export.GreenfootScenarioViewer.instantiateNewWorld(GreenfootScenarioViewer.java:323) at greenfoot.export.GreenfootScenarioViewer.init(GreenfootScenarioViewer.java:226) at com.sun.deploy.uitoolkit.impl.awt.AWTAppletAdapter.init(Unknown Source) at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source) at java.lang.Thread.run(Unknown Source) looks like you are trying to read instructions.txt from a local file, I think you will have to change that to something like this http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html#getResourceAsStream(java.lang.String) not sure since the source is not here.

Want to leave a comment? You must first log in.

Who likes this?

No votes yet.