D:/jdk>dir
Volume in drive D has no label
Volume Serial Number is 1CDC-2363
Directory of D:/jdk
. <DIR> 09-21-00 17:35 .
.. <DIR> 09-21-00 17:35 ..
UNINST ISU 192,510 09-21-00 17:35 Uninst.isu
BIN <DIR> 09-21-00 17:35 bin
README 5,910 06-29-99 6:20 README
LICENSE 8,617 06-29-99 6:20 LICENSE
COPYRI~1 946 06-29-99 6:20 COPYRIGHT
README~1 HTM 21,014 06-29-99 6:20 readme.html
JRE <DIR> 09-21-00 17:35 jre
LIB <DIR> 09-21-00 17:35 lib
INCLUDE <DIR> 09-21-00 17:35 include
INCLUD~1 <DIR> 09-21-00 17:35 include-old
DEMO <DIR> 09-21-00 17:35 demo
SRC JAR 17,288,462 06-29-99 6:20 src.jar
6 file(s) 17,517,459 bytes
8 dir(s)
D:/jdk>set
TMP=C:/WINDOWS/TEMP
TEMP=C:/WINDOWS/TEMP
PROMPT=$p$g
winbootdir=C:/WINDOWS
COMSPEC=C:/COMMAND.COM
PATH=C:/WINDOWS;C:/WINDOWS/COMMAND;D:/JDK/BIN
JAVA_HOME=d:/jdk
CLASSPATH=d:/jdk/lib/tools.jar;d:/jdk/lib/;d:/jdk/jre/lib
windir=C:/WINDOWS
CMDLINE=java .
638.76 MB free
D:/jdk>type Welcome.java
public class Welcome
{ public static void main(String[] args)
{ String[] greeting = new String[3];
greeting[0] = "Welcome to Core Java";
greeting[1] = "by Cay Horstmann";
greeting[2] = "and Gary Cornell";
int i;
for (i = 0;
i < greeting.length;
i++)
System.out.println(greeting);
}
}
D:/jdk/corejava/v1ch2/Welcome>java Welcome.class
Exception in thread "main" java.lang.NoClassDefFoundError: Welcome/class
D:/jdk/corejava/v1ch2/Welcome>java .
Exception in thread "main" java.lang.NoClassDefFoundError: /
????????????????????????????????????????????????????????????????????????????
Help ME ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~