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

2014/1/8

Exporting into HTML

LightOfDivine LightOfDivine

2014/1/8

#
I've been trying to get my game into my webpage which is due to a project for school, I managed to get it in but now when it needs to run it gives me an 'Applicaton Error' which says 'NullPointerException'. When I open the details all I get is the following:
Java Plug-in 10.45.2.18 Using JRE version 1.7.0_45-b18 Java HotSpot(TM) Client VM User home directory = C:\Users\Steven ---------------------------------------------------- c: clear console window f: finalize objects on finalization queue g: garbage collect h: display this help message l: dump classloader list m: print memory usage o: trigger logging q: hide console r: reload policy configuration s: dump system and deployment properties t: dump thread list v: dump thread stack x: clear classloader cache 0-5: set trace level to <n> ----------------------------------------------------
Does anyone know why it does this and how it's fixable? If you do I'd really appreciate your help.
chrl98 chrl98

2014/1/8

#
try removing the scenario and reuploading it again to your website. If it does not work, then I think it is another technical issue. Or it could be the scenario running out of memory.
LightOfDivine LightOfDivine

2014/1/8

#
Tried that several times, unfortunately it doesn't seem to work, any more options?
danpost danpost

2014/1/8

#
You should probably try one of the dump commands ('t' or 'v' from your details listing) and get a more detailed look at the problem.
davmac davmac

2014/1/8

#
The current Java update release notes state that you can't run unsigned applets locally. In other words, it's a known issue with Java. You'd need to copy your HTML page to a web server and access it via http.
lordhershey lordhershey

2014/1/8

#
Could you not just sign the applet using a utility like jarsigner?
davmac davmac

2014/1/8

#
Could you not just sign the applet using a utility like jarsigner?
Sure, if you have a suitable certificate with which to sign it.
alkis alkis

2014/1/23

#
davmac wrote...
The current Java update release notes state that you can't run unsigned applets locally. In other words, it's a known issue with Java. You'd need to copy your HTML page to a web server and access it via http.
Hi davmac, I have figured this out, i.e. new Java versions do not allow to run unsigned applets locally, applets that were running OK a few versions ago! (That's why I hate revisions! :)) Well, how then can 'appletviewer' run them locally w/o problem??? It sounds as if it's a restriction for browsers only (I'm using IE8 and Firefox 26.0) ... Alkis
lordhershey lordhershey

2014/1/23

#
appletviewer is not integrated into a web browser; It is browser only restriction.
danpost danpost

2014/1/23

#
Go to your Control Panel and select Java. Then go to the security tab and reduce the security to medium.
alkis alkis

2014/1/25

#
lordhershey wrote...
appletviewer is not integrated into a web browser; It is browser only restriction.
Of course, 'appletviewer' is a JRE/JDK utility. Yet, it can execute unsigned applets locally. Which means that Java Control Panel settings do not affect it. Therefore, what's the actual meaning of not allowing "unsigned" applets to be run via browsers? There must be some other reason than security, since you can set your security options as you like.
alkis alkis

2014/1/25

#
danpost wrote...
Go to your Control Panel and select Java. Then go to the security tab and reduce the security to medium.
I have already done that. Actually, it's the first thing I did, although it was not needed in the past, with older versions of Java ... And it doen't change anything. Which means, there's some reason Oracle has -- apart from security -- for not allowing these applets to run locally via browsers ...
You need to login to post a reply.