Menu

Sun SPOT preverify failure

AFME
2009-09-02
2013-03-03
  • Sree Aurovindh Viswanathan

    I am currently trying to incorporate AFME into Sun SPOT.As described in the documentation I have compiled agentplatform and design file and have produced two source files (With EmuPlatform)
    But when i build the file with jar-app i could get the following error messages.

    -do-preverify:
         [exec] Error preverifying class helloworld.HelloAct
         [exec]     java/lang/NoClassDefFoundError: com/agentfactory/cldc/Actuator
    Further I have added in afme3_3.jar to the classpath.

    Here is my ant script with which i have deployment  (Automatically generated Ant-Script ) for your kind perusal

    Thanks and Regards

    Sree Aurovindh
    Sun Certified Web Componenet Developer

    <project name="preverify">
       
        <target name="-pre-preverify"/>
       
        <target name="-make-preverify-directory">
            <mkdir dir="${preverify.dir}"/>
        </target>
       
        <target name="-unjar-utility-jar">
            <if>
                <available file="${-jar.name}"/>
                <then>
                    <unjar src="${-jar.name}" dest="${preverify.dir}" />
                </then>
            </if>
        </target>
       
        <target name="-unjar-utility-jars" if="utility.jars">
            <pathconvert property="utility.jar.list" pathsep=",">
                <path>
                    <pathelement path="${utility.jars}"/>
                </path>
            </pathconvert>
            <foreach target="-unjar-utility-jar" param="-jar.name" list="${utility.jar.list}" inheritall="true"/>
        </target>

        <target name="-do-preverify" depends="-make-preverify-directory, -unjar-utility-jars">
            <exec executable="${preverify.executable}" failonerror="true">
                <arg value="-d"/>
                <arg value="${preverify.dir}"/>
                <arg value="-classpath"/>
                <arg value="${sunspot.bootclasspath}${path.separator}${sunspot.classpath}${path.separator}${preverify.dir}"/>
                <arg value="${build.dir}"/>
            </exec>
        </target>

        <target name="-post-preverify"/>
    </project>

     
    • Sree Aurovindh Viswanathan

      I figured out that there was a problem with my ANT script and sorry for  this post.I figured out that we have to add utiltiy.jars="location of file" in build.properties.

      Thanks

       

Log in to post a comment.

Auth0 Logo