Java run commandline a package

Try this

 

Windows command line, BAT file Compile java

1- Very important.

To create a similar batch file, you should verify the full paths to any directories that you want to

add to your system PATH variable. Then you can make any necessary changes to this
example code, and save it as a batch file on your system.
You can download a copy of my batch file using this URL:

kutay.bat

How to Run,

 

How to compile java over terminal, command line , Run java file

1. You need to check, java version with this command

2. Compile the code

3. Run The compiled

How to compile java over terminal, command line , Run java file

1. You need to check, java version with this command

$ java -version

 

2. Compile the code

$ javac …… …

 

3. Run The compiled

$ java -jar compiled.jar