A
A
artshelom2018-03-25 15:49:11
Java
artshelom, 2018-03-25 15:49:11

When running a jar file through the console, it says "Error: Could not find or load main class", how to fix it ??

Created a jar file in idea. When running it through the console, it writes an error: "Error: Could not find or load main class"
Path to class mains "ru.eng.start.Main", empty class path created it through artifacts.
How to run it normally?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2018-03-25
@sergey-gornostaev

java -cp filename.jar ru.eng.start.Main

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question