DrJava with Mint Released

The latest releases of DrJava contains a compiler adapter for Mint. That means it is possible to conveniently compile Mint programs in the DrJava IDE.

To experiment with Mint and DrJava, please do the following:

  1. Download DrJava with Mint the JavaMint implementation page. The file will be named drjava-rxxxx-mint-ryyyyy.jar, where xxxx indicates the version of DrJava and yyyyy the version of Java Mint.
  2. MacOS only: Java Mint requires Java 6. If you have a 32-bit Mac for which Apple does not offer Java 6, you can use Soylatte, but that means DrJava needs to be run under Soylatte as well. Soylatte requires X11 to display graphical user interfaces (GUIs).
  1. Change your PATH environment variable so that Soylatte’s java and javac commands are found first. Edit your .bash_profile or .bashrc file and add the following line at the end of the file:
    export PATH=/usr/local/soylatte/bin:$PATH
  2. Install Apple’s X11. You can find it on your MacOS X installation DVD (preferred!). Here are also some links where you may download X11 (not checked by us — if you try any of these, please let us know!):
  1. Start the X11 application. A terminal window should open. Put the cursor in that terminal window — you will start DrJava from there.
  1. Start DrJava using
    java -jar drjava-rxxxx-mint-ryyyyy.jar

    (in the terminal window on MacOS and Linux; on Windows, you can double-click on the drjava-rxxxx-mint-ryyyyy.jar file)

  2. Look at the right side of the in the “Compiler Output” pane. There is a drop-down box labeled “Compiler”: Select “Mint 6.0_16-Mint” (or something similar). If you don’t see it in the list, DrJava could not find Mint. Check that you installed Mint correctly.
  3. Open a Mint program (“File/Open” menu or “Open” button)
  4. Compile it (“Tools/Compile All” menu or “Compile” button)
  5. Run it (“Tools/Run Document’s Main Method” menu or “Run” button). The output will be displayed in the “Interactions” pane.

Note that the interpreter in the Interactions pane does not understand Mint. It is just a Java interpreter. Brackets and escapes are only recognized in programs in the Definitions pane (source editor).

(Re-posted from The Java Mint Blog)


About Mathias

Software development engineer. Principal developer of DrJava. Recent Ph.D. graduate from the Department of Computer Science at Rice University.
This entry was posted in DrJava, Mint. Bookmark the permalink.

One Response to DrJava with Mint Released

  1. Pingback: Installing JavaMint on MacOS | A Concurrent Affair

Leave a Reply