DrJava
The official Mac version is a program writing and development tool suitable for use on the Mac platform. The latest version provides an intuitive interface and the ability to interactively evaluate Java code, and also includes powerful features for more advanced users. andDrJava
Mac has an interactive and friendly interface, and its testing, debugging and smart editing features are all designed to create a lightweight IDE for novices.
Things to note:
Friends who use Mac to install or download application software often encounter the following three error situations. The editor here provides you with solutions to help you solve the Mac error problem:
1. "...the software is damaged and cannot be opened. You should move it to the Trash"
2. "The xxx software cannot be opened becauseApple can't check if it contains malware"
3. "Cannot open xxxsoftware because it comes from an unidentified developer"
Don’t panic if you encounter the above three situations, follow the editor’s instructions and solve them easily.
1. Turn on any source in the computer settings.Open any source.
2. Opening any source will solve the problem of most software error reports. If it does not work, it means that you need to bypass application signature authentication by executing command line code. Execute command bypassiosnotarizationGatekeeper.
3. If the above operations still cannot solve the problem, then you need toclosureSIPSystem integrity protectionOnly then can.
DrJava Mac software features
DrJava: A lightweight teaching environment for Java, a framework for building a teaching Java programming environment
Production programming in the classroom, a teaching programming environment for Java that can be extended to production programming
Analytical design patterns, a framework for testing concurrent programs
ConcJUnit: Unit testing of parallel programs, a test-oriented Java concurrency classroom
Compiz is the window manager for the X Window System on Linux.
It uses 3D graphics hardware to display windows and special effects.
DrJava is a pure Java application that is distributed in three different forms:
As a Java jar file, as a Windows .exe file, and as a Mac OS X application.
The jar distribution will run on all platforms that support Java.
On Windows, the Windows .exe file is usually more convenient because it wraps the jar file in a script
This script finds the Java compiler before starting DrJava (can be in multiple locations on Windows)
This saves the user from having to manually enter the location when DrJava is first executed.
On Mac OS X, DrJava Mac application is better than jar file
Because it wraps jar files in Mac applications that conform to the user interface conventions of the Mac platform. To install DrJava:
DrJava Mac software features
The current beta version of DrJava is drjava-beta-2019-220051.
This version is compatible with Java 8, which is the only legacy Java version supported.
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 distribution is distributed as a jar file only as it minimizes cross-platform compatibility issues.
On Windows computers, the Amazon Corretto implementation modifies the registry
so that a single click on a Java jar file can run it on the Corretto Java 8 JVM.
Mac users should download the DrJava jar file and open the Security & Privacy panel in the System Preferences application
and check the box indicating that they want to open the DrJava jar file, even though the file was developed by an unknown company by Apple.
The Jar file can then be run using Oracle Java 8 or Amazon Corretto Java 8.
The JRE distribution (without compiler) is sufficient because the DrJava jar contains the compiler for Java 8 OpenJDK.
How to use DrJava Mac
The first step is to create a new project after opening it, just like in VS, otherwise the jar package cannot be imported.
The second step is to select the compilation path to introduce external classes. The most important thing is to add the path of the algs4.jar file to Extra
Classpath, this has bothered me for a long time. Otherwise, you cannot import in your code.
The third step is to write Class, one Class and one file.
The fourth step is to compile and execute. First compile it into an intermediate file. I understand it is similar to IL; as long as there is a main function, it can basically be executed in the following way. Pay attention to case sensitivity.
Advanced features: Unit testing JUNIT
I was familiar with NUNIT in the past, and JUNIT is almost the same, but DrJava supports very few assertions, so it is recommended not to use it. . Basically, manual testing is enough.
DrJava Mac update log
1: Optimized performance
2: We are serious about solving bug problems
Huajun editor recommends:
DrJava Mac and Mac OS X, CrossOver Pro For Mac, Cloud Manager, etc. are all very good software. Welcome to our site to download and experience!