Created
May 8, 2015 08:17
-
-
Save mehikmat/c762236cabbf4966f39a to your computer and use it in GitHub Desktop.
This gist contains the very simple instructions to run java application from command line
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
First make java jar containing your all code. | |
Then got to terminal | |
$ cd project_root_dir/target | |
$ java -cp ./jar_file.jar com.main_class_name param_to_main_class [if jar doesn't contain manifest file] | |
$ java -jar jar_file.jar [if jar contains manifest file] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment