Using imported java classes in a pre-xlate class

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Using imported java classes in a pre-xlate class

  • Creator
    Topic
  • #48249
    Markus Houser
    Participant

      I have a java class that runs during pre xlate that translates a field and accesses an iSeries to get the new value.  The class works fine when the XLT testing tool is used to run it.  I get the error below when the class is run normally.  I am using the IBM Toolbox for Java to access the iSeries.  I tried the toolbox in C:, D: and in the java_uccs folder in the server folder and got the same error.  Is there a certain folder where the toolbox should be?  Thanks in advance.

      erroCode: java.lang.NoClassDefFoundError

      errorInfo:

      java.lang.NoClassDefFoundError: com/ibm/as400/access/AS400File

      at java.lang.Class.forName0(Native Method)

      at java.lang.Class.forName(Unknown Source)

      at com.quovadx.cloverleaf.upoc.CloverEnv.makeUpocInstance(CloverEnv.java:1084)

         invoked from within

      “makeUpocInstance $className $baseClass $args”

         (procedure “cljXLTStrings” line 33)

         invoked from within

      “cljXLTStrings {CLASS GetLabPanel} {XLT_STYLE SINGLE}”

    Viewing 0 reply threads
    • Author
      Replies
      • #58146
        Osmand Christian
        Participant

          Markus,

          NoClassDefFoundError says that engine is not seeing the class. Check your Classpath. Make sure your class file “GetLabPanel” directory is in QDXI_CLASSPATH.

          >echo $QDXI_CLASSPATH

          That should solve the problem.

          Cheers!

          Osmand C.

          Department of Health & Human Services,

          State of North Carolina

      Viewing 0 reply threads
      • The forum ‘Cloverleaf’ is closed to new topics and replies.