The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
November 2001



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.


Problem in importing user defined packages

Posted by Manish Sachdev on November 20, 2001 at 1:31 AM

i am facing a problem in importing my user-defined packages. My directory structure is as follows:-

|------pkg1 (contains SUPERCLASS)
root --
|------pkg2 (contains SUBCLASS which extends SUPERCLASS in pkg1)

Now i want to run SUBCLASS being in directory or package "pkg2"

please tell me

1) What classpath i should set?
2) Tell me the Package statements for both the classes
3) Also tell me the commands to run subclass being in pkg2


Sponsored Links

Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us