Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-16085] CLI: JDK detect does not support JAVA_HOME that begins with ~

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2014-01-18T00:23:13.000+0000
Affected Version/sn/a
Fix Version/s2014 Sprint 01, 2014 Sprint 01 Core, Release 3.2.3, Release 3.3.0
ComponentsCLI
Labelsqe-closed-3.2.3, qe-testadded
ReporterChris Barber
AssigneeChris Barber
Created2013-12-26T19:14:27.000+0000
Updated2014-03-26T23:00:10.000+0000

Description

If JAVA_HOME is set to "~/some/path/to/jdk", then it will not properly resolve the path and in effect will not be able to find the JDK.

Comments

  1. Chris Barber 2014-01-08

    node-appc master pull request: https://github.com/appcelerator/node-appc/pull/80 node-appc 3.2.x pull request: https://github.com/appcelerator/node-appc/pull/81
  2. Chris Barber 2014-01-08

    This will probably need to be tested on Windows. If you set the JAVA_HOME to begin with a tilde, then it will do the right thing and resolve it for you. Windows will not.
  3. Olga Romero 2014-03-26

    Tested on windows8.1 Set JAVA_HOME to begin with tilde, and ran "ti info", as a result - no java was found. Otherwise, "ti info" returns the correct path. Node.JS Version: v0.10.13 NPM Version: 1.3.2 /usr/local/lib ├── acs@1.0.14 ├── alloy@1.3.1 ├── npm@1.3.2 ├── titanium@3.2.3-dev └── titanium-code-processor@1.1.0

JSON Source