DrJava is a lightweight development environment for writing Java programs. It is designed primarily for students, providing an intuitive interface and the ability to interactively evaluate Java code. It also includes powerful features for more advanced users. DrJava is available for free under the BSD License, and it is under active development by the JavaPLT group at Rice University.
Key Features of DrJava:
– lightweight IDE
– unit testing
– interpreter for evaluating programs interactively
– source level debugger
Download DrJava For Windows 10/8/7 and Mac OS
You can download DrJava from this source.
The current beta release for DrJava is drjava-beta-2019-220051 . This version is compatible with Java 8, which is the only supported version of “traditional” Java. Later versions of Java use a new package system and distribution format breaking compatibility with Java applications that access files in the underlying distribution. This release is only distributed as a jar file because it minimizes cross-platform compatibility issues. On Windows machines, the Amazon Corretto implementation modifies the registry so that clicking on a Java jar file runs the file on the Corretto Java 8 JVM. Mac users should download the DrJava jar file, open the Security and Privacy panel in the System Preferences app, and check the box stating that they want to open the DrJava jar file, even though is was produced a developer unknown to (unregistered with) Apple. Then the Jar file can be run using either the Oracle Java 8 or Amazon Corretto Java 8. A JRE distribution (which does not include a compiler) should suffice because the DrJava jar includes the compiler from the Java 8 OpenJDK.
There are several methods to run DrJava:
– From the command line, you can type: java -jar drjava-beta-2019-220051.jar
– On many platforms, you can simply double-click the jar file to start DrJava.
– On Windows, you can download the drjava-beta-2019-220051 .exe file.
– On OS X, you can download the drjava-beta-2019-220051 -osx.tar.gz package. You can then run DrJava as a normal application.
DrJava requires a Java 2 v1.4 or later virtual machine. (Note: The JDK, not the JRE, must be installed to have access to compilation in DrJava.) If you need to download a JVM, we recommend Sun’s JDK 5.0 for Solaris, Linux and Windows. Other users should use the Java virtual machine that comes with their operating system (including MacOS X).
Also, DrJava uses two Java Virtual Machines (one for the main program, and one for the Interactions Pane) that use Java’s Remote Method Invocation (RMI) to communicate with each other. RMI uses TCP/IP as the default transport mechanism, so you must have those drivers installed. Without TCP/IP, DrJava will not start properly.