Uploaded image for project: 'Appcelerator Studio'
  1. Appcelerator Studio
  2. TISTUD-8784

Studio: Windows - Unable to build Windows app after installing JDK 1.8 through Studio

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Cannot Reproduce
    • Affects Version/s: Release 4.9.0
    • Fix Version/s: None
    • Component/s: Windows
    • Labels:
    • Environment:
    • Story Points:
      5
    • Sprint:
      2017 Sprint 12 Studio

      Description

      Description
      When using Studio 4.9.0 to install Java 1.8. I was unable to build a Windows app

      Steps to reproduce
      1. If Java 1.8 is installed, uninstall it (so that Studio installs it).
      2. If Appcelerator Studio 4.9.0 is installed, uninstall it.
      3. Install Appcelerator Studio 4.9.0.
      4. When the window shows up to install prerequisites, Java 1.8 box will already be checked. Just continue with installation.
      5. Create default Alloy app
      6. Build to Windows Emulator
      7. Error messages as shown below appears

      Actual Results
      Errors as shown below are seen. Emulator launches, but app does not. I was able to fix the issue by deleting some files. I followed the instructions in the accepted answer here:
      https://stackoverflow.com/questions/29697543/registry-key-error-java-version-has-value-1-8-but-1-7-is-required

      Expected Results
      App should build and run with no errors.

      Error Messages:

      [ERROR] :  Error: Command failed: java -jar "C:\ProgramData\Titanium\mobilesdk\win32\6.1.0.GA\node_modules\node-appc\tools\resizer\resizer.jar" "C:\Users\Tester\Desktop\test2\hello\smoke1\DefaultIcon.png" "C:\Users\Tester\.titanium\vsbuild\smoke1\Assets\Square24x24Logo.png" 24 24 "C:\Users\Tester\.titanium\vsbuild\smoke1\Assets\Square44x44Logo.png" 44 44 "C:\Users\Tester\.titanium\vsbuild\smoke1\Assets\Square71x71Logo.png" 71 71 "C:\Users\Tester\.titanium\vsbuild\smoke1\Assets\Square150x150Logo.png" 150 150 "C:\Users\Tester\.titanium\vsbuild\smoke1\Assets\Logo.png" 150 150 "C:\Users\Tester\.titanium\vsbuild\smoke1\Assets\StoreLogo.png" 50 50 "C:\Users\Tester\.titanium\vsbuild\smoke1\Assets\SmallLogo.png" 30 30
      Error: Registry key 'Software\JavaSoft\Java Runtime Environment'\CurrentVersion'
      has value '1.8', but '1.7' is required.
      Error: could not find java.dll
      Error: Could not find Java SE Runtime Environment.
          at ChildProcess.exithandler (child_process.js:204:12)
          at emitTwo (events.js:106:13)
          at ChildProcess.emit (events.js:191:7)
          at maybeClose (internal/child_process.js:886:16)
          at Socket.<anonymous> (internal/child_process.js:342:11)
          at emitOne (events.js:96:13)
          at Socket.emit (events.js:188:7)
          at Pipe._handle.close [as _onclose] (net.js:497:12)
      ---------------------------------------------
          at Object.exports.execFile (child_process.js:287:9)
          at Object.exports.exec (child_process.js:103:18)
          at Object.resize (C:\ProgramData\Titanium\mobilesdk\win32\6.1.0.GA\node_modules\node-appc\lib\image.js:68:28)
          at WindowsBuilder.generateAppIcons (C:\ProgramData\Titanium\mobilesdk\win32\6.1.0.GA\node_modules\node-titanium-sdk\lib\builder.js:513:13)
          at WindowsBuilder.createAppIconSet (C:\ProgramData\Titanium\mobilesdk\win32\6.1.0.GA\windows\cli\commands\_build\copy.js:367:8)
          at C:\ProgramData\Titanium\mobilesdk\win32\6.1.0.GA\node_modules\async\dist\async.js:3816:26
          at replenish (C:\ProgramData\Titanium\mobilesdk\win32\6.1.0.GA\node_modules\async\dist\async.js:982:17)
          at iterateeCallback (C:\ProgramData\Titanium\mobilesdk\win32\6.1.0.GA\node_modules\async\dist\async.js:967:17)
          at C:\ProgramData\Titanium\mobilesdk\win32\6.1.0.GA\node_modules\async\dist\async.js:944:16
          at C:\ProgramData\Titanium\mobilesdk\win32\6.1.0.GA\node_modules\async\dist\async.js:3821:13
          at apply (C:\ProgramData\Titanium\mobilesdk\win32\6.1.0.GA\node_modules\async\dist\async.js:21:25)
          at C:\ProgramData\Titanium\mobilesdk\win32\6.1.0.GA\node_modules\async\dist\async.js:56:12
          at C:\ProgramData\Titanium\mobilesdk\win32\6.1.0.GA\node_modules\graceful-fs\graceful-fs.js:43:10
          at C:\Users\Tester\.appcelerator\install\6.2.2\package\node_modules\titanium\node_modules\fs-extra\node_modules\graceful-fs\graceful-fs.js:43:10
          at C:\Users\Tester\.appcelerator\install\6.2.2\package\node_modules\tar.gz\node_modules\fstream\node_modules\graceful-fs\graceful-fs.js:43:10
      

        Attachments

          Activity

            People

            • Assignee:
              kkolipaka Kondal Kolipaka (Inactive)
              Reporter:
              amukherjee Abir Mukherjee
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: