![]() > Global Libraries and right-click onto the library you created. Step 3 - Add the Greenfoot library to your project ![]() Give the library a better name like Greenfoot and press OK. The right side of the window should now look something like this: Use the right button to also add these directories / files: Select OK and if you are being asked to add the stuff to modules, also press OK. Select the lib folder and choose the following options: > Global Libraries > > Java and navigate to your Greenfoot installation. Step 2 - Setup Greenfoot dependencies (only once) You should now see a window similar to this: Now give your project a name and specify its location. Otherwise, select Add JDK., browse to your Greenfoot installation and select the jdk directory. If you see an option ~\Greenfoot\jdk listed under defected SKDs, select it. If you already had a project open before, you may go to File > Close Project (not Exit!) or create a new project directly via File > New > Project. Step 1 - Create a new project in IntelliJĪfter installing, launch IntelliJ and select New Project. Greenfoot source code (only non 3.6.X and 3.7.X versions)Įxtract the combined sources into some folder you can remember.The sources in that are for Greenfoot versions 3.6.X and 3.7.X, if you use a different version you will also have to get the corresponding sources from the Greenfoot website (you still also need my files). I've created a sorted collection of all the files you need. The Greenfoot sources are available on the Greenfoot website, but it's quite complicated to order the files in the folder you get, and also some files are missing. For Greenfoot, you also need to download the source code. Note though that as a student you can also get access to the Ultimate version for free. For IntelliJ, both the Community and the Ultimate version will work, but Community is free. You will need to install both Greenfoot and IntelliJ IDEA. Step 0 - Installing the neccecary programs Also things may work differently on MacOS or Linux. For older versions some steps regarding JavaFX can be skipped, but I have not ever tested this myself. Side note: the instructions are intended for Greenfoot 3.6.0 and later, ever since Greenfoot switched from Java 8 to Java 11. If you are experiencing any issues, feel free to contact me on our Greenfoot-Discord-Server. ![]() Not all of the following steps have to be performed every time some only have do be done once and can be reused in following projects.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |