If you would like to run a class containing a main method other than the default execution entrance of the jar file, you may use the following command. Use forward slash in Linux/Unix system and use backward slash in Windows system.
java -cp <path to your jar>/<jar file name>.jar <package path of the class>.<class name>
Otherwise, if you just want ot execute the jar through its default execution entrance, the command would be the following.
java -jar <path to your jar>/<jar file name>.jar
If you have ever asked yourself these questions, this is the book for you. What is the meaning of life? Why do people suffer? What is in control of my life? Why is life the way it is? How can I stop suffering and be happy? How can I have a successful life? How can I have a life I like to have? How can I be the person I like to be? How can I be wiser and smarter? How can I have good and harmonious relations with others? Why do people meditate to achieve enlightenment? What is the true meaning of spiritual practice? Why all beings are one? Read the book free here.
java -cp <path to your jar>/<jar file name>.jar <package path of the class>.<class name>
Otherwise, if you just want ot execute the jar through its default execution entrance, the command would be the following.
java -jar <path to your jar>/<jar file name>.jar
If you have ever asked yourself these questions, this is the book for you. What is the meaning of life? Why do people suffer? What is in control of my life? Why is life the way it is? How can I stop suffering and be happy? How can I have a successful life? How can I have a life I like to have? How can I be the person I like to be? How can I be wiser and smarter? How can I have good and harmonious relations with others? Why do people meditate to achieve enlightenment? What is the true meaning of spiritual practice? Why all beings are one? Read the book free here.
No comments:
Post a Comment