today,I come across a very wizzard question.I have two class file in
the same package.
when I use one of the class in the other class file.But the compiler
notified me of "not
found the class".
in a word,how to use a class in the same package .my operation system
is winme.
Andrew Thompson - 29 Dec 2005 03:13 GMT
> today,I come across a very wizzard question.I have two class file in
> the same package.
> when I use one of the class in the other class file.But the compiler
> notified me of "not
> found the class".
<http://www.physci.org/codes/javafaq.jsp#exact>
> in a word,
I suggest less words, more copy/paste of the *exact*
input and output you are seeing.
Do you know how to copy from the command line (DOS)?

Signature
Andrew Thompson
physci, javasaver, 1point1c, lensescapes - athompson.info/andrew
chiho.chan@gmail.com - 29 Dec 2005 06:04 GMT
Did you set the classpath to "." ?
you may do it with
set CLASSPATH=.;%CLASSPATH%
Roedy Green - 29 Dec 2005 07:48 GMT
>today,I come across a very wizzard question.I have two class file in
>the same package.
>when I use one of the class in the other class file.But the compiler
>notified me of "not
>found the class".
Almost every Java program does that without problem. Please post your
code.

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
Ricky Clarkson - 29 Dec 2005 13:14 GMT
If you want to compile one file and it depends on another file, you'll
need to compile both at once.
javac *.java
usually suffices.
Other than that, go to http://ant.apache.org and learn about ant.