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

2014/12/3

.jar Export Not Working

1
2
MarsMax MarsMax

2014/12/3

#
Hi, I'm a beginner in greenfoot, and when I export my program, I go to the directory I exported it to, open it and... All I see is the background (subclass of world). Any help would be appreciated. P.s. I'm using a MacBook Pro, 13".
danpost danpost

2014/12/3

#
I believe its suffix must be '.gfar' (which has the same format as a '.jar' file) for greenfoot to open it. Rename the file to adjust the suffix and try opening it then.
MarsMax MarsMax

2014/12/3

#
Ok, I'll try Bit note I'm trying to make an independent file
MarsMax MarsMax

2014/12/3

#
I've tried, and it first came up with a sign saying no directory found or something... I tried reopening it and got this: The output directory for the archive being extracted already exists. You must remove the existing directory before you can extract the archive. Users/max/lvl
MarsMax MarsMax

2014/12/3

#
also note that I tried again to export as a .jar file and I got a green foot terminal window, but kept on getting error messages in this window saying 'Directory does not exist'
MarsMax MarsMax

2014/12/3

#
the exact error message: java.io.IOException: Not a directory
MarsMax MarsMax

2014/12/3

#
and now when i try to open my jar files, all that comes up is that it could not open the .jar file, check the console for possible errors.
MarsMax MarsMax

2014/12/3

#
Wow. I can't believe what I did. I deleted the actual folder which held the scenario.
MarsMax MarsMax

2014/12/3

#
lucky I've got a copy
MarsMax MarsMax

2014/12/3

#
Ok Nothing has changed Help would still be appreciated.
danpost danpost

2014/12/3

#
MarsMax wrote...
I've tried, and it first came up with a sign saying no directory found or something... I tried reopening it and got this: The output directory for the archive being extracted already exists. You must remove the existing directory before you can extract the archive. Users/max/lvl
With this message, all you had to do was move it into a separate folder or into another directory.
davmac davmac

2014/12/4

#
Hi, I'm a beginner in greenfoot, and when I export my program, I go to the directory I exported it to, open it and... All I see is the background (subclass of world). Any help would be appreciated.
When you say "export my program", what exactly do you mean - what are you trying to do, and how do you go about it? If you are just trying to create a standalone jar file that lets you play the game, perhaps the problem is that you are not creating any actors (and adding them to the world) in your World subclass' constructor. If you are trying to do something else, please be more specific.
MarsMax MarsMax

2014/12/4

#
ok that might have been the problem, but please tell me how to make my actors subclasses of world without deleting them and re-writing them. At the moment they're just subclasses of 'actor'.
MarsMax MarsMax

2014/12/4

#
And, yes, I am trying to make a standalone .jar file.
danpost danpost

2014/12/4

#
Please, do not do what I believe you think might have to be done. Are you manually adding actors into the world using your mouse?
There are more replies on the next page.
1
2