我想做一个使用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.发布于 2016-07-08 17:55:41
您需要将jdk设置为可访问,并且位于path / java home :)
以下是来自谷歌的帮助:
要设置JAVA_HOME环境变量,请执行以下操作:按键盘上的Ctrl + Alt +T组合键启动终端。根据Java安装位置的不同,您需要提供完整路径。对于本例,我在/usr/lib/jvm/java-7-oracle directory.Aug 13,2012
中安装了OracleJDK7
https://stackoverflow.com/questions/38263557
复制相似问题