Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Project is missing required library

 
Michele Smith
Ranch Hand
Posts: 421
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 344
Java Linux Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 421
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4181
22
IntelliJ IDE Java Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).
 
Sachin Pachari
Ranch Hand
Posts: 56
Eclipse IDE Netbeans IDE Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 421
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what?
 
Peter Johnson
author
Bartender
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Michele Smith
Ranch Hand
Posts: 421
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 421
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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,
missingjars.jpg
[Thumbnail for missingjars.jpg]
Missing Jars Screenshot from Eclipse View
 
William P O'Sullivan
Ranch Hand
Posts: 859
Chrome IBM DB2 Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 421
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 421
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic