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

Ensure javaembed is loaded and available for HPCCUtils use

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Not specified
    • Resolution: Fixed
    • Affects Version/s: 7.6.0
    • Fix Version/s: 7.4.22
    • Component/s: Plugins
    • Labels:
      None

      Description

      In order to utilize HPCCUtils.log, java developers are currently responsible for loading libjavaembed.so:

      import com.HPCCSystems.*;
      public class HelloWorldECL
      {
      static String hello()
      {
      try

      { System.load("/opt/HPCCSystems/plugins/libjavaembed.so"); //: otherwise: java.lang.UnsatisfiedLinkError: com.HPCCSystems.HpccUtils.log(Ljava/lang/String;)V }

      catch (UnsatisfiedLinkError e)

      {return "";}


      HpccUtils.log("hello ECL");
      return "hi";
      }
      }

        Attachments

          Activity

            People

            • Assignee:
              richardkchapman Richard Chapman
              Reporter:
              rpastrana Rodrigo Pastrana
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: