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

2011/5/6

Greenfoot not compiling

Pink_Piranha Pink_Piranha

2011/5/6

#
Hey, I have just opened up a program that I made a few weeks ago. Changed a few things and when I hit compile it just dies on me, does not show any problems does not tell me anything. Just freezes. I have re-installed Java SDK and Greenfoot but it still does not work...Any ideas?
PiRocks PiRocks

2011/5/8

#
I'm not sure if you just typed the wrong thing, but you can't use the Java SDK for Greenfoot (the SDK is for client use, i.e. playing a java-based game). You need to install the JDK to use Greenfoot (the JDK includes the stuff needed to turn your code into something the computer can run). Hope this helps.
Pink_Piranha Pink_Piranha

2011/5/8

#
Yeah, Sorry I do/did mean JDK and that is what I had installed. Not sure what the problem was, but I just copied and pasted the code in a new instance (after re-making the classes as were) and it is working now...:S
davmac davmac

2011/5/9

#
PiRocks, not quite correct: the SDK is the old name for the JDK. The JRE is what you were thinking of. As it happens you can't run Greenfoot with the SDK (because it is too old) or the JRE (because it doesn't have the development tools that Greenfoot needs). Pink_Piranha: if you get a problem like that again, please zip up the project and send it to us (support@greenfoot.org) along with a message describing the problem. There may be a Greenfoot bug and if you send us the problem project we may be able to fix it!
Pink_Piranha Pink_Piranha

2011/5/9

#
I followed all the links on the download page, so unless they are wrong I had the right stuff installed. :P
Builderboy2005 Builderboy2005

2011/5/9

#
Check your world construction method and make sure there isn't an infinite loop in there somewhere, or any other code that might prevent the method from ending properly. On a related note, in the event of infinite loops in world constructor code, it would be nice to have a way to get past this, since Greenfoot Auto builds the world whenever its loaded, which could prevent people from ever managing to compile or modify their code. Maybe some sort of option to open without generating the world?
davmac davmac

2011/5/10

#
@BuilderBoy2005: an infinite loop won't stop you editing or compiling code - it just stops you creating a new world. You can use: "Controls", "Show Debugger", "Terminate" - to get out of the infinite loop without having to explicitly quit and restart Greenfoot.
kiarocks kiarocks

2011/7/22

#
hey i have the same problem here so i put it in a .zip file and sent it
Camyh15 Camyh15

2016/5/4

#
I have found that if you manually save it, then close it and go into the folder where you saved it to, open the folder and click on the greenfoot icon, it will work again. I think it's just the RAM having problems.
davmac davmac

2016/5/4

#
Camyh15, this discussion is literally 5 years old. Please don't re-open ancient discussions; start a new one if necessary.
You need to login to post a reply.