java -classpath <jar_file.jar> <class_in_jar_with_absolute_path>
Example:
t4acke4.jar Contents
com.example.XYZ1.class
com.example.XYZ2.class
com.example.test.PQR1.class
com.example.test.PQR2.class
com.example.test.PQR3.class
NOTE: Here com,example and test are folders or packages
Run PQR2 as:
java -classpath t4acke4.jar com.example.test.PQR2
Example:
t4acke4.jar Contents
com.example.XYZ1.class
com.example.XYZ2.class
com.example.test.PQR1.class
com.example.test.PQR2.class
com.example.test.PQR3.class
NOTE: Here com,example and test are folders or packages
Run PQR2 as:
java -classpath t4acke4.jar com.example.test.PQR2
No comments:
Post a Comment