File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes import a package Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "import a package" Watch "import a package" New topic
Author

import a package

gaurav chaudhary
Ranch Hand

Joined: Jun 24, 2002
Posts: 64
In the weblogic server's subdirectories, In the classes folder, I have one folder named 'library'. In this I have my class files. There is a folder in the library named as db for connection pooling. Now, there is one class file named xyz in db which has classfiles whose package is defined as library.db. Now, what should i write in the class files in library folder to make an instance of xyz.
Thanks
gaurav


gaurav
Juanjo Bazan
Ranch Hand

Joined: Feb 04, 2002
Posts: 231
import library.db.*;
or
import library.db.xyz;
should work if I understood your question.
gaurav chaudhary
Ranch Hand

Joined: Jun 24, 2002
Posts: 64
No, actually the problem is I am already inside the library package and the files in db are saved as package library.db. So, the compiler is giving the error as bad fil desriptor
gaurav chaudhary
Ranch Hand

Joined: Jun 24, 2002
Posts: 64
But my servlets are outside the db folder...
Thomas Hubschman
Ranch Hand

Joined: Sep 25, 2002
Posts: 88
Gaurav,
I am a little unclear on what you trying to do. Are you trying to import class files for use in your servlet or something else?
I assume that the /lib directory is available to webapps deployed with WebSphere. If not include it under /WEB-INF/lib.
But I doubt that is the problem, perhaps if you restate the problem.


SCJP '02, SCWCD '02, SCJD '08, SCSNB '09, SCEA '10
 
 
subject: import a package