Hi,
First create a main directory say 'Main' and then inside main create a
sub-directory 'com' and inisde com create one more sub-directory 'bibie'.
Then set classpath = d:\Main. Then create package files inside bibie
directory with the first line in the file that says "package com.bibie;" If
you want to use these files outside in other classes, use "import
com.bibie.*;" of "import com.bibie.<<classfilename>>;"
Hope this clarifies
--------------------------------------------------------------------
Your earlier message:
----- Original Message -----
From: Mohamad Habibi <habibie@p...>
To: Pro_JavaServer_Pages <pro_jsp@p...>
Sent: Wednesday, December 06, 2000 8:52 AM
Subject: [pro_jsp] How to create package from several files
> Hi, I want to create a package named com.bibie which will contain 3
> classes (files), say file A (class A), file B(class B), file C(class C).
> On each class, I add command package com.bibie, so compiler will know that
> current class is part of package named com.bibie, but in developing these
> classes, I need to refer to other class in the same package. Say, in class
> A, I need to refer to class B. How to do that since class A and class B
> are located on separate files ? I've browsed some examples, but none gave
> a clue to do that.
> Please tell me, I'm a newbie here..:)
> I'd be very grateful for any information.
> Thanks