Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Cannot compile source with DOMParser in Eclipse
Cannot compile source with DOMParser in Eclipse [message #108062] Tue, 21 October 2003 02:15 Go to next message
Macpherson is currently offline MacphersonFriend
Messages: 73
Registered: July 2009
Member
I have a project that compiles from ANT but running the compile task from
the ANT perspective in Eclipse fails.

compile:
[javac] Compiling 128 source files to \workspace\apps\tmp\class
[javac] C:\workspace\apps\framework\src\framework\Executive.java:13: package
org.apache.xerces.parsers does not exist
[javac] import org.apache.xerces.parsers.DOMParser;

Building the project in Eclipse generates this error:

"The project was not built due to 'Problems encountered while copying
resources.'. Fix the problem, then try refreshing this project and
rebuilding it since it may be inconsistent

I have included xercesImpl.jar as the library so DOMParser is definitely
there. Any idea on what the problem is?

TIA.
Re: Cannot compile source with DOMParser in Eclipse [message #108075 is a reply to message #108062] Tue, 21 October 2003 02:44 Go to previous messageGo to next message
Darin Swanson is currently offline Darin SwansonFriend
Messages: 2386
Registered: July 2009
Senior Member
Questions:
So you have an external tool builder that is triggered by a build?
Which build of Eclipse?
What is the Ant perspective?
Are you running the Ant build in the same VM as Eclipse? Which VM?
What VM is being used from the commandline?

Darins

"Rod Macpherson" <rmacpherson@verilet.com> wrote in message
news:bn24o3$h8p$1@eclipse.org...
> I have a project that compiles from ANT but running the compile task from
> the ANT perspective in Eclipse fails.
>
> compile:
> [javac] Compiling 128 source files to \workspace\apps\tmp\class
> [javac] C:\workspace\apps\framework\src\framework\Executive.java:13:
package
> org.apache.xerces.parsers does not exist
> [javac] import org.apache.xerces.parsers.DOMParser;
>
> Building the project in Eclipse generates this error:
>
> "The project was not built due to 'Problems encountered while copying
> resources.'. Fix the problem, then try refreshing this project and
> rebuilding it since it may be inconsistent
>
> I have included xercesImpl.jar as the library so DOMParser is definitely
> there. Any idea on what the problem is?
>
> TIA.
>
>
Re: Cannot compile source with DOMParser in Eclipse [message #108315 is a reply to message #108075] Tue, 21 October 2003 18:23 Go to previous messageGo to next message
Macpherson is currently offline MacphersonFriend
Messages: 73
Registered: July 2009
Member
I am using Eclipse 2.1.1 and Ant 1.5.1. My compile target works outside of
Eclipse but fails when you click "compile" (that is the target name) in the
Ant view window.
Re: Cannot compile source with DOMParser in Eclipse [message #108329 is a reply to message #108315] Tue, 21 October 2003 18:28 Go to previous message
Darin Swanson is currently offline Darin SwansonFriend
Messages: 2386
Registered: July 2009
Senior Member
You did not answer the VM questions.
Are you using the same VM for your builds from the commandline as for
running Eclipse?

Darins

"Rod Macpherson" <rmacpherson@verilet.com> wrote in message
news:bn3thr$85m$1@eclipse.org...
> I am using Eclipse 2.1.1 and Ant 1.5.1. My compile target works outside of
> Eclipse but fails when you click "compile" (that is the target name) in
the
> Ant view window.
>
>
Previous Topic:Passing values to standalone using JDT
Next Topic:JRE
Goto Forum:
  


Current Time: Wed Jan 15 10:45:52 GMT 2025

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

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

Back to the top