我想使用this software创建一个python-android-app。我已经安装了java JDK,当我运行java -version
时,我得到了:
java version "1.8.0_91"
Java(TM) SE Runtime Environment (build 1.8.0_91-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.91-b14, mixed mode)
但是从witin rapt目录运行行python android.py installsdk
(如教程中所述)告诉我我没有JDK:
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.
答案 0 :(得分:0)
您需要将jdk设置为可访问,并且在path / java home :)中
来自谷歌的帮助:
要设置JAVA_HOME环境变量,请执行以下操作:启动 通过按键盘上的Ctrl + Alt + T终端。取决于 在安装Java的地方,您需要提供完整的路径。 在本例中,我安装了Oracle JDK 7 / usr / lib / jvm / java-7-oracle directory.Aug 13,2012