2

好吧,正如问题所说,我在让 RAPT 运行命令时遇到了一些麻烦:

python android.py installsdk

它通常返回:

    I'm compiling a short test program, to see if you have a working JDK
on your system.


I was unable to use javac to compile a test file. If you haven't
installed the Java Development Kit yet, please download it from:

http://www.oracle.com/technetwork/java/javase/downloads/index.html

The JDK is different from the JRE, so it's possible you have Java
without having the JDK. Without a working JDK, I can't continue.

我尝试了许多版本的 JDK,我检查了变量“PATH”,我可以javac毫无问题地运行。我需要特定版本的 JDK?(我正在使用 Python 2.7,32 位)

4

1 回答 1

0

JDK 是 java 开发工具包 JRE 只是 java 运行时环境。如果你编译过java jar 或者class 文件jre 就够用了,就不需要jdk。

但是如果你想编译java源代码你需要JDK自带的javac。

尝试设置 JAVA_HOME 环境变量。

于 2016-07-09T19:25:47.297 回答