Please help! - .jar added to build path but noClassDefFoundError [message #1442166] |
Fri, 10 October 2014 14:17  |
Eclipse User |
|
|
|
I was so close to getting this working....!!
OK, I built some code that worked in a basic Java project, and added some .jars for doing http connections (using the Apache httpClient libraries). Tested and worked.
I created a fresh RCP project and dragged over all my source. I tried to drag over the .jars (which failed) so I re-added them (using this tutotial http://www.wikihow.com/Add-JARs-to-Project-Build-Paths-in-Eclipse-(Java))
Now the RCP builds and runs alright, but when I click the button that executes my code, I get a NoClassDefFound error as shown below.
Does anyone have any idea what I can do to fix this? I feel like I've tried everything!
Many thanks
Matt
[...error stuff]
!ENTRY org.eclipse.e4.ui.workbench 4 0 2014-10-10 19:15:25.135
!MESSAGE Internal Error
!STACK 0
org.eclipse.e4.core.di.InjectionException: java.lang.NoClassDefFoundError: org/apache/http/client/methods/HttpUriRequest
at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:62)
[...more error stuff]
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04783 seconds