logo       

enhydra with eclipse: msg#00061

java.enhydra.general

Subject: enhydra with eclipse

hi,

I have just tested eclipse 2.1 M4 with enhydra, but failed, anyone would
like to help?

My box: linux(debian/woody) + gnome1.4 + j2sdk1.4.1 from sun + eclipse
2.1M4 gtk version.

My steps are:

1 Create a new sample project with appwizard.
2 Create a simplle java project with Eclipse, I name it "EnhydraTest"
3 Import the sample project into EnhydraTest project
4 From window->prefereced->Ant->Runtime, replaced ant.jar and
options.jar with ones from enhydra distribution. So the classpath in
this tab page are:
ant.jar
options.jar
tools.jar
5 modified build.xml appwizard generated, add these to build.xml(just
after the defination of javac.classpath, about line 81):

<path id="class.path">
<fileset dir="${library.dir}" >
<include name="*.jar" />
</fileset>

<fileset dir="${library.dir}/build" >
<include name="*.jar" />
</fileset>

<fileset dir="${enhydra.root}/build" >
<include name="*.jar" />
</fileset>

<fileset dir="${dir.java}/lib" >
<include name="**/*.jar" />
</fileset>
</path>


<taskdef name="xmlc" classname="com.lutris.ant.taskdefs.Xmlc">
<classpath refid="class.path" />
</taskdef>
<taskdef name="dods" classname="com.lutris.ant.taskdefs.Dods">
<classpath refid="class.path" />
</taskdef>

Also, I have deleted taskdefs at line 34 and 35.

6 Then I run task clean first and then xmlc task, but failed, the error
message from eclipse console view:

[xmlc] Welcome.html --> WelcomeHTML.java
/home/linuxman/eclipse_workspace/EnhydraTest/classes/Generated
Source/test/presentation/WelcomeHTML.java:9: package org.enhydra.xml.dom
does not exist
import org.enhydra.xml.dom.DOMOps;
^
/home/linuxman/eclipse_workspace/EnhydraTest/classes/Generated
Source/test/presentation/WelcomeHTML.java:10: package
org.enhydra.xml.xmlc does not exist
import org.enhydra.xml.xmlc.XMLCError;
^
/home/linuxman/eclipse_workspace/EnhydraTest/classes/Generated
Source/test/presentation/WelcomeHTML.java:11: package
org.enhydra.xml.xmlc does not exist
import org.enhydra.xml.xmlc.XMLCUtil;
..........

And many many errors like these.

It seemed that ant can not find xmlc.jar, but the classpath have
included xmlc.jar in build.xml.

Any hints?

BTW, I remembered that with the help from Tobias, I have successfully
compile enhydra app with eclipse before, but failed this time, very strange!
Thanks in advance!

linuxman


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise