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

Compiling JavaCat on Ubuntu 18.04 fails

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 7.2.0
    • Fix Version/s: 7.2.0
    • Component/s: Embedded Languages
    • Labels:
      None

      Description

      javac: target release 1.8 conflicts with default source release 1.10
      initfiles/CMakeFiles/build-example-java-classes.dir/build.make:61: recipe for target 'initfiles/JavaCat.class' failed
      make[2]: *** [initfiles/JavaCat.class] Error 2
      CMakeFiles/Makefile2:2381: recipe for target 'initfiles/CMakeFiles/build-example-java-classes.dir/all' failed
      make[1]: *** [initfiles/CMakeFiles/build-example-java-classes.dir/all] Error 2
      Makefile:162: recipe for target 'all' failed
      make: *** [all] Error 2
      

      A blunt-force fix is to modify HPCC-Platform/initfiles/CMakeLists.txt:54 from

      COMMAND ${Java_JAVAC_EXECUTABLE} ${example_java_sources} -d ${CMAKE_CURRENT_BINARY_DIR} -target 1.8
      

      to

      COMMAND ${Java_JAVAC_EXECUTABLE} ${example_java_sources} -d ${CMAKE_CURRENT_BINARY_DIR} -target 1.10
      

      But that is probably something that works only on my installation.

        Attachments

          Activity

            People

            • Assignee:
              dcamper Dan S. Camper
              Reporter:
              dcamper Dan S. Camper
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: