Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-9210

Build fails for Android apps if JAVA_HOME does not point to correct location

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • Qt Creator 2.7.2
    • Qt Creator 2.7.0
    • Android Support
    • None

    Description

      Trying Qt Creator for Android with a fresh user, I get a default JAVA_HOME that points to a JRE. The JRE does not have javac, only the run-time, so it cannot be used for building.

      I tried setting the correct path in the Qt Creator settings, but this does not seem to have any effect.

      I had to go into compile output to see the output from ant to find out what was wrong, and then quit Creator, set JAVA_HOME to the correct thing and then restart it.

      I think we need both a better error message (that would probably be for 2.8 since it requires translations) and we need the settings to override the JAVA_HOME variable..

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            dt Daniel Teske
            esabraha Eskil Abrahamsen Blomfeldt
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes