钛[错误] JDK版本1.7.0_03检测,但需要1.6 [英] Titanium [ERROR] JDK version 1.7.0_03 detected, but 1.6 is required
问题描述
我试着运行一个简单的Hello World手机与钛Android模拟器机应用,但我得到了以下错误:
I try to run a simple "hello world" mobile appliction with the titanium android emulator, but I get the following errors:
[错误] JDK版本1.7.0_03检测,但需要1.6
[ERROR] JDK version 1.7.0_03 detected, but 1.6 is required
错误:这个过程2196找不到
ERROR: The process "2196" not found.
我已经下载并安装了JDK 1.6,但它仍然发生。你知道什么,我需要做什么?
I have downloaded and installed the JDK 1.6, but it still happens. Do you know what I need to do?
P.S:我可以看到模拟器运行,但我看不到我的应用程序列表中的应用
p.s.: I can see the emulator running, but I can't see my application in the applications list
推荐答案
显然,不幸的是,对于这两个安装JDK-6和JDK 7的系统,只有JDK-6路径可能会出现在系统 PATH
。
Apparently and unfortunately, for a system with both JDK-6 and JDK-7 installed, only the JDK-6 path may appear on the system PATH
.
通常的方式做到这一点是:
The usual way to do that is to:
- 定义的环境变量
JAVA_HOME = G:\\ Program Files文件\\的Java \\ jdk1.6.0_24
- 添加/集
%JAVA_HOME%\\ bin中
在PATH
变量
- Define an environment variable
JAVA_HOME=G:\Program Files\java\jdk1.6.0_24
- Add/Set
%JAVA_HOME%\bin
in yourPATH
variable
我已经尝试不同的东西来说服钛Studio来从系统中定义的不同使用JDK,但我想出了是这样的,改变系统路径JDK-6。
I've tried different things to convince the Titanium Studio to use a JDK differently from the one defined for the system, but all i came up with is this, changing the system path to the JDK-6.
不要忘了重启钛工作室/ Eclipse中之后已经改变的环境变量。
Don't forget to restart the Titanium Studio/Eclipse after having changed the environment variables.
这篇关于钛[错误] JDK版本1.7.0_03检测,但需要1.6的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!