This is the frequent problem that i am getting so i thought i will put it here so that it can help somone looking for it.
1. I have a jar file in which i have a class file holding public static void main
2. The execution should also pickup a properties file.
Command:
java -cp jar_having_main_class.jar;some.properties; com.comp.root.TheMainClass
Every time i get this problem i am re-googling forit. so thought i will post it here.
1. I have a jar file in which i have a class file holding public static void main
2. The execution should also pickup a properties file.
Command:
java -cp jar_having_main_class.jar;some.properties; com.comp.root.TheMainClass
Every time i get this problem i am re-googling forit. so thought i will post it here.
get more at
ReplyDeletehttp://sasajava.blogspot.com/