Adding a .jar file on test classpath
2014-02-16
I am anti-Eclipse just because, so I like to add .jar file manually.
- Create
~/.devdirectory - Add the jar file (in my case,
junit-4.11.jar) you want to include in~/.dev. - In
~/.bash_profile, addexport CLASSPATH=$CLASSPATH:~/.dev/junit-4.11.jar - Close the current terminal and open a new terminal.
My system is Mac OS X Mavericks version 10.9.1.