Answer the question
In order to leave comments, you need to log in
For what reason can the main class not be found?
I am compiling a package using mvn package. Then I run the command java -cp c:\...\test.jar ru.application(class location). Gives an error that the main class was not found. I also tried to do it on a simple package, everything works there.
What can interfere with finding the main class?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question