Hi, I use JBuilder to create a package then I create a class, easy as it sound.
Right now, I don't have Jbuilder, I am using a DOS Java compiler, how do I create java package?
Thanks.
Printable View
Hi, I use JBuilder to create a package then I create a class, easy as it sound.
Right now, I don't have Jbuilder, I am using a DOS Java compiler, how do I create java package?
Thanks.
Well a package is really nothing more than compiling your source files in a directory (make sure you refer to it in your class path) . The name of the directory will be the name of your package. And of course at the top of each file you will declare it to be in that package like so:
and then in your main classes you would import the packageCode:package directoryname;
Code:import directoryname.*;