由买买提看人间百态

topics

全部话题 - 话题: cplot
(共0页)
q**c
发帖数: 179
1
来自主题: Java版 - another question driving me crazy...
say I have two packages B and C put as
in the directory /A/B and /A/C. The classpath is set as /A.
so when compiling them, no problem at all.
Now have a test class named Cplot.class in /A/C.
When run it, it gives message:
"Exception in thread "main" java.lang.NoClassDefFoundError: Cplot".
I find since classpath is set as /A, java cannot find this Cplot.
So I add /A/C to the classpath, but it gives message:
"Exception in thread "main" java.lang.NoClassDefFoundError: Cplot (wrong name:
A/C/Cplot).
g*s
发帖数: 2277
2
来自主题: Java版 - another question driving me crazy...
make Cplot.java as one class in package C
and run "java C.Cplot"
(共0页)