I am using Ant 1.6.5.

The problem I am running into is that a wrong class is loaded.

I have IBM RAD installed on the system and it is using the class from
that directory tree.
I have setup my own classpath in the build.xml and it does not include
C:\IBM... entries.

So how can I prevent javac pick up C:\IBM... jar files below? 
NOTE: entries starting with z:\ are mine.

Thanks,
Robert


    [javac] [search path for class files:
[C:\IBM\SDP70\runtimes\base_v61\java\jre\lib\vm.jar,
C:\IBM\SDP70\runtimes\base_v61\java\jre\lib\core.jar,
C:\IBM\SDP70\runtimes\base_v61\java\jre\lib\charsets.jar,
C:\IBM\SDP70\runtimes\base_v61\java\jre\lib\graphics.jar,
C:\IBM\SDP70\runtimes\base_v61\java\jre\lib\security.jar,
C:\IBM\SDP70\runtimes\base_v61\java\jre\lib\ibmpkcs.jar,
C:\IBM\SDP70\runtimes\base_v61\java\jre\lib\ibmorb.jar,
C:\IBM\SDP70\runtimes\base_v61\java\jre\lib\ibmcfw.jar,
C:\IBM\SDP70\runtimes\base_v61\java\jre\lib\ibmorbapi.jar,
C:\IBM\SDP70\runtimes\base_v61\java\jre\lib\ibmjcefw.jar,
C:\IBM\SDP70\runtimes\base_v61\java\jre\lib\ibmjgssprovider.jar,
C:\IBM\SDP70\runtimes\base_v61\java\jre\lib\ibmjsseprovider2.jar,
C:\IBM\SDP70\runtimes\base_v61\java\jre\lib\ibmjaaslm.jar,
C:\IBM\SDP70\runtimes\base_v61\java\jre\lib\ibmjaasactivelm.jar,
C:\IBM\SDP70\runtimes\base_v61\java\jre\lib\ibmcertpathprovider.jar,
C:\IBM\SDP70\runtimes\base_v61\java\jre\lib\server.jar,
C:\IBM\SDP70\runtimes\base_v61\java\jre\lib\xml.jar,
Z:\fims_flex_server\BPMProductTierWeb\lib\antlr.jar,
Z:\fims_flex_server\BPMProductTierWeb\lib\aopalliance.jar,
Z:\fims_flex_server

Here is my compile target.
        
        <target name="compile">
                <mkdir dir="${classes.dir}" />
                <echo message="rad_runtime_root =
${rad_runtime_root}"></echo>
                <echo message="was61.plugin.lib.dir =
${was61.plugin.lib.dir}"></echo>
                <echo message="|-- compile classpath"/>
                <echo message="|   |"/>
                <echo message="|   |-- ${echo.path.compile}"/>
                <javac destdir="${classes.dir}" extdirs="${lib.dir}"
verbose="Yes" 
                         includeantruntime="false">
                        <classpath refid = "base.classpath" />
                        <src path="${basedir}/src" />

                </javac>

        </target>

My internal classpath:

        <path id="base.classpath">
            <!--pathelement path="${classpath}"/-->
                <fileset dir="${webinf.lib}">
                        <include name="**/*.jar" />
                        <include name="**/*.zip" />
                </fileset>
                <fileset dir="${was61.jre.lib.dir}">
                        <include name="**/*.jar" />
                </fileset>
                <fileset dir="${was61.lib.ext.dir}">
                        <include name="**/*.jar" />
                </fileset>
                <fileset dir="${was61.lib.dir}">
                        <include name="**/*.jar" />
                </fileset>
                <fileset dir="${was61.wmq.lib.dir}">
                        <include name="**/*.jar" />
                </fileset>
                <fileset dir="${was61.plugin.lib.dir}">
                        <include name="**/*.jar" />
                </fileset>
                <fileset dir="${BPMProductTierJar.dir}">
                        <include name="**/BPMProductTierJava.jar" />
                </fileset>
          </path>
        


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org

Reply via email to