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

2014/1/21

Retard java not working

UNDEAD_DC UNDEAD_DC

2014/1/21

#
Hi i shared my scenario to webpage option, then i get 3 files wich i put on my site i put old version on my side and that worked but now i updated it and i only get greenfoot.export.Greenfoot Scenario Viewer.class not found error same for ALL Scenarios, tried restart pc uninstall java restart reinstall reinstalled browser tried with firefox and chrome also on other peoples PC its not working please help how do i get rid of this stupid java error? Here is the game on my site
davmac davmac

2014/1/21

#
The archive attribute of the applet tag in the html looks like this: archive="final game.jar" Now, the problem is that this is supposed to be a URL, and a URL cannot contain a space. Replace the space with '%20' and it should work: archive="final%20game.jar"
davmac davmac

2014/1/21

#
(This is caused by a minor Greenfoot bug, which I've fixed for the next release. You can avoid it by not having spaces in your scenario name).
UNDEAD_DC UNDEAD_DC

2014/1/22

#
Ok thanks, when will it be released? Because we need to have the game finished and working next Friday. But I will try without space would be great if that works.
davmac davmac

2014/1/22

#
Ok thanks, when will it be released? Because we need to have the game finished and working next Friday.
You can just modify the HTML manually, or remove the space from your scenario's name.
UNDEAD_DC UNDEAD_DC

2014/1/22

#
davmac wrote...
Ok thanks, when will it be released? Because we need to have the game finished and working next Friday.
You can just modify the HTML manually, or remove the space from your scenario's name.
Yes thanks that worked i just saved it as finalGame without space and that worked fine Thank you very much
UNDEAD_DC UNDEAD_DC

2014/1/24

#
i get this error now, please help we need to have it working before 12:00 today (24-1-2014)
davmac davmac

2014/1/24

#
If it's the link you posted above, it works for me. Otherwise, it just sounds like the exact same problem as before.
deathburrito16 deathburrito16

2014/1/24

#
I'm having this problem too, and my scenario name doesn't have any spaces
davmac davmac

2014/1/24

#
I'm having this problem too, and my scenario name doesn't have any spaces
Without more specific information, I don't know what to suggest. The error means that Java couldn't find (or otherwise couldn't access) the class that it needs to run. This could be because the URL for the archive (.jar file) is wrong, or the archive is on a different host to the web page (and there is no codebase attribute specified), or the archive is not accessible (wrong permissions on the file, or in the web server), or the archive doesn't actually contain the class (maybe it's corrupt, or you modified it).
deathburrito16 deathburrito16

2014/1/24

#
what information would you need.
davmac davmac

2014/1/24

#
Anything that could be relevant, according to the advice I've given you:
The error means that Java couldn't find (or otherwise couldn't access) the class that it needs to run. This could be because the URL for the archive (.jar file) is wrong, or the archive is on a different host to the web page (and there is no codebase attribute specified), or the archive is not accessible (wrong permissions on the file, or in the web server), or the archive doesn't actually contain the class (maybe it's corrupt, or you modified it).
So clearly relevant items of information are:
  • the name of the jar file
  • the location (URL) of the jar file
  • the name of the jar file
  • the location (URL) of the web page
  • whether you added a codebase attribute
  • the permissions on the jar file
All that comes from what I wrote. Please read it and think about what might be useful.
UNDEAD_DC UNDEAD_DC

2014/1/25

#
Hi Sorry for the late reaction, but I think I have a solution. If you run it local, so double click on the html you get after export it doesn't work but when you put it on a website it works. You also need to set java security settings to medium> Search for java click java settings or Java control panel. Then to the security tab and set it on medium security. here more Hope this helps you and dont rename the file just save as it greenfoot and give it a space less name worked for me
deathburrito16 deathburrito16

2014/1/25

#
um.... I said I put it on my website, so that doesn't help. I didn't rename the file, and I set security to medium, and that didn't help. However, my java is out of date. (my auto updater isn't working for some reason. help on that would be appreciated.)
You need to login to post a reply.