| Author |
Cannot import external jar file in Rational Software Developer Platform
|
Walter Chen
Greenhorn
Joined: Jan 10, 2003
Posts: 25
|
|
Hi, all: I have struggled with this for a while -- this is semmingly such a simple and common task, which is really frustrating. I have build a dynamic web project, I want to import an external jar file. I used Rational Software Developer Platform's utility to import the jar file, and I can see it right there in my project (under java resources). When I instantiate a class in this jar file, the context sensitive editor recognizes the class (it would auto-complete the statement, for example). So far so good. But, when I try to run the project, I got a javax.faces.el.EvaluationException: java.lang.NoClassDefFoundError. It sounds like the compiler is able to recognize the jar file, but it is not in the runtime classpath. I've struggled for a few hours now and could not get it to work, any ideas? Any help will be much appreciated. Thanks, Walter
|
 |
Scott Selikoff
Saloon Keeper
Joined: Oct 23, 2005
Posts: 3652
|
|
|
You have to set the runtime dependencies (manifest.mf) for the jar that wants to use the other jar. You can do this by right clicking on the jar that contains the code to be executed.
|
My Blog: Down Home Country Coding with Scott Selikoff
|
 |
 |
|
|
subject: Cannot import external jar file in Rational Software Developer Platform
|
|
|