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

2015/7/23

Publishing Game Online

gulzaibthegreat1 gulzaibthegreat1

2015/7/23

#
I have created a game in greenfoot and want to post it on other websites, however the websites do not support .jar files. I try to create a web export from inside Greenfoot and when i try to run the .html it gives me the following error: nullpointerexception; GreenfootScenarioViewer.class not found When I publish the game onto Greenfoot it works fine. I am wondering what the problem is with my .html file, and if it is possible to use something like JavaWebStart to run the .jar file; and if JavaWebStart is a possibility how would i go about using it?
davmac davmac

2015/7/23

#
I try to create a web export from inside Greenfoot and when i try to run the .html it gives me the following error
How are you trying to "run" the .html file, exactly? If you are opening it as a local file, be aware that Java in general does not allow applets to run locally. You might in this case have better luck if you actually upload the files to a web server and access them via a http: URL.
if it is possible to use something like JavaWebStart to run the .jar file; and if JavaWebStart is a possibility how would i go about using it?
Maybe. I guess reading the JavaWebStart documentation online would be a good start.
gulzaibthegreat1 gulzaibthegreat1

2015/7/23

#
I published the game on the following website: http://worthwhiletest.freetzi.com/Worth%20While%20Test.html There is an error with the java version and so i cannot run the game except it runs fine when i publish it on greenfoot, i have added the required url's in my java exception list just like i did for greenfoot; is there anyway I can resolve this error or upate the java version the app runs?
davmac davmac

2015/7/24

#
When I try to visit the page you linked to, it says Page Not Found. Without being able to see the page, I'm afraid I don't know what's wrong.
gulzaibthegreat1 gulzaibthegreat1

2015/7/24

#
i fixed it, here is an updated link, however now there is a different issue; the game is playable except you have to block unsafe components from greenfootscenarioviewer; if you unblock it the game doesn't work. This doesn't occur when it is published on greenfoot.
gulzaibthegreat1 gulzaibthegreat1

2015/7/24

#
worthwhiletest.freetzi.com
davmac davmac

2015/7/24

#
I get lots of warnings about the jar file containing a mix of signed and unsigned content, and missing attributes in the manifest: Missing Application-Name manifest attribute for: http://worthwhiletest.freetzi.com/WorthWhileTest.jar Missing Permissions manifest attribute in main jar: http://worthwhiletest.freetzi.com/WorthWhileTest.jar It also looks as if the JLayer library has been incorporated into the main jar file. So, I don't know how you produced this jar file, but it wasn't just by a "web export from inside Greenfoot" - you've done other things to it, and I'm fairly sure that's why it's not working.
davmac davmac

2015/7/24

#
(It doesn't run for me at all, by the way).
gulzaibthegreat1 gulzaibthegreat1

2015/7/24

#
Interesting; the game runs fine for me on my browser right now, at worthwhiletest.freetzi.com; i fixed the earlier issue but apparently the game isn't running for anyone else. Any ideas what is wrong? I believe I have fixed the issue, it should run for you. Please let me know whether or not it runs.
You need to login to post a reply.