Tags

For compilation
===============
linux - javac -cp a.jar:b.jar Hello.java
windows - javac -cp a.jar;b.jar Hello.java

note: 
- windows has ';' instead of ':'
- Hello.java name of the java file


For execution 
=============
linux - java -cp .:a.jar:b.jar Hello
windows - java -cp .;a.jar;b.jar Hello

note: 
- '.' added to cp for path of Hello.class
- must be 'Hello', cannot be 'Hello.class' (unfriendly?)

Advertisements