[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.newcomer] user library problem

Project 1 consists of classes I want to structure as a library.  Each class 
is in "package X" and I produced a jar file that has a directory "X" with 
all the class files in that directory.

Project 2 is an application that needs to use the library.  I created a 
"lib" directory in that project and imported the library jar into it.  Then 
I right clicked on the imported jar, selected "build path" and selected "add 
to build path."  At that point all errors in source files in Project 2 that 
imported classes in package X cleared.

I then exported Project 2 to an application jar file.  The jar file has a 
lib directory with the jar from Project 1 in it.  There is a .classpath file 
with,
<classpathentry kind="lib" path="lib/X.jar"/>
and there is a manifest file that identifies the Main-Class.  Everything 
seems in order to me but when I execute the application I immediately get 
class not found exceptions for classes in the library.

I've built simpler projects before but use of a user library is new for me. 
Can someone identify the problem?

Luke