“将Visual Studio Code与Titanum一起使用时未安装“ JDK(Java开发工具)”

问题描述 投票:0回答:1

我已经看到一些人在VS Code中使用钛合金扩展名时出现此确切错误,但我还没有看到确定的解决方案。任何想法将不胜感激。

[当我单击“播放”以尝试运行我的“ hello world”程序时,我看到此错误:original error

[ERROR] JDK (Java Development Kit) not installed.
[ERROR] If you already have installed the JDK, verify your JAVA_HOME environment variable is correctly set.
[ERROR] The JDK is required for Titanium and must be manually downloaded and installed from http://appcelerator.com/jdk.

在环境变量中,我通过选择适当的文件夹来设置java_home:

java_home

并设置路径以指向bin目录

java_home path

如果我回显java_home,它看起来正确。

echo java_home

EDIT 5/19/2020

当前应用信息

  Name                        = Microsoft Windows 10 Pro
  Version                     = 10.0.18362.  All Rights Reserved.
  Architecture                = 64bit
  # CPUs                      = 8
  Memory                      = 15.9GB

Node.js
  Node.js Version             = 12.16.3
  npm Version                 = 6.14.4

Appcelerator CLI
  Installer                   = 5.0.0
  Core Package                = 8.0.0

Titanium CLI
  CLI Version                 = 5.2.2
  node-appc Version           = 0.2.49

Titanium SDKs
  9.0.1.GA
    Version                   = 9.0.1
    Install Location          = C:\ProgramData\Titanium\mobilesdk\win32\9.0.1.GA
    Platforms                 = android
    git Hash                  = 466c007fd2
    git Timestamp             = 4/15/2020 21:37
    node-appc Version         = 0.3.4

Intel® Hardware Accelerated Execution Manager (HAXM)
  Installed                   = yes
  Memory Limit                = 0 BYTES

Java Development Kit
  Not found

Genymotion
  Path                        = not found
  Genymotion Executable       = not found
  Genymotion Player           = not found
  Home                        = not found

VirtualBox
  Executable                  = not found
  Version                     = unknown

Android SDK
  Android Executable          = not found
  ADB Executable              = not found
  SDK Path                    = not found

Android NDK
  NDK Path                    = not found
  NDK Version                 = not found

Android Platforms
  None

Android Add-Ons
  None

Android Emulators
  None

Genymotion Emulators
  None

Connected Android Devices
Samsung Galaxy S10 (preview)
  ID                          = 192.168.80.101:5555
  State                       = device
  SDK Version                 = 10 (android-29)
  ABIs                        = x86

Java Development Kit Issues
  ×  JDK (Java Development Kit) not installed.
     If you already have installed the JDK, verify your JAVA_HOME environment variable is correctly
     set.
     The JDK is required for Titanium and must be manually downloaded and installed from
     http://appcelerator.com/jdk.

Android Issues
  ×  JDK (Java Development Kit) not found.
     If you already have installed the JDK, verify your JAVA_HOME environment variable is correctly
     set.
     The JDK can be downloaded and installed from http://appcelerator.com/jdk.
java visual-studio-code titanium appcelerator
1个回答
0
投票

请安装JAVA 1.8(JDK 8)

© www.soinside.com 2019 - 2024. All rights reserved.