Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-23314

Windows: CLI should find JDK like Studio does

    Details

    • Type: Story
    • Status: Closed
    • Priority: Medium
    • Resolution: Won't Fix
    • Affects Version/s: Release 5.3.0
    • Fix Version/s: None
    • Component/s: Tooling, Windows
    • Labels:
    • Environment:

      Windows 10
      SDK 5.3 beta
      AppC CLI 5.3 beta
      Studiuo 4.6 beta

      Description

      When I build a Windows app from Studio it works fine, but when I build the same app via CLI it fails with:

      [ERROR] Failed to encrypt JavaScript files
      [ERROR] Program launch failed. Unable to locate Java VM. Please set JAVA_HOME environment variable.
      

      Which originates from:
      https://github.com/appcelerator/titanium_prep/blob/247eaecf56160dce4273a8fd64977b83da671f06/android/launcher/main.jdk16.c#L139

      Of course I could set JAVA_HOME but if Studio manages to find Java (and apparently pass it on to the CLI) then why can't the CLI?

      IMHO the CLI should be able to do anything Studio can. Even better: Studio should not do anything the CLI so that Studio is as light as it can be and relies on CLI.

        Attachments

          Activity

            People

            • Assignee:
              cbarber Chris Barber
              Reporter:
              fokkezb Fokke Zandbergen
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-9705
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration