Ok, I think I may messed up with my other post about exporting greenfoot projects. What I need is to get the directory where the Main class is saved. Ok, I know I have like 10 classes in my project's folder. But none of these is my the class greenfoot uses as the main one.
Please, any help or comment will help.

