RE: Thread error....WHY?
It is a good idea to add . ( current directory ) to your CLASSPATH -also get in the habit of compiling your classes so that any required package structure is created properly. You do this by specifying an output directory for the javac command. If you wanted to compile the class starting from the current directory: not my favorite technique ) D:\XALAN\SAMPLES\SIMPLE~1>javac -d . SimpleTransform.java If you wanted to compile the class into an established directory which is already a part of your classpath: ( My favorite technique ) if CLASSPATH were: d:\jdk1.3;d:\jdk1.3\bin;d:\jsdkee1.3;d:\ant\lib\ant.jar;D:\Progra~1\junit3.6 ;d:\xalan\xalan.jar;d:\xalan\xerces.jar;d:\testClasses D:\XALAN\SAMPLES\SIMPLE~1>javac -d d:\testClasses SimpleTransform.java ALWAYS pass the fully-qualified package name and class name to the java command: example package name == com.fred.stuff class name == SomeClass command line used to run that class: d:\>java com.fred.stuff.SomeClass If you do not do one of the above, make sure you have navigated to the directory from which your interesting root package name directory has been created. example: your java source has a package declaration of: package fred; You compile using javac as shown in your email: D:\XALAN\SAMPLES\fred>javac Example.java You would then have to navigate up the directory tree to the directory that contained fred ( the root package name ) before attempting to invoke java with that class as the argument: D:\XALAN\SAMPLES\fred>cd.. D:\XALAN\SAMPLES>java fred.Example ( also note the fully-qualified package name and classname is what is passed to the java command ) HTH Owen. -Original Message- From: Galon, Mary-Jay [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 24, 2001 2:15 PM To: Tomcat (E-mail); Struts-User@Jakarta. Apache. Org (E-mail) Subject: Thread errorWHY? Im sending to both groups for maximized feedback. I am executing a compiled Xalan sample and getting an error. Does anyone know why I could be getting "thread" issues. -- REVISED CLASSPATH (i re-installed jdk to root drive instead of under Program Files): d:\jdk1.3;d:\jdk1.3\bin;d:\jsdkee1.3;d:\ant\lib\ant.jar;D:\Progra~1\junit3.6 ;d:\xalan\xalan.jar;d:\xalan\xerces.jar COMMAND CODE MSG: D:\XALAN\SAMPLES\SIMPLE~1>javac SimpleTransform.java D:\XALAN\SAMPLES\SIMPLE~1>java SimpleTransform Exception in thread "main" java.lang.NoClassDefFoundError: SimpleTransform D:\XALAN\SAMPLES\SIMPLE~1>
RE: Thread error....WHY?
thanks. solved it already. we had 2 pairs of eyes looking at the classpath and still missed it. -Original Message- From: Scott Walter [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 24, 2001 3:29 PM To: [EMAIL PROTECTED] Subject: Re: Thread errorWHY? You aren't having thread errors, Java just can't find your class. If the SimpleTransform class is in current directory make sure "." is in your classpath. scott. --- TODD HARNEY <[EMAIL PROTECTED]> wrote: > Also, do you need the package information on the > SimpleTransform class? Does it have a package? Or is > this a class that you wrote? > > HTH, > Todd > > >>> [EMAIL PROTECTED] 4/24/01 2:14 >>> > Im sending to both groups for maximized feedback. > > I am executing a compiled Xalan sample and getting > an error. Does anyone > know why I could be getting "thread" issues. > > > > -- > REVISED CLASSPATH (i re-installed jdk to root drive > instead of under Program > Files): > d:\jdk1.3;d:\jdk1.3\bin;d:\jsdkee1.3;d:\ant\lib\ant.jar;D:\Progra~1\junit3.6 > ;d:\xalan\xalan.jar;d:\xalan\xerces.jar > > > > COMMAND CODE MSG: > D:\XALAN\SAMPLES\SIMPLE~1>javac SimpleTransform.java > > D:\XALAN\SAMPLES\SIMPLE~1>java SimpleTransform > Exception in thread "main" > java.lang.NoClassDefFoundError: SimpleTransform > > D:\XALAN\SAMPLES\SIMPLE~1> > = ~~~ Scott __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
Re: Thread error....WHY?
You aren't having thread errors, Java just can't find your class. If the SimpleTransform class is in current directory make sure "." is in your classpath. scott. --- TODD HARNEY <[EMAIL PROTECTED]> wrote: > Also, do you need the package information on the > SimpleTransform class? Does it have a package? Or is > this a class that you wrote? > > HTH, > Todd > > >>> [EMAIL PROTECTED] 4/24/01 2:14 >>> > Im sending to both groups for maximized feedback. > > I am executing a compiled Xalan sample and getting > an error. Does anyone > know why I could be getting "thread" issues. > > > > -- > REVISED CLASSPATH (i re-installed jdk to root drive > instead of under Program > Files): > d:\jdk1.3;d:\jdk1.3\bin;d:\jsdkee1.3;d:\ant\lib\ant.jar;D:\Progra~1\junit3.6 > ;d:\xalan\xalan.jar;d:\xalan\xerces.jar > > > > COMMAND CODE MSG: > D:\XALAN\SAMPLES\SIMPLE~1>javac SimpleTransform.java > > D:\XALAN\SAMPLES\SIMPLE~1>java SimpleTransform > Exception in thread "main" > java.lang.NoClassDefFoundError: SimpleTransform > > D:\XALAN\SAMPLES\SIMPLE~1> > = ~~~ Scott __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
Re: Thread error....WHY?
Also, do you need the package information on the SimpleTransform class? Does it have a package? Or is this a class that you wrote? HTH, Todd >>> [EMAIL PROTECTED] 4/24/01 2:14 >>> Im sending to both groups for maximized feedback. I am executing a compiled Xalan sample and getting an error. Does anyone know why I could be getting "thread" issues. -- REVISED CLASSPATH (i re-installed jdk to root drive instead of under Program Files): d:\jdk1.3;d:\jdk1.3\bin;d:\jsdkee1.3;d:\ant\lib\ant.jar;D:\Progra~1\junit3.6 ;d:\xalan\xalan.jar;d:\xalan\xerces.jar COMMAND CODE MSG: D:\XALAN\SAMPLES\SIMPLE~1>javac SimpleTransform.java D:\XALAN\SAMPLES\SIMPLE~1>java SimpleTransform Exception in thread "main" java.lang.NoClassDefFoundError: SimpleTransform D:\XALAN\SAMPLES\SIMPLE~1>
Re: Thread error....WHY?
Do you need . in your CLASSPATH also? Just a thought? Todd >>> [EMAIL PROTECTED] 4/24/01 2:14 >>> Im sending to both groups for maximized feedback. I am executing a compiled Xalan sample and getting an error. Does anyone know why I could be getting "thread" issues. -- REVISED CLASSPATH (i re-installed jdk to root drive instead of under Program Files): d:\jdk1.3;d:\jdk1.3\bin;d:\jsdkee1.3;d:\ant\lib\ant.jar;D:\Progra~1\junit3.6 ;d:\xalan\xalan.jar;d:\xalan\xerces.jar COMMAND CODE MSG: D:\XALAN\SAMPLES\SIMPLE~1>javac SimpleTransform.java D:\XALAN\SAMPLES\SIMPLE~1>java SimpleTransform Exception in thread "main" java.lang.NoClassDefFoundError: SimpleTransform D:\XALAN\SAMPLES\SIMPLE~1>
Thread error....WHY?
Im sending to both groups for maximized feedback. I am executing a compiled Xalan sample and getting an error. Does anyone know why I could be getting "thread" issues. -- REVISED CLASSPATH (i re-installed jdk to root drive instead of under Program Files): d:\jdk1.3;d:\jdk1.3\bin;d:\jsdkee1.3;d:\ant\lib\ant.jar;D:\Progra~1\junit3.6 ;d:\xalan\xalan.jar;d:\xalan\xerces.jar COMMAND CODE MSG: D:\XALAN\SAMPLES\SIMPLE~1>javac SimpleTransform.java D:\XALAN\SAMPLES\SIMPLE~1>java SimpleTransform Exception in thread "main" java.lang.NoClassDefFoundError: SimpleTransform D:\XALAN\SAMPLES\SIMPLE~1>