RAPT:我的JDK出了什么问题?

时间:2016-07-09 19:17:29

标签: android python python-2.7 pygame renpy

好吧,问题是我在运行命令时遇到了一些麻烦:

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位)

1 个答案:

答案 0 :(得分:0)

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

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

尝试设置JAVA_HOME环境变量。