File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Import Package

 
Jenson Irving
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello.

A co-worker of mine sent me an eclipse project. I am unable to fully compile the files because of a missing package. The project is a web application and I have already added the tomcat .jar which fixed a couple of issues. However, I have the files and folders for the package but am still having problems. I have been working on this for a couple of days now and cannot figure it out.

Thanks for reading.
 
Amit Ghorpade
Bartender
Posts: 2851
10
Fedora Firefox Browser Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jenny, Welcome to Javaranch
A co-worker of mine sent me an eclipse project. I am unable to fully compile the files because of a missing package. The project is a web application and I have already added the tomcat .jar which fixed a couple of issues. However, I have the files and folders for the package but am still having problems. I have been working on this for a couple of days now and cannot figure it out.


You have not mentioned the name and exact details of the missing package,
please provide one.
 
Jenson Irving
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the response.

The missing package is a custom one:

com.test.ldap


Thanks.
 
Raghavan Muthu
Ranch Hand
Posts: 3381
Mac MySQL Database Tomcat Server
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Jenny Itwaru:
[QB]Thanks for the response.

The missing package is a custom one:

com.test.ldap


Well, that looks like an user defined package where in the application developer had created some classes to use LDAP Authentication. Generally the core part of the classes go into the framework and they are exported as a JAR file -- as what you have mentioned as tomcat.jar.

You need to look at another JAR file which contains the classes you are making use and present of the 'com.test.ldap' package. Include that JAR file into your eclipse's project buildpath entry. It will not scold you and run smoothly
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic