aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes Project is missing required library Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Project is missing required library" Watch "Project is missing required library" New topic
Author

Project is missing required library

Michele Smith
Ranch Hand

Joined: Oct 27, 2010
Posts: 418
Hello I am missing just two (2) items in my Java Project Problems tab:

c:\Workspace\MMP\WebContent\Web-INF\lib\jni4net.j-0.8.6.0.jar
and
c:\Workspace\MMP\WebContent\Web-INF\lib\OfficeWriterBridge.j4n.jar

I have a problem, I cannot find that path, it does not show up as c:\Workspace it shows up only as

Documents and Settings\Workspace

etc

I am confused by this can anyone help me?

thanks,
Michele
Koen Aerts
Ranch Hand

Joined: Feb 07, 2012
Posts: 344

Can you do a Windows search for these 2 files and add them or copy them to your project? For instance search from C:\ for file jni4net.j-0.8.6.0.jar or even jni*jar. If it's nowhere on your workstation, then you'll need to find out where you can get it; for instance the jni4net project site is at http://jni4net.sourceforge.net/
Michele Smith
Ranch Hand

Joined: Oct 27, 2010
Posts: 418
I have them I just don't understand where I should put them now that I have them. Does that make sense? I cannot see a c:\workspace directory on my pc so I am confused by the error message on the Problems tab.
Thanks, Michele
Steve Luke
Bartender

Joined: Jan 28, 2003
Posts: 4181
    
  21

Ah, sounds like you need to look up how your IDE works, figure out the classpath it expects, and either set it to what you want (ie where your files actually are) or move your files to what the IDE expects (and that sounds like you might need to create the folder C:\Workspace).


Steve
Sachin Pachari
Ranch Hand

Joined: Jan 16, 2012
Posts: 56

just set the class path at your IDE by right clicking on the project its very simple,

If you dont use an IDE then you can just copy and paste them inside your WEB-INF/lib it will work,
Michele Smith
Ranch Hand

Joined: Oct 27, 2010
Posts: 418
what?
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5836
    
    7

Did you create a Dynamic Web App Project in Eclipse? If so, then place the two JAR files into the WebContent/WEB-INF/lib directory of your project. I suspect that would be at c:\Documents and Settings\Workspace\MMP\WebContent\WEB-INF\lib, based on the directory in your original post.

By the way, one of these days having a space in the path is going to bite you (scan the forums, you'll see lots of problems that were resolved by moving things out of Documents and Settings or out of Program Files). I highly recommend that you don't do anything in Documents and Settings. All of my projects are within a directory such as c:\opt\workspace.


JBoss In Action
Michele Smith
Ranch Hand

Joined: Oct 27, 2010
Posts: 418
thank you for the words of wisdom. I will try this and if it works I will close this post this morning.

Thanks again, Michele
Michele Smith
Ranch Hand

Joined: Oct 27, 2010
Posts: 418
can you review this screenshot?

I deleted Jakarta Tomcat and Installed Apache Tomcat 5.5

I am not sure why it is referencing Jakarta Tomcat .jars

Also I am not sure where to put the other last two jar files. I looked under Documents and Settings as you suggested, but there was no /lib folder.

Incidentally I am re-creating a project from an existing archived project, which has been cleaned of any .class files et al etc. This file sits in a folder on c:\

Using XP SP2 machine.

Thanks,



[Thumbnail for missingjars.jpg]

William P O'Sullivan
Ranch Hand

Joined: Mar 28, 2012
Posts: 859

Your project Java Build-Path still references them, even with the old name.

Also your MPP project refers to jars within MPP project itself.
If brand new and being rebuild, quite possible they are gone.

I would move non-internal jars, e.g: third-parties to either app-server/lib/{endorsed}
or use another stable folder.

Pat.
Michele Smith
Ranch Hand

Joined: Oct 27, 2010
Posts: 418
Your project Java Build-Path still references them, even with the old name.


What should I do about this? To remove the references, I mean?

Also your MPP project refers to jars within MPP project itself.
If brand new and being rebuild, quite possible they are gone.


What should I do about this?

I would move non-internal jars, e.g: third-parties to either app-server/lib/{endorsed}
or use another stable folder.


How can I tell, can you give me an example of a third party jar?
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5836
    
    7

To remove the Build Path references, go to the Build Path (right-click your project, select Properties, then click on Build Path in the list, and then choose the Libraries tab) and remove them.

A "third-party JAR" is any JAR file that you did not create.
Michele Smith
Ranch Hand

Joined: Oct 27, 2010
Posts: 418
Thanks I will try this and let cha know so we can close this request.

I thank you for telling me in such detail what to do.

Thanks again,
Michele
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Project is missing required library