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

2018/8/28

problems exporting to a stand alone jar file

vbh vbh

2018/8/28

#
Hi i want to export my game so it opens as an application and not in greenfootproject, but when i export it stil opens as a greenfoot project within greenfoot. when i open the jar file i get an axception that says: the output directory for the archive being extracted already exist. you must remove the excisting directory before you can extract the archive, what does that menan and which file am i suposed to remove hope someone can help. im a teacher and need the file :-0 ty
davmac davmac

2018/8/28

#
I think you are misunderstanding some things: First, exporting an application jar file from Greenfoot gives you an executable jar file which contains your compiled classes, but not their source code. You might be able to convince Greenfoot to open the jar file, but if you do it will not contain the source files so at best you will see the classes but not be able to open the code editor. Second, opening a jar file first extracts the jar file to a similarly named directory (for example if you open "frogger.jar" it will extract to a directory called "frogger"). If you then try to open it again - or if a folder of that name already exists - Greenfoot will give you an error saying that the folder already exists. You can remove the folder (as the message suggests) or rename it, but you can also just open the folder directly, if it really is a Greenfoot scenario.
vbh vbh

2018/8/31

#
thank you :-)
You need to login to post a reply.