This page contains an archived post to the Java Answers Forum made prior to February 25, 2002.
If you wish to participate in discussions, please visit the new
Ask for help
Posted by Lu Ping on November 26, 2000 at 4:40 AM
I am reading book <>, and found it very good. I am a beginner for Java, and just began to learn it.
I meet a problem when I read chapter 5 about package:
I do as your instructions,set the classpath,make the directory for the tools package, and compiled the Assert.java and TestAssert.java, it reports none error,but when I run TestAssert, it tells me
'Exception in thread "main" java.lang.NoClassDefFoundError: TestAssert'.
And I found TestTool for test P.class has this matter, too.
I am hardly going on if I don't get rid of the problem, can you do me a favor to this matter?
- Name does matter Kishori Sharan November 26, 2000 at 1:13 PM
- Thanks Lu Ping November 27, 2000 at 9:52 AM
- Ask for help Lu Ping November 27, 2000 at 3:18 AM
- Try this shailesh November 26, 2000 at 5:51 AM