aspose file tools*
The moose likes Beginning Java and the fly likes Import Package Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Import Package" Watch "Import Package" New topic
Author

Import Package

Jenson Irving
Greenhorn

Joined: Feb 26, 2008
Posts: 6
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

Joined: Jun 06, 2007
Posts: 2716
    
    6

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.


SCJP, SCWCD.
|Asking Good Questions|
Jenson Irving
Greenhorn

Joined: Feb 26, 2008
Posts: 6
Thanks for the response.

The missing package is a custom one:

com.test.ldap


Thanks.
Raghavan Muthu
Ranch Hand

Joined: Apr 20, 2006
Posts: 3344

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


Everything has got its own deadline including one's EGO!
[CodeBarn] [Java Concepts-easily] [Corey's articles] [SCJP-SUN] [Servlet Examples] [Java Beginners FAQ] [Sun-Java Tutorials] [Java Coding Guidelines]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Import Package