2016-07-09 175 views
1

嗯,這個問題說,我有一些麻煩RAPT運行命令:RAPT:我的JDK出了什麼問題?

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的很多版本,我已經檢查了變量「路徑」,我可以運行javac沒有問題。我需要一個特定版本的JDK? (我正在使用Python 2.7,32位)

回答

0

JDK是java開發工具包 JRE僅適用於java運行時環境。 如果您已經編譯了java jar或class文件jre就足夠好了,那麼您不需要jdk。

但是,如果您想編譯java源代碼,您將需要JDK附帶的javac。

嘗試設置JAVA_HOME環境變量。