java cmd execution question

Asked 2 years ago, Updated 2 years ago, 22 views

What should I do if I only get a blank when I use cmd?

java

2022-09-20 19:45

2 Answers

The java file must have been compiled into a class file through javac. Check to see if a .class file exists in that directory.

java T_02_110.class

Let's do it like this.


2022-09-20 19:45

Javac is a compilation.

You need to use the java command to run it.

About compiled files

java ${target}

I'm adding just in case.

${target} is the compiled filename.


2022-09-20 19:45

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.