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

2011/11/10

Game works in editor but not jar

ImFerocious ImFerocious

2011/11/10

#
I've been working on a tower defense game for quite awhile now. It runs perfectly fine in the editor. Once i export it to a jar file it starts failing. I have a button you push and when you push it it adds a tower to the map which will follow the mouse until you click and "place" it. It works in the editor but when i click on the button after i export it to a jar file the game stops like it came across an error. Does anyone know why something like this would happen?
davmac davmac

2011/11/10

#
It could be that you are accessing a file by a name with the wrong case. For instance, using "ABC.PNG" to access a file called "abc.png" might work within the IDE, but it won't work once you export to a jar file. (If you upload the scenario, we can probably tell you exactly why it's not working).
You need to login to post a reply.