简体   繁体   English

Windows 10 上的 Tizen Install 无法识别安装的 JDK 9

[英]Tizen Install on Windows 10 will not recognize JDK 9 installed

I am attempting to install the 64-bit version of Tizen SDK on my Win10 Home Laptop.我正在尝试在我的 Win10 家用笔记本电脑上安装 64 位版本的 Tizen SDK。 However, every time I get the error that I either don't have java 8+ installed or that the JAVA_HOME environmental variable isn't set right.但是,每次我收到错误消息,即我没有安装 java 8+ 或者 JAVA_HOME 环境变量设置不正确。

Now I've read other questions on this, and I've set the JDK directory as first in the "Path" environmental variable.现在我已经阅读了关于此的其他问题,并且我已经在“Path”环境变量中将 JDK 目录设置为第一个。 I've added the JAVA_HOME environ.我添加了 JAVA_HOME 环境。 var and pointed it at my JDK directory. var 并将其指向我的 JDK 目录。 I've rebooted twice throughout this (just in case).我已经在整个过程中重新启动了两次(以防万一)。

I tried to install the 32-bit version of Tizen SDK, but immediately got the error that I'm not on a 32-bit OS.我尝试安装 Tizen SDK 的 32 位版本,但立即收到错误,提示我不在 32 位操作系统上。

I have d/l and installed Java 9 SDK and JRE.我有 d/l 并安装了 Java 9 SDK 和 JRE。 They're in C:\\Program Files\\Java\\jdk-9 & C:\\Program Files\\Java\\jre-9 respectively.它们分别位于 C:\\Program Files\\Java\\jdk-9 和 C:\\Program Files\\Java\\jre-9 中。

Here's my Path variable: Path Variable Image这是我的路径变量:路径变量图像

Any help would be mucho appreciated!任何帮助将不胜感激!

Response on Oct, 2017: 2017 年 10 月的回复:

** So far Tizen studio installer can't recognize new version of Java. **到目前为止,Tizen Studio 安装程序无法识别新版本的 Java。 ** You need to install Oracle Java 8 for now. ** 您现在需要安装 Oracle Java 8。

Additional Checklist:附加清单:

[✔] Tizen developers site states "Do not install OpenJDK ". [✔] Tizen开发者网站上的国家“不要安装的OpenJDK”。 Make sure you are using OracleJDK instead of OpenJDK.确保您使用的是OracleJDK而不是 OpenJDK。 Related links you might see:您可能会看到相关链接:

Forum Post 论坛帖子

[✔] There's a Tip&Tech document on Tizen Developers Community called 'Guide for Setting JDK'. [✔] Tizen 开发人员社区上有一个名为“设置 JDK 的指南”的 Tip&Tech 文档。 As you are having Issues, You may check it out.当您遇到问题时,您可以查看它。

Tizen: Guide for Setting JDK Tizen:JDK 设置指南

[✔] I expect you are using the Latest Tizen Studio 2.0. [✔] 我希望您使用的是最新的 Tizen Studio 2.0。

Latest Tizen Studio Download Link 最新的 Tizen Studio 下载链接

Cause history says, Java compatibility Defers with IDE versions: Tizen-sdk-for-wearable-setup Installation issue because of JAVA HOME原因历史说,Java 兼容性推迟了 IDE 版本: Tizen-sdk-for-wearable-setup 由于 JAVA HOME 安装问题

Edit on March, 2019: 2019 年 3 月编辑:

Tizen-Studio now supports OpenJDK 10 Tizen-Studio 现在支持 OpenJDK 10

To use Tizen Studio install Oracle Java Development Kit (JDK) 8, JDK 9, or OpenJDK 10 .要使用 Tizen Studio,请安装 Oracle Java Development Kit (JDK) 8、JDK 9 或 OpenJDK 10。

Prerequisites for the Tizen Studio OpenJDK 10 and OpenJFX Installation Guideline on Tizen Developers Site Tizen 开发人员站点上 Tizen Studio OpenJDK 10 和 OpenJFX 安装指南的先决条件

I was stuck there for a while, too.我也被困在那里一段时间。 In addition to setting JAVA_HOME to C:\\Program Files\\Java\\jdk-12.0.1 (no bin at the end), I also added C:\\Program Files\\Java\\jdk-12.0.1\\bin to the beginning of PATH ;除了将JAVA_HOMEC:\\Program Files\\Java\\jdk-12.0.1 (末尾没有bin ),我还在PATH开头添加了C:\\Program Files\\Java\\jdk-12.0.1\\bin ; then it worked.然后它起作用了。

I've had the same problem, therefore i installed JDK8 from oracle website and the installer works fine.我遇到了同样的问题,因此我从 oracle 网站安装了 JDK8,安装程序运行良好。 (no need to reboot) If you don't need specific JDK9 stuff, go with 8 and you will be good to go. (无需重新启动)如果您不需要特定的 JDK9 东西,请使用 8,您会很高兴。 Don't forget to update JAVA_HOME and Path to point to JDK8.不要忘记更新 JAVA_HOME 和 Path 以指向 JDK8。

I have set as user variables CLASSPATH set to C:\\Program Files\\Java\\jre1.8.0_144\\lib, JAVA_HOME set to C:\\Program Files\\Java\\jdk1.8.0_144我已将用户变量 CLASSPATH 设置为 C:\\Program Files\\Java\\jre1.8.0_144\\lib,JAVA_HOME 设置为 C:\\Program Files\\Java\\jdk1.8.0_144

As system variables i've added to the existing Path this value C:\\Program Files\\Java\\jdk1.8.0_144\\bin and JAVA_HOME the same as above (even though i'm not sure the latter one is required).作为系统变量,我已将此值添加到现有路径 C:\\Program Files\\Java\\jdk1.8.0_144\\bin 和 JAVA_HOME 与上述相同(即使我不确定是否需要后者)。

PS.附注。 I have both JDK8 and 9 installed and Windows 10 64bit.我安装了 JDK8 和 9 以及 Windows 10 64 位。 I tried installing Tizen on debian using JDK9 and i got the same error, i'm sure that using JDK8 will work (need to check installation on OSX though)我尝试使用 JDK9 在 debian 上安装 Tizen,但我遇到了同样的错误,我确定使用 JDK8 可以工作(尽管需要检查 OSX 上的安装)

Cheers!干杯!

在我的情况下,将“C:\\Program Files\\Java\\jdk-12.0.2\\bin”(带引号)添加到 PATH 可以解决问题,即安装程序成功运行

Information on the tizen website is incomplete. tizen 网站信息不完整。 On Windows 10 using OpenJDK follow the article and you need to enter another environment and system parameters after adding Java_home.在使用 OpenJDK 的 Windows 10 上按照文章进行操作,添加 Java_home 后需要输入另一个环境和系统参数。 Parameter is "PATH" value is "%JAVA_HOME%\\bin" otherwise Tizen Studio installation wont recognize it.参数是“PATH”,值是“%JAVA_HOME%\\bin”,否则 Tizen Studio 安装将无法识别它。

I download the IDE of version 3.2 and install the open jdk10 , IDE can load successfully, but load the emulator failed when click the tools -> emulator manager.我下载了version 3.2的IDE并安装了open jdk10 ,IDE可以成功加载,但是点击工具->模拟器管理器加载模拟器失败。

error: could not create the java virtual machine.错误:无法创建 Java 虚拟机。

my setting :我的设置
path: %JAVA_HOME%\\bin路径: %JAVA_HOME%\\bin
JAVA_PATH: c\\jdk-10 JAVA_PATH: c\\jdk-10

what's the problem here?这里有什么问题? please give some suggestions.请给出一些建议。

The only thing that worked for me in the end was:最后唯一对我有用的是:

  • Uninstall the recent Java version and install Java SE 8u231.卸载最新的 Java 版本并安装 Java SE 8u231。
  • After that, I tried Tizen 1.3, and it worked.之后,我尝试了 Tizen 1.3,它奏效了。

I don't know if the newer versions works, but the above worked for me for now.我不知道较新的版本是否有效,但目前以上对我有用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM