Today I tried to compile my sources through the command prompt:
PS ...\JavaDev\Prog> javac -classpath <libs> -d . -sourcepath src src/com/negi/prog/Prog.java
They compiled successfully.
But when I try to run it, it produces an error:
PS ...\JavaDev\Prog> java -classpath com.negi.prog.Prog Exception in thread "main" java.lang.NoClassDefFoundError: com/negi/prog/Prog Caused by: java.lang.ClassNotFoundException: com.negi.prog.Prog
How can I fix that?