Menu

Wrong Java Version: Should be 1.6.0

Help
Terence Ng
2008-08-07
2013-03-08
  • Terence Ng

    Terence Ng - 2008-08-07

    I have downloaded Adempiere Snapshot Release (July 10, 2008).  I build it successfully by using jdk1.5.0.  But when I run RUN_silentsetup.sh, there is an error that the java version should be 1.6.0.  Then, I download jdk1.6.0 and install it.  But the error still exist.

    However, when I run RUN_build.sh using jdk1.6.0, "Build Failed".

    # ./RUN_silentsetup.sh
    Install Adempiere Server
    ===================================
    Starting Setup ...
    ===================================
    *** 2008-08-07 11:45:45.662 Adempiere Log (CLogConsole) ***
    11:45:45.662   CLogMgt.setLevel: CONFIG
    11:45:45.761 ConfigurationData.load: /opt/Adempiere/AdempiereEnv.properties
    11:45:45.764 Config.test: OK: JavaHome=/usr/java
    ===========> ConfigurationData.test: Wrong Java Version: Should be 1.6.0

    ===========> ConfigurationData.test: Wrong Java Version: Should be 1.6.0

    Warning: One or more of the configuration test failed.

    Exception in thread "main" java.lang.NullPointerException
            at org.compiere.install.ConfigurationData.save(ConfigurationData.java:771)
            at org.compiere.install.SilentSetup.<init>(SilentSetup.java:40)
            at org.compiere.install.SilentSetup.main(SilentSetup.java:76)

    *** 2008-08-07 11:45:45.785 Adempiere Log (CLogConsole) ***

    Make .sh executable

    # echo $JAVA_HOME
    /usr/java
    # /usr/java/bin/java -fullversion
    java full version "1.6.0_07-b06"
    #

    The partial output of RUN_build.sh:
    BUILD FAILED
    /var/tmp/adempiere_trunk/utils_dev/build.xml:22: The following error occurred while executing this line:
    /var/tmp/adempiere_trunk/base/build.xml:54: Compile failed; see the compiler error output for details.

    Total time: 37 seconds
    MailLogger failed to send e-mail!
    java.lang.Exception: Missing required parameter: MailLogger.from
            at org.apache.tools.ant.listener.MailLogger.getValue(MailLogger.java:180)
            at org.apache.tools.ant.listener.MailLogger.buildFinished(MailLogger.java:128)
            at org.apache.tools.ant.Project.fireBuildFinished(Project.java:1848)
            at org.apache.tools.ant.Main.runBuild(Main.java:688)
            at org.apache.tools.ant.Main.startAnt(Main.java:187)
            at org.apache.tools.ant.Main.start(Main.java:150)
            at org.apache.tools.ant.Main.main(Main.java:240)
    Done ...

     
    • Bahman Movaqar

      Bahman Movaqar - 2008-08-07

      There must be '1.5.0' or '1.6.0' in the path in which Java is installed.  You seem to have Java installed in /usr/java which doesn't satisfy that.

      A suggestion would be to have a symbolic link /usr/jdk1.6.0 to /usr/java and set JAVA_HOME to /usr/jdk1.6.0

      HTH,

      Bahman

       
    • Terence Ng

      Terence Ng - 2008-08-07

      Hi Bahman,

      I have done so.  I have set symbolic link /usr/java to /usr/jdk/jdk1.6.0_07, and set JAVA_HOME.

      Regards,
      Terence

       
    • Terence Ng

      Terence Ng - 2008-08-09

      I have solved this issue.  In AdempiereEnv.properties, the solution is to set JAVA_HOME=/usr/jdk/instances/jdk1.6.0 and do not set JAVA_HOME=/usr/java

       

Log in to post a comment.