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

2013/1/7

Sharing gives an error (Website/Jar)

1
2
Dytanoth Dytanoth

2013/1/7

#
Hey, When trying to export my game as a Jar file, or as a complete website it gives me an error. The game runs normally in greenfoot itself with no errors. But when I try to play the game in my webbrowser, it will say there is a nullpointen. Trying to execute the standalone jar file doesn't work either. It won't even start it. Why does my game not start on my website, and why does it work in greenfoot.. Suggestions are really welcome! Thanks
Dytanoth Dytanoth

2013/1/9

#
Bump
davmac davmac

2013/1/9

#
And the scenario is where?
Dytanoth Dytanoth

2013/1/9

#
Ok, my scenario is to big for the Greenfoot website, it is 370 mb. I've put it on a website www.mrbunni.nl There's a button named 'Download Greenfoot Scenario' . It will download a rar file. No virusses included ofcourse
davmac davmac

2013/1/9

#
I would like to be able to play it from the website, so I can see the problem; could you put it up somewhere, and maybe trim the size down (why is it so big??!!)
davmac davmac

2013/1/9

#
Or if you prefer, check the Java console yourself, which is what I was going to do anyway.
Dytanoth Dytanoth

2013/1/9

#
So when running it in a webbrowser gives me this error: When pressing details it'll give the following message: Java Plug-in 10.9.2.05 Using JRE version 1.7.0_09-b05 Java HotSpot(TM) Client VM User home directory = C:\Users\Peter ---------------------------------------------------- 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> ---------------------------------------------------- No error message, i've pressed all the keys that were listened above, but nothing usefull came out.
davmac davmac

2013/1/9

#
Hmm, there should have been a stack trace. While displaying the "details", try reloading the web page.
Dytanoth Dytanoth

2013/1/10

#
It stays the same, even after reloading... Nothing has changed :(
davmac davmac

2013/1/10

#
Well, if you make a smaller version and upload it here, I'll take a look.
Dytanoth Dytanoth

2013/1/11

#
Ok, i've made it alot smaller now. I've deleted some images and audio files: http://www.greenfoot.org/scenarios/7213
davmac davmac

2013/1/11

#
You have a 'bluej' folder in your scenario folder with copies of some of the BlueJ classes, which are conflicting with the real ones. Remove that folder. It should never have been there.
Dytanoth Dytanoth

2013/1/11

#
Thanks it fixed the error! Only problem now is, when running the game, it gives me an Javalang.out.of.memory.. I use alot of images, so it will probably be the reason why he runs out of memory so fast. Is there a way to delete the images from the memory? To create some extra space.. I change images by setImage, nothing is done with drawImage
davmac davmac

2013/1/12

#
I think you're hitting this bug. You may have to wait until the next Greenfoot release for a fix.
Dytanoth Dytanoth

2013/1/12

#
This will probably be it, yes. Is there in the meantime a good way to compress those images? Without losing quality?
There are more replies on the next page.
1
2