Uploaded image for project: 'HPCC'
  1. HPCC
  2. HPCC-15927

Embedded Java Documentation

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Accepted
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 6.0.0
    • Fix Version/s: None
    • Component/s: Documentation
    • Labels:
      None
    • Compatibility:
      Point

      Description

      While helping an ECL developer set up an embedded java project, it became apparent that the following issues should be documented:

      • A compatible Libjvm.so must be accessible, specify the libjvm.so location in /etc/HPCCSystems/environment.conf JNI_PATH=/absolute/path/to/alternative/libjvm.so
      • When targeting custom classes, all dependencies must be accessible by declaring their location on the classpath, or including in the host jar file
      • Custom java classes should be built using compatible JAVA versions, to check you’re the java version used to build a given class use javap: javap -verbose MyClass | grep "major"
      • When targeting a given method, ensure the signature declared in the embedded java section matches the actual method signature. Use javap: javap –s MyClass

        Attachments

          Activity

            People

            Assignee:
            jamesdefabia Jim DeFabia
            Reporter:
            rpastrana Rodrigo Pastrana
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: