Hi,

I've a Jython module that accesses Java Classes from JNIWrapper Jar file .
In my  STAX job I'm calling this Jython module and I expect it to call Java
class in turn.

Although Jython is called successfully, yet there is a problem accessing the
java classes.
The error I'm getting is :

java.lang.NoClassDefFoundError: java.lang.NoClassDefFoundError:
com/jniwrapper/Parameter


My code is as follows:

<!DOCTYPE stax SYSTEM "stax.dtd" >
<stax>

  <defaultcall function="StartHere"></defaultcall>

  <script>
    import sys
    sys.path.append("C:\\testing\\Desktop\\jniwrap-2.9.5.jar")
    sys.path.append("C:\\testing")

    #Now, import Jython Module
    from testPackage import *
    obj = LoadSigGen()
    obj.createObject()
    machine  = 'machine1'
    testList = [ [ 'notepad1', 'C:/Windows/system32/notepad.exe' ],
                 [ 'notepad2', 'C:/Windows/system32/notepad.exe' ],
                 [ 'notepad3', 'C:/Windows/system32/notepad.exe' ] ]

  </script>

  <function name="StartHere">
    <iterate var="test" in="testList">
      <sequence>

        <process name="test[0]">
          <location>'local'</location>
          <command>test[1]</command>
        </process>

        <if expr="RC == 0">
          <message log="1">'Test %s passed' % test[0]</message>

          <else>
            <message log="1">'Test %s failed with RC=%s' % (test[0],
RC)</message>
          </else>
        </if>

      </sequence>
    </iterate>
  </function>

</stax>


Please suggest what is that I'm missing.

Thanks and regards,
Rajat
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

Reply via email to