The Kojo Learning Environment -
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
installer.i4j
installer
l10n-level2
lib
project
src
.gitignore
.hgignore
LICENSE
README.md
build.sbt
make-windows-zip.sh
makeinstaller.sh
makezip.sh
migration_2_12.txt
process-geo-jars.sh
rem-geo-jfugue.sh
sbt-launch.0.13.16.jar
sbt.sh
shrink-geo-algos.sh
shrink-geo-props.sh
stage-i4j-installer
syncwebs

README.md

Kojo Links

To start hacking:

  • Make sure you have Java 8 on your path.
  • Run ./sbt.sh clean package to build Kojo.
  • Run ./sbt.sh test to run the Kojo unit tests.
  • Run ./sbt.sh run to run Kojo (use net.kogics.kojo.lite.DesktopMain as the main class)

IDE setup

  • Intellij IDEA
    Import a new project via the Kojo SBT settings.

  • Eclipse
    Run ./sbt.sh eclipse to generate project files for Eclipse. Then import the newly generated project into Eclipse.

For running Kojo from within an IDE, the main class is net.kogics.kojo.lite.DesktopMain. For debugging, the main class is net.kogics.kojo.lite.Main.

Eclipse Notes: You need to tweak the Eclipse project generated by sbt. Right-click on the project in Eclipse, bring up Properties, go to Java Build Path, and then go to Libraries. Remove the Scala Library and Scala Compiler containers, and add the Scala library and compiler jars (from your local Scala install, or cached sbt jars). Your project Libraries should now contain the following Scala jars:

  • scala-library.jar
  • scala-compiler.jar
  • scala-reflect.jar
  • scala-actors-xx.jar
  • scala-parser-combinators-xx.jar
  • scala-xml-xx.jar
  • scala-swing-xx.jar