I believe that you are generally using the IDE environment to develop running Java files, but I think you can run Java files in the command line simple, multi-technology does not press the body.
Next, I'll take a look. Compile and run the Java file:
- The first step is to start with the next entry program ( Note: Be sure to write the class name in the program as the name of the saved file )
-
- The second step, go to the Java file to save the directory ( Note: You must go to the saved directory, otherwise the operation will be wrong )
- The fourth step using Javac Helloworld.java to compile the source program generates a. Class intermediate code
- The fifth step is to run the program using Java HelloWorld ( Note that the end of the program after Java does not need to be written. Class)
-
-
How to compile and run Java files using the command line