Local Environment Setup: System Requirement
Local Environment Setup: System Requirement
Local Environment Setup: System Requirement
JUnit is a framework for Java, so the very first requirement is to have JDK installed
in your machine.
System Requirement
JDK 1.5 or above.
OS Task Command
OS Output
If you do not have Java installed on your system, then download the Java Software
Development Kit (SDK) from the following link https://www.oracle.com. We are
assuming Java 1.8.0_101 as the installed version for this tutorial.
OS Output
OS Output
Windows junit4.12.jar
Linux junit4.12.jar
Mac junit4.12.jar
1
Windows
Set the environment variable JUNIT_HOME to C:\JUNIT
2
Linux
export JUNIT_HOME = /usr/local/JUNIT
3
Mac
export JUNIT_HOME = /Library/JUNIT
1
Windows
Set the environment variable CLASSPATH to %CLASSPATH%;%JUNIT_HOME
%\junit4.12.jar;.;
2
Linux
export CLASSPATH = $CLASSPATH:$JUNIT_HOME/junit4.12.jar:.
3
Mac
export CLASSPATH = $CLASSPATH:$JUNIT_HOME/junit4.12.jar:.
System.out.println(result.wasSuccessful());
}
}