Hi,

I suggest you post your java-related questions at http://www.javaranch.com , this is way off-topic.

Regards,

Tobias

P.S. The answer is

src
|
+---- command
|          |
|          +---- CreateCustomer.java
|          |
|          +---- ....
+---- domain
          |
          +---- Order.java
          |
          +---- Customer.java
Hi,



Sorry I post a java question in this mailing list. I know you guys know the answer.



I want to create a class"domain.Customer", and "domain.Order" so that the other class can useimport statement to reference this 2 classes.

eg. import domain.Customer;

      import domain.Order;



Where in my windows directory create the class file Customer.java and Order.java file?

The following shown the project DBTest I have created in Eclipse (3.4).



d:\workspace\DBTest>dir
 Volume in drive D has no label.
 Volume Serial Number is 401A-FB2E

 Directory of d:\workspace\DBTest

20/08/2008  09:58 PM    <DIR>          .
20/08/2008  09:58 PM    <DIR>          ..
20/08/2008  09:58 PM               618 .classpath
20/08/2008  09:58 PM             1,039 .project
20/08/2008  09:58 PM    <DIR>          .settings
20/08/2008  09:58 PM    <DIR>          build
21/08/2008  06:22 PM    <DIR>          src
20/08/2008  09:58 PM    <DIR>          WebContent
               2 File(s)          1,657 bytes
               6 Dir(s)  57,258,811,392 bytes free

d:\workspace\DBTest>



I also created a package name call "command" inside the directory:

d:\workspace\DBTest\src\command>dir
 Volume in drive D has no label.
 Volume Serial Number is 401A-FB2E

 Directory of d:\workspace\DBTest\src\command

21/08/2008  06:22 PM    <DIR>          .
21/08/2008  06:22 PM    <DIR>          ..
21/08/2008  06:22 PM             1,687 CommandExecutor.java
21/08/2008  06:22 PM               815 CreateCustomer.java
21/08/2008  06:22 PM               799 CreateOrder.java
21/08/2008  06:22 PM               915 DatabaseCommand.java
21/08/2008  06:22 PM             1,027 ListCustomerOrders.java
21/08/2008  06:22 PM               915 ListCustomers.java
               6 File(s)          6,158 bytes
               2 Dir(s)  57,258,811,392 bytes free

d:\workspace\DBTest\src\command>




From the file CreateCustomer.java and CreateOrder.java, I want to *import* domain.Customer and domain.Order.

Where in my windows directory should create the Customer.java and Order.java file?



Thanks

Sam



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to