I tried following (using WSAD 5.1.2):
right-click my web app, select 'properties'
select 'Java Build Path' -> 'Add External Jars' - added utility jar
under ''Java Build Path' -> 'order and Export' -> selct the newly added jar so that it will be also exported.
It lets me do this only if I have "WebApp/WebContent/WEB-INF/classes" as default folder ( and doesn't allow me to change this default output folder to "WebApp/WebContent/WEB-INF/lib".
I do this with WebApp/WebContent/WEB-INF/classes as default folder. This removes all the compilation errors caused by referencing classes from the utility jar.
At this point, as a result, I see my jar in WebApp/java Resources/Libraries in Web perspective and
J2EE perspective, but directly under WebApp in Java perspective.
I did not set java jar dependencies mainly because, it did not pick up my jar as available dependent jar. (Actually it is logical as my
WebApp depends on utility jar, not other way round)
And I still have the java.lang.NoClassDefFoundError at runtime.
What am I missing?
Thanks for being so patient and responding.
P.Ingle
[ May 06, 2005: Message edited by: p Ingle ]