running XML script in a separate JRE: SAXParseException [message #114466] |
Fri, 22 August 2003 06:03  |
Eclipse User |
|
|
|
Originally posted by: liam_harpur.ie.ibm.com
Hello!
I have just started using Eclipse 3.0, I get an error when I try to run an
XML script - that indirectly kicks off another XML script in a separte JRE.
Here is the error (there is no detail in the '.log' file):
"Unable to load default ProjectHelper due to java.lang.NoClassDefFoundError:
org/xml/sax/SAXParseException"
FYI. I have set up the XML scripts as follows:
I run an XML script in a non-default JRE, that contains the following line:
<eclipse.incrementalBuild project="myproject" kind ="full"/>
This causes "myproject" to run an external builder, that causes another XML
script to run... hence I get the error.
Do you have any idea how to fix it? Is there a specific Java version I
should be using or should I be running the XML scripts in the background or
the fore ground?
Thanks in advance,
Liam.
|
|
|
Re: running XML script in a separate JRE: SAXParseException [message #114705 is a reply to message #114466] |
Fri, 22 August 2003 11:01  |
Eclipse User |
|
|
|
When you run Ant in a separate VM it needs to have the Xerces classes on the
runtime classpath...the exact opposite of when you run Ant in the same VM.
On the JRE tab for an Ant build, you can use the "Update" button to
correctly configure your classpath for the build in a separate VM
But you have bigger problems...if you run Ant in a separate VM you will not
have access to the Eclipse framework, classes or Eclipse tasks such as
eclipse.incrementalBuild from your Ant build. You will have to use the
javac task which has a notion of incremental...(checks whether the source
file is newer than the class file from my understanding).
Can you provide a explaination of the bigger picture of what you are trying
to achieve?
Thanks
Darins
"Liam Harpur" <liam_harpur@ie.ibm.com> wrote in message
news:bi4pq8$q0e$1@eclipse.org...
> Hello!
> I have just started using Eclipse 3.0, I get an error when I try to run an
> XML script - that indirectly kicks off another XML script in a separte
JRE.
> Here is the error (there is no detail in the '.log' file):
> "Unable to load default ProjectHelper due to
java.lang.NoClassDefFoundError:
> org/xml/sax/SAXParseException"
>
> FYI. I have set up the XML scripts as follows:
>
> I run an XML script in a non-default JRE, that contains the following
line:
>
> <eclipse.incrementalBuild project="myproject" kind ="full"/>
>
> This causes "myproject" to run an external builder, that causes another
XML
> script to run... hence I get the error.
>
> Do you have any idea how to fix it? Is there a specific Java version I
> should be using or should I be running the XML scripts in the background
or
> the fore ground?
>
> Thanks in advance,
>
> Liam.
>
>
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03618 seconds