Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Cannot compile source with DOMParser in Eclipse
Cannot compile source with DOMParser in Eclipse [message #108062] Mon, 20 October 2003 22:15 Go to next message
Eclipse UserFriend
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] Mon, 20 October 2003 22:44 Go to previous messageGo to next message
Eclipse UserFriend
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 14:23 Go to previous messageGo to next message
Eclipse UserFriend
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 14:28 Go to previous message
Eclipse UserFriend
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 Jul 09 07:26:17 EDT 2025

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

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

Back to the top