Friday, July 2, 2010

How to run .jar file with specific classpath

simply but not easy as I google many sites 'til I found this ...

$ java -cp [jarfilename].jar [MainClass]

MainClass is class that contain 'public static void main(String args[])' which entry point for this jar file

No comments:

Post a Comment