Ok.
SO File Evidencia.java and Evidencia.class (+ other class files produced by javac) are in directory c:\krutek\java\source
if I type java -classpath c:\krutek\java\source evidencia
from directory c:\krutek\java\source
or
c:\program~1\2sdk14~1\bin\java -classpath c:\krutek\java\source...
Thanx by it doesn't work still.
When I run it without -classpath (or with -classpath pathtosourcedirectory evidencia )then output is like this:
Exception in thread "main" java.lang.NoClassDefFoundError: evidencia (wrong name
: Evidencia)
at...
I have this problem.
I wrote a simple code in NetBeans and when I try run it, it works. But when I write this same code (or another in where I use constructor for main class)in notepad and try it run via command line ("java.exe ...") I got this message:
'Exception in thread...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.