【问题标题】:"Unable to find a javac compiler" - while trying to generate an android app with RoboHelp 10“无法找到 javac 编译器” - 尝试使用 RoboHelp 10 生成 android 应用程序时
【发布时间】:2013-06-07 19:32:28
【问题描述】:

我正在探索 Adob​​e 技术交流套件的试用版。在this video 之后,我正在尝试使用示例文档生成一个Android 应用程序。

我已尝试更改 JDK 和 apache.ant 文件的文件路径,但仍收到相同的错误消息(见下文)。

BUILD FAILED
C:\Program Files (x86)\Android\adt-bundle-windows-x86_64-20130522\sdk\tools\ant\build.xml:713: The following error occurred while executing this line:
C:\Program Files (x86)\Android\adt-bundle-windows-x86_64-20130522\sdk\tools\ant\build.xml:727: Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK.
It is currently set to "C:\Program Files (x86)\Java\jre7"

【问题讨论】:

    标签: java android ant robohelp


    【解决方案1】:

    我在linux系统中遇到了同样的错误,并通过知道:JDK是JRE的超级命令来解决它。

    JRE:Java 运行时环境只运行不编译或构建(例如使用 ant)。

    JDK:编译并运行。

    所以尝试将您的 java 设置更改为 JAVA_HOME= ..../java 或 .../jdk 而不是 .../jre。

    【讨论】:

      【解决方案2】:

      看来你没有配置你的JAVA变量环境。

      顺便说一句,我不知道您使用的是什么 IDE。据我所知,如果您的计算机中有多个 java 版本,则应在 eclipse 中设置变量。

      (1) window->preference-> left column (Java)->Compiler,你可以改变不同的编译器版本。

      (2) 在左栏(Java) -> Installed JRE, 你也应该修改JRE版本。

      【讨论】:

      • 感谢您的回复,芙蕾雅。我没有使用 IDE 本身,除非 RoboHelp 10 很重要。我正在查看是否在该程序中调整了我的 java 首选项。 . .
      猜你喜欢
      • 2012-10-21
      • 1970-01-01
      • 2012-12-19
      • 1970-01-01
      • 1970-01-01
      • 2014-09-20
      • 2014-11-03
      • 2014-05-10
      • 1970-01-01
      相关资源
      最近更新 更多