|Re: Archive for required library in project cannot be read [message #1694882 is a reply to message #1694796]
||Fri, 08 May 2015 16:13
| Russell Bateman
Registered: July 2009
Location: Provo, Utah, USA
On 05/08/2015 06:41 AM, Marlene Miller wrote:|
> Would you please explain why I am getting the error below when adding a
> .jar to a project as a User Library?
> I have a Java class that will import classes that are in a .jar. The
> .jar and dll are provided by a third party (Hewlett Packard).
> 1. Select project Test1 in the Package Explorer window
> 2. Select Properties, Java Build Path, Libraries folder, Add External JARS
> 3. Click on tdmext.jar.
> Error: Archive for required library: 'C:<path>/tdmext.jar' in project
> 'Test1' cannot be read or is not a valid ZIP file.
> I believe tdmext.jar is valid because I can run the Java class from the
> Korn shell command line and include tdmext.jar in the classpath: java
> -classpath /home/xxx/java:/usr/tandem/javaexth11/lib/tdmext.jar Test
> I also believe tdmext.jar is valid because it is being used in production.
> It appears that the project knows the .jar is a User Library:
> Select project Test1, Build Path, Configure Build Path, Libraries tab
> JARS and class folders on the build path:
> tdmext.jar - C:\Users\xxx\Documents\library
What happens when, at the command line at C:<path>\, you do
$ jar tvf tdmext.jar?
Powered by FUDForum
. Page generated in 0.02545 seconds