Cheers again it is making sence as this has been one of my main problems
when i create .java files and then messing up the relative paths.Thus
causing my .java files not to compile.
All the Best Chuck

Calvin Yu wrote:

> It doesn't have to be.  Package names have very little association with
> the directory that a java file is in.  With ant, all you should have to
> do is point it to a source directory (C:\development), and it'll try to
> compile all java files in that directory.  However, you probably want to
> declare a package structure for organization and access control
> purposes.
>
> If you are going to define a package, it is recommend that you build a
> complimentary package structure that is *relative* to your source
> directory.  So if your class's package is 'com.mycompany', your java
> file should be in 'C:\development\com\mycompany'.  The reason you would
> want to do this is because javac will look for this kind of directory
> structure to compile the source files that are required by the source
> file you are currently compiling.  I believe you can have all java files
> under one directory despite their package declaration and javac will
> resolve the dependencies, but your project organization will suffer.
>
> So just remember, package declaration is *relative* to the source
> directory.
>
> Calvin
>
> On 17 Jul 2001 13:44:34 +0100, Chuck Amadi wrote:
> > Hi,
> >     I have just installed ant, thus i am toying with a few simple
> > examples. Nevertheless i just like to confirm that when creating .java
> > files i save them into a C:\development directory  (as text doc) thus
> i
> > am led to believe that this dir isthe name of my package name   i.e
> > package development;
> >
> >
> > class ProjectForm
> > {
> > public static void main (String etc etc
> >
> > Pls could you confirm Cheers Chuck
> >
> > --
> > The views expressed by the sender of this message don't
> > necessarily represent those of Brecon Beacons National Park
> > Authority. This message is intended for the addressee(s) only
> > and is sent in confidence; if you receive it in error, please can you
> > let us know (at [EMAIL PROTECTED]) and then destroy all copies.
> > Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn
> > adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog.
> > Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion
> > yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn
> > mewn camgymeriad, a fyddech gystal � rhoi gwybod i
> > ni (yn [EMAIL PROTECTED]) ac yna dil�wch bob copi.
> >

--
The views expressed by the sender of this message don't
necessarily represent those of Brecon Beacons National Park
Authority. This message is intended for the addressee(s) only
and is sent in confidence; if you receive it in error, please can you
let us know (at [EMAIL PROTECTED]) and then destroy all copies.
Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn
adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog.
Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion
yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn
mewn camgymeriad, a fyddech gystal � rhoi gwybod i
ni (yn [EMAIL PROTECTED]) ac yna dil�wch bob copi.


Reply via email to