Page 1 of 1

Nothing Works in DOS...Can compile in text but can't run. HE

Posted: Tue Sep 17, 2002 3:12 am
by Tom
I am able to compile in Textpad with no prob. .class file gets created, however I cannot run it in Textpad. I get the following:

java.lang.NoClassDefFoundError: classpath/A:\Test/java
Exception in thread "main"
Tool completed with exit code 1

I cannot get anything to work from dos prompt either. Not even compile. It just says "Bad command or file name".

Parameters are set the same for both javac and java.
As you can see in the above classpath, I am attempting to run the file from a floppy, however I have the same problems when I run it from a hard drive location.

I usually consider myself to be somewhat computer literate, but I've been trying to solve this problem for like 3 days now. I'm really stumped. I'd appreciate any help at all.
Thanks. -Tom> NYC.

*********** 9-11-01 WE WILL NEVER FORGET! *********

Re: Nothing Works in DOS...Can compile in text but can't run

Posted: Wed Sep 18, 2002 10:39 pm
by tony
http://java.sun.com/docs/books/tutorial ... win32.html


Try this for DOS as far aa the TextPad ... you got me

Re: Nothing Works in DOS...Can compile in text but can't run

Posted: Tue Oct 01, 2002 3:53 pm
by erna
i have the same problem too, and i can't find the file above on java.sun.com, please, help me.