『出錯』在eclipse3.0下用ant來build一個使用了swt的工程失敗

redlly發表於2004-12-16
軟體環境:
windowsXP/jdk1,4/eclipse3.0/swt

配置檔案:
<project default="package" basedir="." name="u2um"> 
<description>u2um</description> 
<target name="init"> 
<tstamp /> 
<property name="Name" value="U2UM" /> 
<property name="name" value="u2um" /> 
<property name="version" value="0.10" /> 
<property name="version.impl" value="${version}" /> 
<property name="version.spec" value="0.10" /> 
<property name="year" value="2004" /> 

<echo message="----------- ${Name} ${version} ------------" /> 

<property name="src.dir" location="./src" /> 
<property name="dist.dir" location="./dist" /> 
<property name="classes.dir" location="./classes" /> 
<property name="lib.dir" location="./lib" /> 
<property name="docs.dir" location="./docs" /> 
<property name="packages" value="org.rt.*" /> 

<property name="build.dir" value="./build" /> 
<property name="build.src" value="./build/src" /> 
<property name="build.dest" value="./build/classes" /> 
<property name="build.docs" value="./build/docs" /> 

<property name="dist.root" value="./dist" /> 
<property name="dist.dir" value="${dist.root}/${name}-${version}" /> 

<property name="package.dir" value="./package" /> 

<filter token="year" value="${year}" /> 
<filter token="version" value="${version}" /> 
<filter token="date" value="${TODAY}" /> 
<filter token="log" value="true" /> 
<filter token="verbose" value="true" /> 

<!-- Default JAR libraries --> 
<property name="jdom.jar" value="${lib.dir}/jdom.jar" /> 
<property name="swt.jar" value="${lib.dir}/swt.jar" /> 
<property name="jfacetext.jar" value="${lib.dir}/jfacetext.jar" /> 
<property name="jface.jar" value="${lib.dir}/jface.jar" /> 
<property name="designer_jdt.jar" value="${lib.dir}/designer_jdt.jar" /> 

<!-- Compilation class path --> 
<path id="compile.class.path"> 
<pathelement location="${jdom.jar}" /> 
<pathelement location="${swt.jar}" /> 
<pathelement location="${jfacetext.jar}" /> 
<pathelement location="${jface.jar}" /> 
<pathelement location="${designer_jdt.jar}" /> 

<!-- We used to include the CLASSPATH environment variable in 
compilation path as it might contain the path to the JDK 1.1 
collections. That's not needed anymore. We'll keep it here 
in case there's a future need to include the CLASSPATH. 
<pathelement path="${java.class.path}" /> 
--> 
</path> 

<path id="run.class.path"> 
<path refid="compile.class.path" /> 
</path> 
</target> 

<!-- =================================================================== --> 
<!-- Help on usage --> 
<!-- =================================================================== --> 
<target name="usage"> 
<echo message="" /> 
<echo message="" /> 
<echo message="U2UM Build file" /> 
<echo message="-------------------------------------------------------------" /> 
<echo message="" /> 
<echo message=" available targets are:" /> 
<echo message="" /> 
<echo message=" package --> generates the jdom.jar file (default)" /> 
<echo message=" compile --> compiles the source code" /> 
<echo message=" javadoc --> generates the API documentation" /> 
<echo message=" clean --> cleans up the directory" /> 
<echo message="" /> 
<echo message=" See the comments inside the build.xml file for more details." /> 
<echo message="-------------------------------------------------------------" /> 
<echo message="" /> 
<echo message="" /> 
</target> 

<!-- =================================================================== --> 
<!-- Prepares the build directory --> 
<!-- =================================================================== --> 
<target name="prepare" depends="init"> 
<mkdir dir="${build.dir}" /> 
<mkdir dir="${build.docs}" /> 
</target> 

<!-- =================================================================== --> 
<!-- Prepares the source code --> 
<!-- =================================================================== --> 
<target name="prepare-src" depends="prepare"> 
<!-- create directories --> 
<mkdir dir="${build.src}" /> 
<mkdir dir="${build.dest}" /> 

<!-- copy src files --> 
<copy todir="${build.src}" filtering="yes"> 
<fileset dir="${src.dir}" /> 
</copy> 
</target> 

<!-- =================================================================== --> 
<!-- Compiles the source directory --> 
<!-- =================================================================== --> 
<target name="compile" depends="prepare-src" description="Compiles the source code"> 
<javac srcdir="${build.src}" destdir="${build.dest}"> 
<classpath refid="compile.class.path" /> 
</javac> 
<target name="compile" depends="javac, jni" /> 
</target> 

<!-- =================================================================== --> 
<!-- Creates the class package --> 
<!-- =================================================================== --> 
<target name="package" depends="compile" description="Creates the class package"> 
<fixcrlf srcdir="." includes="**/*.bat" excludes="build*.*" eol="crlf" /> 
<fixcrlf srcdir="." includes="**/*.sh" excludes="build*.*" eol="lf" /> 

<!-- Filters defined specifically for updating the manifest --> 
<filter token="version.spec" value="${version.spec}" /> 
<filter token="version.impl" value="${version.impl}" /> 
<copy todir="${build.dest}/META-INF" filtering="yes"> 
<fileset dir="${package.dir}/META-INF" /> 
</copy> 
<jar jarfile="${build.dir}/${name}.jar" basedir="${build.dest}" excludes="META-INF/MANIFEST.MF" manifest="${build.dest}/META-INF/MANIFEST.MF" /> 
</target> 

<!-- =================================================================== --> 
<!-- Creates the API documentation --> 
<!-- =================================================================== --> 
<target name="javadoc" depends="prepare-src" description="Creates the API documentation"> 
<mkdir dir="${build.docs}" /> 
<javadoc packagenames="${packages}" sourcepath="${build.src}" destdir="${build.docs}" author="true" version="true" use="true" splitindex="true" noindex="false" windowtitle="${Name} v${version}" doctitle="${Name} v${version}&br&API Specification" header="&b&${Name}&br&&font size='-1'&${version}&/font&&/b&" bottom="Copyright &copy; ${year} Deng Ye. All Rights Reserved."> 
<classpath refid="run.class.path" /> 
</javadoc> 
</target> 

<!-- =================================================================== --> 
<!-- Creates the API documentation, with links to JDK 1.4 classes --> 
<!-- We can use linkoffline with a newer Ant and avoid this target --> 
<!-- =================================================================== --> 
<target name="javadoc-link" depends="prepare-src" description="Creates the API documentation with links to JDK 1.4 classes"> 
<mkdir dir="${build.docs}" /> 
<javadoc packagenames="${packages}" sourcepath="${build.src}" destdir="${build.docs}" author="true" version="true" use="true" splitindex="true" noindex="false" windowtitle="${Name} v${version}" doctitle="${Name} v${version}&br&API Specification" header="&b&${Name}&br&&font size='-1'&${version}&/font&&/b&" bottom="Copyright &copy; ${year} Dengn Ye. All Rights Reserved."> 
<classpath refid="run.class.path" /> 

<link href="http://java.sun.com/j2se/1.4/docs/api" /> 
</javadoc> 
</target> 

<!-- =================================================================== --> 
<!-- Clean targets --> 
<!-- =================================================================== --> 
<target name="clean" depends="init" description="Removes build files"> 
<delete dir="${build.dir}" /> 
</target> 

<target name="distclean" depends="clean" description="Removes the dist files"> 
<delete dir="${dist.root}" /> 
<delete file="${Name}-${version}.zip" /> 
</target> 
</project>

錯誤提示資訊:
Buildfile: E:\eclipse-SDK-3.0-win32\eclipse\workspace\RT-U2UM-UI\build.xml
init:

[echo] ----------- U2UM 0.10 ------------
prepare:
prepare-src:

[copy] Copying 69 files to E:\eclipse-SDK-3.0-win32\eclipse\workspace\RT-U2UM-UI\build\src
compile:

[javac] Compiling 29 source files to E:\eclipse-SDK-3.0-win32\eclipse\workspace\RT-U2UM-UI\build\classes

[javac] E:\eclipse-SDK-3.0-win32\eclipse\workspace\RT-U2UM-UI\build\src\org\rt\ui\Frame.java:269: reference to UseCase is ambiguous, both class org.rt.utility.UseCase in org.rt.utility and class org.rt.modelelement.UseCase in org.rt.modelelement match

[javac] UseCase uc = (UseCase) table_1

[javac] ^

[javac] E:\eclipse-SDK-3.0-win32\eclipse\workspace\RT-U2UM-UI\build\src\org\rt\ui\Frame.java:269: reference to UseCase is ambiguous, both class org.rt.utility.UseCase in org.rt.utility and class org.rt.modelelement.UseCase in org.rt.modelelement match

[javac] UseCase uc = (UseCase) table_1

[javac] ^

[javac] E:\eclipse-SDK-3.0-win32\eclipse\workspace\RT-U2UM-UI\build\src\org\rt\ui\Frame.java:276: reference to Precondition is ambiguous, both class org.rt.utility.Precondition in org.rt.utility and class org.rt.modelelement.Precondition in org.rt.modelelement match

[javac] Precondition p = (Precondition) ti[0]

[javac] ^

[javac] E:\eclipse-SDK-3.0-win32\eclipse\workspace\RT-U2UM-UI\build\src\org\rt\ui\Frame.java:276: reference to Precondition is ambiguous, both class org.rt.utility.Precondition in org.rt.utility and class org.rt.modelelement.Precondition in org.rt.modelelement match

[javac] Precondition p = (Precondition) ti[0]

[javac] ^

[javac] E:\eclipse-SDK-3.0-win32\eclipse\workspace\RT-U2UM-UI\build\src\org\rt\ui\Frame.java:279: editPrecondition(org.eclipse.swt.widgets.Shell,org.rt.modelelement.Precondition) in org.rt.ui.FrameOperation cannot be applied to (org.eclipse.swt.widgets.Shell,org.rt.utility.Precondition)

[javac] .editPrecondition(

[javac] ^

[javac] E:\eclipse-SDK-3.0-win32\eclipse\workspace\RT-U2UM-UI\build\src\org\rt\ui\Frame.java:311: reference to UseCase is ambiguous, both class org.rt.utility.UseCase in org.rt.utility and class org.rt.modelelement.UseCase in org.rt.modelelement match

[javac] UseCase uc = (UseCase) table_1

[javac] ^

[javac] E:\eclipse-SDK-3.0-win32\eclipse\workspace\RT-U2UM-UI\build\src\org\rt\ui\Frame.java:311: reference to UseCase is ambiguous, both class org.rt.utility.UseCase in org.rt.utility and class org.rt.modelelement.UseCase in org.rt.modelelement match

[javac] UseCase uc = (UseCase) table_1

[javac] ^

[javac] E:\eclipse-SDK-3.0-win32\eclipse\workspace\RT-U2UM-UI\build\src\org\rt\ui\Frame.java:315: addPrecondition(org.eclipse.swt.widgets.Shell,org.rt.modelelement.UseCase) in org.rt.ui.FrameOperation cannot be applied to (org.eclipse.swt.widgets.Shell,org.rt.utility.UseCase)

[javac] .addPrecondition(

[javac] ^

[javac] E:\eclipse-SDK-3.0-win32\eclipse\workspace\RT-U2UM-UI\build\src\org\rt\ui\Frame.java:335: reference to UseCase is ambiguous, both class org.rt.utility.UseCase in org.rt.utility and class org.rt.modelelement.UseCase in org.rt.modelelement match

[javac] UseCase uc = (UseCase) table_1

[javac] ^

[javac] E:\eclipse-SDK-3.0-win32\eclipse\workspace\RT-U2UM-UI\build\src\org\rt\ui\Frame.java:335: reference to UseCase is ambiguous, both class org.rt.utility.UseCase in org.rt.utility and class org.rt.modelelement.UseCase in org.rt.modelelement match

[javac] UseCase uc = (UseCase) table_1

[javac] ^

[javac] E:\eclipse-SDK-3.0-win32\eclipse\workspace\RT-U2UM-UI\build\src\org\rt\ui\Frame.java:342: reference to Precondition is ambiguous, both class org.rt.utility.Precondition in org.rt.utility and class org.rt.modelelement.Precondition in org.rt.modelelement match

[javac] Precondition p = (Precondition) ti[0]

[javac] ^

[javac] E:\eclipse-SDK-3.0-win32\eclipse\workspace\RT-U2UM-UI\build\src\org\rt\ui\Frame.java:342: reference to Precondition is ambiguous, both class org.rt.utility.Precondition in org.rt.utility and class org.rt.modelelement.Precondition in org.rt.modelelement match

[javac] Precondition p = (Precondition) ti[0]

[javac] ^

[javac] E:\eclipse-SDK-3.0-win32\eclipse\workspace\RT-U2UM-UI\build\src\org\rt\ui\Frame.java:345: editPrecondition(org.eclipse.swt.widgets.Shell,org.rt.modelelement.Precondition) in org.rt.ui.FrameOperation cannot be applied to (org.eclipse.swt.widgets.Shell,org.rt.utility.Precondition)

[javac] .editPrecondition(

[javac] ^

[javac] E:\eclipse-SDK-3.0-win32\eclipse\workspace\RT-U2UM-UI\build\src\org\rt\ui\Frame.java:367: reference to UseCase is ambiguous, both class org.rt.utility.UseCase in org.rt.utility and class org.rt.modelelement.UseCase in org.rt.modelelement match

[javac] UseCase uc = (UseCase) table_1

[javac] ^

[javac] E:\eclipse-SDK-3.0-win32\eclipse\workspace\RT-U2UM-UI\build\src\org\rt\ui\Frame.java:367: reference to UseCase is ambiguous, both class org.rt.utility.UseCase in org.rt.utility and class org.rt.modelelement.UseCase in org.rt.modelelement match

[javac] UseCase uc = (UseCase) table_1

[javac] ^

[javac] E:\eclipse-SDK-3.0-win32\eclipse\workspace\RT-U2UM-UI\build\src\org\rt\ui\Frame.java:374: reference to Precondition is ambiguous, both class org.rt.utility.Precondition in org.rt.utility and class org.rt.modelelement.Precondition in org.rt.modelelement match

[javac] Precondition p = (Precondition) ti[0]

[javac] ^

[javac] E:\eclipse-SDK-3.0-win32\eclipse\workspace\RT-U2UM-UI\build\src\org\rt\ui\Frame.java:374: reference to Precondition is ambiguous, both class org.rt.utility.Precondition in org.rt.utility and class org.rt.modelelement.Precondition in org.rt.modelelement match

[javac] Precondition p = (Precondition) ti[0]

[javac] ^

[javac] E:\eclipse-SDK-3.0-win32\eclipse\workspace\RT-U2UM-UI\build\src\org\rt\ui\Frame.java:377: deletePrecondition(org.rt.modelelement.Precondition) in org.rt.ui.FrameOperation cannot be applied to (org.rt.utility.Precondition)

[javac] .deletePrecondition(p);

[javac] ^

[javac] E:\eclipse-SDK-3.0-win32\eclipse\workspace\RT-U2UM-UI\build\src\org\rt\ui\Frame.java:454: reference to UseCase is ambiguous, both class org.rt.utility.UseCase in org.rt.utility and class org.rt.modelelement.UseCase in org.rt.modelelement match

[javac] UseCase uc = (UseCase) table_2

[javac] ^

[javac] E:\eclipse-SDK-3.0-win32\eclipse\workspace\RT-U2UM-UI\build\src\org\rt\ui\Frame.java:454: reference to UseCase is ambiguous, both class org.rt.utility.UseCase in org.rt.utility and class org.rt.modelelement.UseCase in org.rt.modelelement match

[javac] UseCase uc = (UseCase) table_2

[javac] ^

[javac] E:\eclipse-SDK-3.0-win32\eclipse\workspace\RT-U2UM-UI\build\src\org\rt\ui\Frame.java:475: reference to UseCase is ambiguous, both class org.rt.utility.UseCase in org.rt.utility and class org.rt.modelelement.UseCase in org.rt.modelelement match

[javac] UseCase uc = (UseCase) table_2

[javac] ^

[javac] E:\eclipse-SDK-3.0-win32\eclipse\workspace\RT-U2UM-UI\build\src\org\rt\ui\Frame.java:475: reference to UseCase is ambiguous, both class org.rt.utility.UseCase in org.rt.utility and class org.rt.modelelement.UseCase in org.rt.modelelement match

[javac] UseCase uc = (UseCase) table_2

[javac] ^

[javac] E:\eclipse-SDK-3.0-win32\eclipse\workspace\RT-U2UM-UI\build\src\org\rt\ui\Frame.java:499: reference to UseCase is ambiguous, both class org.rt.utility.UseCase in org.rt.utility and class org.rt.modelelement.UseCase in org.rt.modelelement match

[javac] UseCase uc = (UseCase) table_1

[javac] ^

[javac] E:\eclipse-SDK-3.0-win32\eclipse\workspace\RT-U2UM-UI\build\src\org\rt\ui\Frame.java:499: reference to UseCase is ambiguous, both class org.rt.utility.UseCase in org.rt.utility and class org.rt.modelelement.UseCase in org.rt.modelelement match

[javac] UseCase uc = (UseCase) table_1

[javac] ^

[javac] E:\eclipse-SDK-3.0-win32\eclipse\workspace\RT-U2UM-UI\build\src\org\rt\ui\Frame.java:781: reference to UseCase is ambiguous, both class org.rt.utility.UseCase in org.rt.utility and class org.rt.modelelement.UseCase in org.rt.modelelement match

[javac] UseCase uc = null;

[javac] ^

[javac] E:\eclipse-SDK-3.0-win32\eclipse\workspace\RT-U2UM-UI\build\src\org\rt\ui\Frame.java:787: reference to UseCase is ambiguous, both class org.rt.utility.UseCase in org.rt.utility and class org.rt.modelelement.UseCase in org.rt.modelelement match

[javac] uc = (UseCase) ti.getData("element");

[javac] ^

[javac] E:\eclipse-SDK-3.0-win32\eclipse\workspace\RT-U2UM-UI\build\src\org\rt\ui\Frame.java:800: reference to UseCase is ambiguous, both class org.rt.utility.UseCase in org.rt.utility and class org.rt.modelelement.UseCase in org.rt.modelelement match

[javac] uc = (UseCase) (ti.getParentItem().getData("element"));

[javac] ^

[javac] E:\eclipse-SDK-3.0-win32\eclipse\workspace\RT-U2UM-UI\build\src\org\rt\ui\Frame.java:812: reference to Scenario is ambiguous, both class org.rt.utility.Scenario in org.rt.utility and class org.rt.modelelement.Scenario in org.rt.modelelement match

[javac] Scenario s = null;

[javac] ^

[javac] E:\eclipse-SDK-3.0-win32\eclipse\workspace\RT-U2UM-UI\build\src\org\rt\ui\Frame.java:815: reference to Scenario is ambiguous, both class org.rt.utility.Scenario in org.rt.utility and class org.rt.modelelement.Scenario in org.rt.modelelement match

[javac] s = (Scenario) tempti.getData();

[javac] ^

[javac] E:\eclipse-SDK-3.0-win32\eclipse\workspace\RT-U2UM-UI\build\src\org\rt\ui\Frame.java:824: reference to Scenario is ambiguous, both class org.rt.utility.Scenario in org.rt.utility and class org.rt.modelelement.Scenario in org.rt.modelelement match

[javac] Scenario scn = (Scenario) ti.getData("element");

[javac] ^

[javac] E:\eclipse-SDK-3.0-win32\eclipse\workspace\RT-U2UM-UI\build\src\org\rt\ui\Frame.java:824: reference to Scenario is ambiguous, both class org.rt.utility.Scenario in org.rt.utility and class org.rt.modelelement.Scenario in org.rt.modelelement match

[javac] Scenario scn = (Scenario) ti.getData("element");

[javac] ^

[javac] E:\eclipse-SDK-3.0-win32\eclipse\workspace\RT-U2UM-UI\build\src\org\rt\ui\Frame.java:830: reference to UseCase is ambiguous, both class org.rt.utility.UseCase in org.rt.utility and class org.rt.modelelement.UseCase in org.rt.modelelement match

[javac] uc = (UseCase) (ti.getParentItem().getParentItem()

[javac] ^

[javac] E:\eclipse-SDK-3.0-win32\eclipse\workspace\RT-U2UM-UI\build\src\org\rt\ui\Frame.java:840: reference to Scenario is ambiguous, both class org.rt.utility.Scenario in org.rt.utility and class org.rt.modelelement.Scenario in org.rt.modelelement match

[javac] Scenario scn = (Scenario) ti.getParentItem().getData("element");

[javac] ^

[javac] E:\eclipse-SDK-3.0-win32\eclipse\workspace\RT-U2UM-UI\build\src\org\rt\ui\Frame.java:840: reference to Scenario is ambiguous, both class org.rt.utility.Scenario in org.rt.utility and class org.rt.modelelement.Scenario in org.rt.modelelement match

[javac] Scenario scn = (Scenario) ti.getParentItem().getData("element");

[javac] ^

[javac] E:\eclipse-SDK-3.0-win32\eclipse\workspace\RT-U2UM-UI\build\src\org\rt\ui\Frame.java:848: reference to Message is ambiguous, both class org.rt.utility.Message in org.rt.utility and class org.rt.modelelement.Message in org.rt.modelelement match

[javac] Message m = null;

[javac] ^

[javac] E:\eclipse-SDK-3.0-win32\eclipse\workspace\RT-U2UM-UI\build\src\org\rt\ui\Frame.java:851: reference to Message is ambiguous, both class org.rt.utility.Message in org.rt.utility and class org.rt.modelelement.Message in org.rt.modelelement match

[javac] m = (Message) tempti.getData();

[javac] ^

[javac] E:\eclipse-SDK-3.0-win32\eclipse\workspace\RT-U2UM-UI\build\src\org\rt\ui\Frame.java:860: reference to Scenario is ambiguous, both class org.rt.utility.Scenario in org.rt.utility and class org.rt.modelelement.Scenario in org.rt.modelelement match

[javac] Scenario s = null;

[javac] ^

[javac] E:\eclipse-SDK-3.0-win32\eclipse\workspace\RT-U2UM-UI\build\src\org\rt\ui\Frame.java:863: reference to Scenario is ambiguous, both class org.rt.utility.Scenario in org.rt.utility and class org.rt.modelelement.Scenario in org.rt.modelelement match

[javac] s = (Scenario) tempti.getData();

[javac] ^

[javac] E:\eclipse-SDK-3.0-win32\eclipse\workspace\RT-U2UM-UI\build\src\org\rt\ui\Frame.java:878: reference to UMLModel is ambiguous, both class org.rt.utility.UMLModel in org.rt.utility and class org.rt.modelelement.UMLModel in org.rt.modelelement match

[javac] UMLModel umlmod = new UMLModel(modelElement);

[javac] ^

[javac] E:\eclipse-SDK-3.0-win32\eclipse\workspace\RT-U2UM-UI\build\src\org\rt\ui\Frame.java:878: reference to UMLModel is ambiguous, both class org.rt.utility.UMLModel in org.rt.utility and class org.rt.modelelement.UMLModel in org.rt.modelelement match

[javac] UMLModel umlmod = new UMLModel(modelElement);

[javac] ^

[javac] E:\eclipse-SDK-3.0-win32\eclipse\workspace\RT-U2UM-UI\build\src\org\rt\ui\Frame.java:879: cannot resolve symbol

[javac] symbol : method getRelations ()

[javac] location: class org.rt.utility.UMLModel

[javac] UCExecRelations rels = umlmod.getRelations();

[javac] ^

[javac] E:\eclipse-SDK-3.0-win32\eclipse\workspace\RT-U2UM-UI\build\src\org\rt\ui\Frame.java:1018: reference to UMLModel is ambiguous, both class org.rt.utility.UMLModel in org.rt.utility and class org.rt.modelelement.UMLModel in org.rt.modelelement match

[javac] UMLModel umlmod = new UMLModel(modelElement);

[javac] ^

[javac] E:\eclipse-SDK-3.0-win32\eclipse\workspace\RT-U2UM-UI\build\src\org\rt\ui\Frame.java:1018: reference to UMLModel is ambiguous, both class org.rt.utility.UMLModel in org.rt.utility and class org.rt.modelelement.UMLModel in org.rt.modelelement match

[javac] UMLModel umlmod = new UMLModel(modelElement);

[javac] ^

[javac] E:\eclipse-SDK-3.0-win32\eclipse\workspace\RT-U2UM-UI\build\src\org\rt\ui\Frame.java:1019: cannot resolve symbol

[javac] symbol : method getRelations ()

[javac] location: class org.rt.utility.UMLModel

[javac] UCExecRelations rels = umlmod.getRelations();

[javac] ^

[javac] E:\eclipse-SDK-3.0-win32\eclipse\workspace\RT-U2UM-UI\build\src\org\rt\ui\Frame.java:1091: reference to UMLModel is ambiguous, both class org.rt.utility.UMLModel in org.rt.utility and class org.rt.modelelement.UMLModel in org.rt.modelelement match

[javac] UMLModel m = new UMLModel(modelElement);

[javac] ^

[javac] E:\eclipse-SDK-3.0-win32\eclipse\workspace\RT-U2UM-UI\build\src\org\rt\ui\Frame.java:1091: reference to UMLModel is ambiguous, both class org.rt.utility.UMLModel in org.rt.utility and class org.rt.modelelement.UMLModel in org.rt.modelelement match

[javac] UMLModel m = new UMLModel(modelElement);

[javac] ^

[javac] E:\eclipse-SDK-3.0-win32\eclipse\workspace\RT-U2UM-UI\build\src\org\rt\ui\Frame.java:1218: reference to UMLModel is ambiguous, both class org.rt.utility.UMLModel in org.rt.utility and class org.rt.modelelement.UMLModel in org.rt.modelelement match

[javac] ic.isConsistent(new UMLModel(modelElement), (UCExecRelations) table_4

[javac] ^

[javac] E:\eclipse-SDK-3.0-win32\eclipse\workspace\RT-U2UM-UI\build\src\org\rt\ui\Frame.java:1231: reference to UMLModel is ambiguous, both class org.rt.utility.UMLModel in org.rt.utility and class org.rt.modelelement.UMLModel in org.rt.modelelement match

[javac] boolean b=ic.isConsistent(new UMLModel(modelElement), (UCExecRelations) table_4.getData(),checkResultsTree);

[javac] ^

[javac] E:\eclipse-SDK-3.0-win32\eclipse\workspace\RT-U2UM-UI\build\src\org\rt\ui\Frame.java:1235: reference to UMLModel is ambiguous, both class org.rt.utility.UMLModel in org.rt.utility and class org.rt.modelelement.UMLModel in org.rt.modelelement match

[javac] um.UML2MC(new UMLModel(modelElement), (UCExecRelations) table_4

[javac] ^

[javac] E:\eclipse-SDK-3.0-win32\eclipse\workspace\RT-U2UM-UI\build\src\org\rt\ui\Frame.java:1235: UML2MC(org.rt.modelelement.UMLModel,org.rt.modelelement.UCExecRelations) in org.rt.modelelement.UsageModel cannot be applied to (org.rt.utility.UMLModel,org.rt.modelelement.UCExecRelations)

[javac] um.UML2MC(new UMLModel(modelElement), (UCExecRelations) table_4

[javac] ^

[javac] 50 errors
BUILD FAILED: E:\eclipse-SDK-3.0-win32\eclipse\workspace\RT-U2UM-UI\build.xml:113: Compile failed; see the compiler error output for details.
Total time: 6 seconds

我的分析何所作的嘗試:
我的工程在開發環境下可以良好執行,但我想用ant進行打包就報編譯錯,錯誤如上。我看到所有的錯誤都與swt有關,所以我想應該是找不到swt的動態連線庫。但是我上網查過資料,試過若干種方法,如:
1、修改環境變數path,包含swt的dll檔案目錄;
2、把swt-awt-win32-3062.dll、swt-win32-3062.dll複製到c:\windows\system32目錄下;
3、直接執行java Frame -Djava.libarary.path=d:\\eclipse\\plugin\\org.eclipse.swt.win32_3.0.0\\os\\win32\\x86

等等……都沒有用。
我想可能是我的build.xml寫的有問題,誰能指教一下,謝謝!

相關文章