Help on running Java on Terminal
I already typed java and the package name, it still couldnt run on Terminal. Why?
You are using an IDE that do that for you when you run your application. Press the righ green arrow in the top bar or press SHIFT+F10
or right click on the file Main
and then "run".
If you want to use the terminal, first compile it:
javac ClassName.java
Then run it:
java ClassName
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.