Skip to main content



      Home
Home » Newcomers » Newcomers » Plug class not found during build
Plug class not found during build [message #246561] Wed, 23 January 2008 12:56 Go to next message
Eclipse UserFriend
I am a developer that is new to the eclipse IDE (version 3.3.1) and have
downloaded some tutorials to learn more about struts and eclipse. I am
receiving the following error:
The project was not built since its build path is incomplete. Cannot find
the class file for javax.servlet.http.HttpServletRequest. Fix the build
path then try building this project
and:
The project was not built since its build path is incomplete. Cannot find
the class file for junit.framework.TestCase. Fix the build path then try
building this project
The plugins are installed (with the WTP 2.0.1) and is displayed in the
list of plugins through the Help>About Elcipse option.
I have tried opening the project using the -clean parameter as well as
cleaning the project before and after the eclipse restart.
Am I missing something in the configuration of the build path? My jre and
jdk are installed, and the jre system library seems to be fine. I have
set the compiler compliance level to 6.0 and the project facets to 6.0. (I
had another problem with that, but figured it out.)
Why is it not finding the classes when I try to build?

Thank you,
Chriss
Re: Plug class not found during build [message #246652 is a reply to message #246561] Thu, 24 January 2008 03:27 Go to previous messageGo to next message
Eclipse UserFriend
Hi Chriss,

Using WTP and the provided wizard you can create different projects.

Lets say a - Dynamic Web Project.

On the first page of the wizard you can specify the "Target Runtime" and
if you do not have one there is a button "New" on the same page.

Have you specified the "Target Runtime" for your project? The target
runtime is generally the application server and its libraries (JBoss,
Tomcat, a proprietary server). The runtime will contain the
javax.servlet.http.HttpServletRequest class.

You can also configure the installed "Target Runtimes" from
Window->Preferences->Server->Installed Runtimes.

> Cannot
> find the class file for junit.framework.TestCase. Fix the build path
> then try building this project

Is the junit library on your build path? You can check this from project
context menu->Build Path->Configure Build Path->Libraries.

If the junit.jar is not on the build path you can use the Add External
Jar... or Add Variable... buttons to add this jar to your build path.

Best Regards,
Kiril

Chriss wrote:
> I am a developer that is new to the eclipse IDE (version 3.3.1) and have
> downloaded some tutorials to learn more about struts and eclipse. I am
> receiving the following error:
> The project was not built since its build path is incomplete. Cannot
> find the class file for javax.servlet.http.HttpServletRequest. Fix the
> build path then try building this project
> and:
> The project was not built since its build path is incomplete. Cannot
> find the class file for junit.framework.TestCase. Fix the build path
> then try building this project
> The plugins are installed (with the WTP 2.0.1) and is displayed in the
> list of plugins through the Help>About Elcipse option.
> I have tried opening the project using the -clean parameter as well as
> cleaning the project before and after the eclipse restart.
> Am I missing something in the configuration of the build path? My jre
> and jdk are installed, and the jre system library seems to be fine. I
> have set the compiler compliance level to 6.0 and the project facets to
> 6.0. (I had another problem with that, but figured it out.)
> Why is it not finding the classes when I try to build?
>
> Thank you,
> Chriss
>
Re: Plug class not found during build [message #246780 is a reply to message #246561] Fri, 25 January 2008 07:11 Go to previous message
Eclipse UserFriend
Originally posted by: al_PUBLIC.gmx.de

On Wed, 23 Jan 2008 17:56:23 +0000 (UTC), chriss.nold@gmail.com
(Chriss) wrote:

> Cannot find
>the class file for javax.servlet.http.HttpServletRequest.

On a related topic: starting with Eclipse 3.3 the Equinox loader will
restrict loading of Java runtime classes to the java.* packages. Since
you are using javax.* you MUST declare it as a imported package in
your plugin to allow the classloader to load the classes from javax.*
(see http://www.mail-archive.com/equinox-dev@eclipse.org/msg00414 .html
or http://wiki.eclipse.org/index.php/Equinox_Boot_Delegation for
details)


Achim
Previous Topic:where to put LD_LIBRARY_PATH for my plugin?
Next Topic:How to fix Editor in EditorArea
Goto Forum:
  


Current Time: Mon Nov 03 09:37:16 EST 2025

Powered by FUDForum. Page generated in 0.09302 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top