Skip to content

Instantly share code, notes, and snippets.

@89465127
Created May 23, 2013 23:07
Show Gist options
  • Save 89465127/5640183 to your computer and use it in GitHub Desktop.
Save 89465127/5640183 to your computer and use it in GitHub Desktop.
How to compile and run Java and Scala programs by setting the classpath properly.
javac -cp ".:*" Program.java && java -cp ".:*" Program
# : is the delimiter
# This method is useful to include all items in the current directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment