Archive for the ‘Eclipse’ Category

java.lang.NoClassDefFoundError when loading a class located in another project at Eclipse

It is useful to use classes that resides in another project in the Eclipse Workspace. In order to avoid java.lang.NoClassDefFoundError error, perform the following steps: Add the project that has the wanted classes to the Java Build Path Properties-> java build path -> projects ->add your project that contain wanted classes Check the added project […]

How to Build a RESTful Web Service with JAX-WS and Jersey on Eclipse

In order to build a RESTful API with Jersey on Eclipse, please use the following steps: Create new Eclipse Dynamic Web Project Open Eclipse, then File -> New -> Dynamic Web Project. Name it “TestProject”. Generating web.xml file Generate a web.xml file IN WebContent/WEB_INF by: Right click on the created project -> Java EE Tools […]