>> Hello
>> The most simple example: i have two files:
[quoted text clipped - 27 lines]
>> javac Test.java
>> it says that package mypackage does not exist. Why ?
> Is your class path set correctly ?
> Your Greeting.java should be in the location
> <some-dir>/mypackage/Greeting.java
> the class path should include the directory <some-dir> under which
> the java compiler should be able to find mypackage.Greeting
Perhaps Kannan was simplifying for
the sake of a starter, but that
(above) is not the whole story.
Let us stick with that structure for
the moment though, 'source in same place
you want class'.
To compile the Greeting.java with a
.bat file located in that same directorym
you might put this in the .bat file
javac -classpath .. *.java
This tells javac that the 'root'
of the package, where Test resides.
HTH

Signature
Andrew Thompson
* http://www.PhySci.org/ Open-source software suite
* http://www.PhySci.org/codes/ Web & IT Help
* http://www.1point1C.org/ Science & Technology
vertigo - 27 Feb 2004 16:59 GMT
> javac -classpath .. *.java
>
> This tells javac that the 'root'
> of the package, where Test resides.
thanx, it is working :)