posted Oct 16, 2016, 7:00 PM by Samuel Konstantinovich   [ updated Oct 18, 2016, 5:59 AM ]
Kitty Space Invaders - Beta Version

Java allows the inclusion of other directories and archives of classes (jar files) with the -cp flag.

javac -cp  <semi colon separated files/paths>  filename.java
java -cp  <semi colon separated files/paths>  filename

the files and paths usually should include the current directory written as a period:
.                 is the current directory
../lib/     is a directory up one level, and inside the lib directory.
stuff.jar is a Java Archive. It is a package file that can contain class files and other resources.

In windows command line just type this:  (notice: period semicolon core.jar )
javac -cp .;core.jar spaceInvaders.java
java -cp .;core.jar spaceInvaders

In mac/linux command line just type this:  (note the COLON, instead of a semicolon)
javac -cp .:core.jar spaceInvaders.java
java -cp  .:core.jar spaceInvaders