OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Exception in thread "main" java.lang.NoClassDefFoundError: Echo01




I have a problem with running the java problem Echo01.java.  It is 
downloaded from sun's site 
<http://java.sun.com/xml/jaxp-1.1/docs/tutorial/sax/work/Echo01.java>.

The error message is "Exception in thread "main" 
java.lang.NoClassDefFoundError: Echo01".

I don't understand how to fix it.  Any clue?  I am able to compile and run 
simple HelloWorld.java example.  Following is the log.  Thanks in advance.

D:\java>javac -classpath 
.;%JAXP%\jaxp.jar;%JAXP%\crimson.jar;%JAXP%\xalan.jar Echo01.java

D:\java>java -classpath 
.;%JAXP%\jaxp.jar;%JAXP%\crimson.jar;%JAXP%\xalan.jar Echo01
Exception in thread "main" java.lang.NoClassDefFoundError: Echo01

D:\java>java -version
java version "1.3.1"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-b24)
Java HotSpot(TM) Client VM (build 1.3.1-b24, mixed mode)
D:\java>set
COMPUTERNAME=PGRWD002
ComSpec=C:\WINNT\system32\cmd.exe
CP=.;D:\jdk1.3.1\jre\lib\ext\jaxp-1.1\jaxp.jar;D:\jdk1.3.1\jre\lib\ext\jaxp-1.1\
crimson.jar;D:\jdk1.3.1\jre\lib\ext\jaxp-1.1\xalan.jar
HOMEDRIVE=C:
HOMEPATH=\
include=C:\Program Files\Microsoft Visual Studio\VC98\atl\include;C:\Program 
Fil
es\Microsoft Visual Studio\VC98\mfc\include;C:\Program Files\Microsoft 
Visual St
udio\VC98\include
JAXP=D:\jdk1.3.1\jre\lib\ext\jaxp-1.1
lib=C:\Program Files\Microsoft Visual Studio\VC98\mfc\lib;C:\Program 
Files\Micro
soft Visual Studio\VC98\lib
LOGONSERVER=\\ZRCHB150
MSDevDir=C:\Program Files\Microsoft Visual Studio\Common\MSDev98
MSINPUT=C:\Program Files\MS Hardware
NUMBER_OF_PROCESSORS=1
OS=Windows_NT
Os2LibPath=C:\WINNT\system32\os2\dll;
Path=C:\WINNT\system32;C:\WINNT;d:\jdk1.3.1\bin;C:\DMI\bin;C:\ORAWIN95\BIN;;c:\P
rogram Files\Rational\ClearCase4\bin;C:\WINNT\System32\WBEM;C:\Program 
Files\Mic
rosoft Visual Studio\Common\Tools\WinNT;C:\Program Files\Microsoft Visual 
Studio
\Common\MSDev98\Bin;C:\Program Files\Microsoft Visual 
Studio\Common\Tools;C:\Pro
gram Files\Microsoft Visual 
Studio\VC98\bin;;C:\usr\local\wbin;C:\ISI68K\sniff\m
ks\mks-5.2\mksnt
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 6 Model 8 Stepping 6, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=0806
PROMPT=$P$G
sirCC_DEBUG=3
SMS_LOCAL_DIR=C:\WINNT
SystemDrive=C:
SystemRoot=C:\WINNT
TEMP=C:\TEMP
TMP=C:\TEMP
USERDOMAIN=USDOMAIN
USERNAME=coffeedrinker
USERPROFILE=C:\WINNT\Profiles\coffeedrinker
VIM=C:\usr\local\wbin
WIN32DMIPATH=C:\DMI\
windir=C:\WINNT
D:\java>dir D:\jdk1.3.1\jre\lib\ext\jaxp-1.1\*.jar
Volume in drive D has no label.
Volume Serial Number is AC36-C8E1

Directory of D:\jdk1.3.1\jre\lib\ext\jaxp-1.1

02/06/01  09:42p               187,162 crimson.jar
02/06/01  09:43p                28,404 jaxp.jar
02/06/01  09:43p               801,714 xalan.jar
               3 File(s)      1,017,280 bytes
                         32,579,317,760 bytes free



_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com