Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

To import class

 
Rajesh Veluchamy
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using Jrun server. I have included basacAll.jar file, which contains com/portal/bas/PPooledConnectionClientServices.java and in my lib folder also i have com/portal/bas/PPooledConnectionClientServices.java




now according to the above code "PPooledConnectionClientServices" will use which one.


Thanks in advance
-Rajesh.v
 
Campbell Ritchie
Sheriff
Pie
Posts: 49733
69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
After the package declaration and before the "public class" bit:

import com.portal.bas.PPooledConnectionClientServices;//or correct spelling

You may need to use a -cp option when you run or compile the class. Go to this page and click the "java" and "javac" boxes for more information.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic