【问题标题】:JDK not found on Debian 8.5在 Debian 8.5 上找不到 JDK
【发布时间】:2016-07-08 09:44:39
【问题描述】:

我想使用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)

但是,从 wit 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.

【问题讨论】:

    标签: java android python-2.7 pygame


    【解决方案1】:

    您需要将您的 jdk 设置为可访问,并且在路径/java home 内:)

    这里来自谷歌的帮助:

    要设置 JAVA_HOME 环境变量,请执行以下操作: 启动 终端按键盘上的 Ctrl + Alt + T。根据 在您安装 Java 的位置,您需要提供完整路径。 对于此示例,我在 /usr/lib/jvm/java-7-oracle 目录。2012 年 8 月 13 日

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-06-08
      • 2023-03-21
      • 2011-10-16
      • 2016-08-21
      • 1970-01-01
      • 2019-03-25
      • 1970-01-01
      相关资源
      最近更新 更多