Why does the code output read
sh -c javac -classpath .:target/dependency/* -d . $(find . -type f -name '.java’)
java -classpath .:target/dependency/ Main
Hello world!
It seems that you are attempting to run a different file other than Main.java
. Can you send a code link?
I can’t solve this without a code link =/
1 Like
if you are confused on why it is saying
sh -c javac -classpath .:target/dependency/* -d . $(find . -type f -name '.java’)
java -classpath .:target/dependency/ Main
that is just saying what file the compiler is running (I think)
The second line, java -classpath .:target/dependency/ Main, is the command to run the program. It specifies the classpath and the name of the main class to execute.
This happened with me on my site: http://billonilne.pk/