Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

import a package

 
gaurav chaudhary
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Juanjo Bazan
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
import library.db.*;
or
import library.db.xyz;
should work if I understood your question.
 
gaurav chaudhary
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But my servlets are outside the db folder...
 
Thomas Hubschman
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic