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

Add support for Java versions > 6 (ideally 8)

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Not specified
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.4.0
    • Component/s: Build process, Plugins
    • Labels:
      None
    • Environment:
      HPCC 5.2 on Ubuntu

      Description

      The Java plugin fails when code is compiled using any version greater than 1.6.

      JDK6 is end of life (EOL) at this point. (chart shown below)
      http://www.oracle.com/technetwork/java/eol-135779.html#Java6-end-public-updates

      Java EOL dates:
      5.0 Oct 2009
      6 Feb 2013
      7 April 2015
      8 TBD March 2017*

      When code is compiled under versions >=7, the eclagent cannot find the class. Issue (and method to reproduce) demonstrated below:

      bone@ubuntu:/opt/HPCCSystems/classes-> javac -source 1.6 -target 1.6 JavaCat.java
      warning: [options] bootstrap class path not set in conjunction with -source 1.6
      1 warning
      bone@ubuntu:/opt/HPCCSystems/classes-> ecl run classpath.ecl --target hthor --server=localhost:8010

      <Result>
      <Dataset name='Result 1'>
      <Row><Result_1>11</Result_1></Row>
      </Dataset>
      </Result>
      bone@ubuntu:/opt/HPCCSystems/classes-> javac -source 1.7 -target 1.7 JavaCat.java
      bone@ubuntu:/opt/HPCCSystems/classes-> ecl run classpath.ecl --target hthor --server=localhost:8010

      W20150506-105722 failed
      <Result>
      <Exception><Source>eclagent</Source><Message>System error: 0: javaembed: Failed to resolve class name JavaCat</Message></Exception>
      </Result>

        Attachments

          Activity

            People

            Assignee:
            boneill42 Brian O'Neill
            Reporter:
            boneill42 Brian O'Neill
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: