Javac is not available. Make sure you are using the JDK

Version 1

    Details

    PROBLEM
    During AMIE import, Alerts shows the error: Javac is not available. Make sure you are using the JDK
    [attachment=0:]Alerts.JPG[/attachment:]
    And the Service log shows the following:
    [quote:]ERROR403659[ServiceScheduler_Worker-5] (DynamicDbComms.java:260) - An error occurred whilst initializing Comms: javac is not available. Make sure you are using the JDK[/quote:]

    ENVIRONMENT
    LiveTime

    RESOLUTION
    Important Note: Below example uses a specific path and version of JDK so it may be different on your server.


    [list=1:]

  • Stop LiveTime.
  • Open/Edit catalina.sh as an administrator from:
    • Windows: C:\Program Files\LiveTime\Server\bin
    • Linux: /usr/local/LiveTime\Server/bin
  • Check the JDK path in the following line and change:
    • Windows:
      [======CODE======]
      JAVA_HOME="C:\Program Files\Java\jre1.8.0_45"
      [======ENDCODE======]

    • Linxus:
      [======CODE======]
      JAVA_HOME="/usr/lib/jvm/java-8-oracle"
      [======ENDCODE======]
  • Save the change.
  • On Windows, rename tomcat7w.exe to HEATsoftwareService.exe in C:\Program Files\LiveTime\Server\bin.
  • Open HEATsoftwareService.exe.
  • Go to Java tab and change Java Virtual Machine path from:

    [======CODE======]
    C:\Program Files\Java\jre1.8.0_45\bin\server\jvm.dll
    [======ENDCODE======]

    to

    [======CODE======]
    C:\Program Files\Java\jdk1.8.0_45\jre\bin\server\jvm.dll
    [======ENDCODE======]

  • Cilck Ok.
  • Start LiveTime.

    ADDITIONAL INFORMATION
    If you are still experiencing an issue, please contact [url=https://support.heatsoftware.com:]Global Support[/url:].