| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
In order to do development of NetLogo and NetLogo extensions on Windows 7/8/10, you'll need to have git, sbt and a Java 17 JDK installed. You'll also need some environment variables set correctly.
Steps for setting up Windows 7/8/10 for NetLogo and NetLogo extensions development:
The Scala Build Tool, abbreviated sbt, allows you to build NetLogo or NetLogo extensions. The Java JDK contains the Java compiler, javac.exe, which turns NetLogo source code into code that Java can execute. Git is a utility for managing source code in local and remote repositories; it enables tracking changes to a code repository and sharing changes between users (in our case, through Github).
Environment variables are just simple settings that are available in your console, and also to programs that you run (like sbt).
To set a user's environment variable in Windows 7, right click on My Computer -> Properties -> Advanced -> Environment Variables. There you can add a New... variable for JAVA_HOME, JAVA_OPTS and Edit... the PATH if you need to.
To set an environment variable in Windows 8 or 10 it should be the same steps. You can search for "Environment Variables" in the search bar to open the editor.
There are some extra settings that may be necessary in order for sbt and Java to compile NetLogo, increasing available memory and disabling some runtime features that slow compilation way down. The sbt.bat file that comes with sbt will look for settings in the JAVA_OPTS environment variable.
If you do not want to use these settings for all sbt projects, you can instead setup your own batch file or PowerShell script to set this variable before running sbt.bat for NetLogo development only.
You don't need to do the below if you are developing an extension, but it isn't a bad idea to have a local clone of NetLogo setup for easy extension testing. It will also confirm your development environment is ready to work.
| Back | FazBrowse Home | New Git URL |