JAVA UPoC : Using external library

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf JAVA UPoC : Using external library

  • Creator
    Topic
  • #54720
    Jerry Tilsley
    Participant

      All,

      Does any one know where to store the external JAR file for classes used as UPoC’s that reference outside packages?  I’ve tried placing them in $HCIROOT/lib/java and $HCIROOT/$HCISITE/java_uccs but neither of these seem to work.  Any help would be much appreciated.

      Thanks,

      Jerry

    Viewing 2 reply threads
    • Author
      Replies
      • #82707
        Levy Lazarre
        Participant

          Jerry,

          The easiest place to store those jar files is in $HCIROOT/java_uccs. This makes the contained classes available to all sites. There is nothing else to do.

          If you prefer, you can create your own directory, and place the jar files in that directory. Before the contained classes become available, you have to add that directory to the CLASSPATH environment variable (standard way for Java), or to the QDXI_CLASSPATH environment variable (another way for Cloverleaf).

          This works very well. Good luck.

        • #82708
          Jerry Tilsley
          Participant

            Thanks Levy, I now have all working now.

            Jerry

          • #82709
            Levy Lazarre
            Participant

              Great, Jerry

              Later on, if you decide to organize your .jar files in your own directories, and update the CLASSPATH accordingly, there is one thing you need to be aware of. In my experience in the past, the updated CLASSPATH did not immediately propagate to the Cloverleaf test tool; I had to reset the host server to make it happen.

              hciss -k h; hciss -s h

              Happy Computing in Java.

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