Eclipse Java Build Path does not find jars when launch with eclipse Helios?

I you're using maven then mvn eclipse:eclipse will add in the jars.

Up vote 0 down vote favorite share g+ share fb share tw.

Hope you can help me out with this problem, I have a web apps(JSF 2.0) in eclipse helios, I have created a class that uses apache.commons. Validator because I need to validate a Url and some IPs addresses, everything compiles just find a launch it quite nicely but when it ccame the time to actually use the UrlValidator java.lang. NoClassDefFoundError: org/apache/commons/validator/UrlValidator at com.outboundfactory.bean.validator.UrlConverter.

GetAsObject(UrlConverter. Java:34) at com.icesoft.faces.renderkit. Dom_html_basic.BaseRenderer.

GetConvertedValue(BaseRenderer. Java:91) at javax.faces.component.UIInput. GetConvertedValue(UIInput.

Java:1023) at javax.faces.component.UIInput. Validate(UIInput. Java:953) So a workaround that I found is to put the jakarta-oro and the apache-commons-validator into tomcat libs directly but thats no a solution either.

Does anyone know if there is a special configuration to put the libs in Eclipse. Here is a shot of how I have configured it java eclipse jsf-2.0 tomcat7 java-libraries link|improve this question asked Jan 25 '11 at 15:13Necronet1,320523 72% accept rate.

Yes I try to add maven now it screw my project I better do it the old fashion way till have time to learn Maven! – Necronet Jan 25 '11 at 17:27 Maven is a good build system, but it takes time to learn properly and adding it at the last minute will probably not help. – Michael Shopsin Jan 25 '11 at 17:33.

You might try to add the external jars directly to the project build path instead of the general java build path. Right click on the project folder --> Build Path --> configure build path.

In a webapp, 3rd party JAR's needs to be placed in /WEB-INF/lib folder. No further actions needs to be take place. If it's a Dynamic Web Project, Eclipse will take care about them automagically.

Don't forget to undo the mess in build path. Remove the libraries you manually added there as external JARs from local disk file system while they belonged in /WEB-INF/lib folder.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions