![]() Run echo $CLASSPATH, there should be no errors that complain that files are unable to be found. ![]() export JUNIT_HOME="$HOME/java"Įxport CLASSPATH="$CLASSPATH:$JUNIT_HOME/junit-X.Y.jar:$JUNIT_HOME/hamcrest-core-XX.YY.jar" bash_profile file to add these files to our classpath (if you are using zsh edit your. (replace X, Y, XX, YY accordingly).Įdit your classpath. Then running cp ~/Downloads/ ~/java/ to copy the two. I suggest creating a java folder in your home directory by running cd & mkdir java. Repeat this again and download the latest stable release for hamcrest: download hamcrest-core-XX.YY.jar Find the row for the latest stable release then under the downloads column click 'jar' link. Assuming that all checks out, let's install jUnit. You should get some path shown to you with no errors. When I type this on my OSX installation, I get /usr/bin/javac. You should be able to open a terminal and type javac without getting any errors, and see the usage options: Usage: javac Īlso typing whereis javac will give you the path of where your java compiler is installed.
0 Comments
Leave a Reply. |