This page contains an archived post to the Java Answers Forum made prior to February 25, 2002.
If you wish to participate in discussions, please visit the new
Artima Forums.
Message:
Reply
Posted by Nada on November 16, 2001 at 11:39 AM
Hi , to create package and imports in anther files do the following steps : 1. in every files in your package add the following : package name ; 2. in every file import package add : import name.* ; 3. create directry : c:/JavaPackage/myPackage/name/ in this directry put all your package java files 4.decide the class path so at run time the compiler back to this class path : class path c:/JavaPackage/myPackage/ goodluck Nada
Replies:
|