Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Cannot import external jar file in Rational Software Developer Platform

 
Walter Chen
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
author
Saloon Keeper
Posts: 4014
18
Eclipse IDE Flex Google Web Toolkit
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic