Torsten  and jorg:

first, I use mvn clean. and then
I use mvn package to get commons-javaflow-1.0-SNAPSHOT.jar.  the
pom.xml is from Javaflow SVN.

I  try to use it to rewrite my class files.  still , i got this
exception   java.lang.NoClassDefFoundError:
org/objectweb/asm/ClassVisitor.
I am wonder if JavaFlow can rewriting class file including Exception
and dynamic class loading?

here is the error information:

Buildfile: F:\jppfworkspace\application-template\build.xml
clean:
   [delete] Deleting directory F:\jppfworkspace\application-template\classes
init:
    [mkdir] Created dir: F:\jppfworkspace\application-template\classes
compile:
    [javac] F:\jppfworkspace\application-template\build.xml:69:
warning: 'includeantruntime' was not set, defaulting to
build.sysclasspath=last; set to false for repeatable builds
    [javac] Compiling 2 source files to
F:\jppfworkspace\application-template\classes
javaflow:

BUILD FAILED
F:\jppfworkspace\application-template\build.xml:89:
java.lang.NoClassDefFoundError: org/objectweb/asm/ClassVisitor

Total time: 5 seconds

Here is ant build file:
<project name='JPPF Application' basedir="." default="run">

        <!-- 
=========================================================================
-->
        <!--                          Property definitions
         -->
        <!-- 
=========================================================================
-->

        <property name="build.properties.file" 
value="${basedir}/build.properties"/>
    <property file="${build.properties.file}"/>
        <property name="lib.dir"    value="${basedir}/lib"/>
        <property name="config.dir"  value="${basedir}/config"/>
        <property name="classes.dir" value="${basedir}/classes"/>       
        <property name="src.dir"     value="${basedir}/src"/>

        <!-- 
=========================================================================
-->
        <!--                           Classpath definitions
         -->
        <!-- 
=========================================================================
-->

        <path id="project.classpath">
                <pathelement location="${config.dir}"/>
                <pathelement location="${classes.dir}"/>
                <fileset dir="${lib.dir}" includes="**/*.jar"/>
        </path>
        
        

        <!-- 
=========================================================================
-->
        <!--                                    Clean
         -->
        <!-- 
=========================================================================
-->

  <target name="clean">
    <delete dir="${classes.dir}" quiet="true"/>

  </target>

        <!-- 
=========================================================================
-->
        <!--                                    Init
         -->
        <!-- 
=========================================================================
-->
        
        <target name="init" description="Initialize ressources">
                <mkdir dir="${classes.dir}"/>
        </target>
        
        

        <!-- 
=========================================================================
-->
        <!--                                  Compile
         -->
        <!-- 
=========================================================================
-->

        <target name="compile" depends="clean, init">
                <javac srcdir="" destdir="${classes.dir}"
                        debug="on" deprecation="off" optimize="on"  
includes="**/*.java">
            <classpath refid="project.classpath"/>
            <compilerarg line="-Xlint:unchecked"/>
                        <src path="${src.dir}"/>
                </javac>                
   </target>

        <!-- 
=========================================================================
-->
        <!--                                  instrument
         -->
        <!-- 
=========================================================================
-->
        
        <taskdef name="javaflow"
classname="org.apache.commons.javaflow.ant.AntRewriteTask">
                                <classpath id = "project.class.path">
                                         <fileset dir = "lib">
                                              <include name = 
"**/commons-javaflow-1.0-SNAPSHOT.jar"/>
                                        </fileset>
                                </classpath>
        </taskdef>
        
        <target name="javaflow" depends="compile">
                <javaflow srcdir="classes" Destdir="classes">
                          <include name="**/*.class" />
                        </javaflow>
        </target>
                        

        <!-- 
=========================================================================
-->
        <!--                     Run the application
         -->
        <!-- 
=========================================================================
-->

        <target name="run" description="run the application" depends="javaflow">
                <java fork="yes" classname="${main.class}" 
classpathref="project.classpath">
                        <jvmarg value="-Djppf.config=jppf.properties"/>
                        <jvmarg 
value="-Djava.util.logging.config.file=config/logging.properties"/>
                        <jvmarg value="-Xmx64m"/>
                </java>
        </target>

</project>


Thanks

From Wayne





2011/6/9 Torsten Curdt <tcu...@vafer.org>:
>> I am not familiar with maven,it seems I cannot download
>> maven-idea-plugin. if I through proxy =A0access the internet. Do I need
>> to set my proxy?
>
> It seems like...
>
> http://maven.apache.org/guides/mini/guide-proxies.html
>
> cheers,
> Torsten
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
> For additional commands, e-mail: user-h...@commons.apache.org
>
>



-- 
..............................................
Graduate School of Global Information
and Telecommunication Studies
Waseda University
1-6-1 Nishi Waseda, Shinjuku-ku,
Tokyo169-8050, JAPAN.
..............................................
************************************************
早�R田大学大学院 国�H情�笸�科信研究科
中里研究室 博士�n程
王�Z(John Wayne)
E-mail:wangh...@fuji.waseda.jp
************************************************

Reply via email to