CodenameOne:“找不到到javac的路径".错误 [英] CodenameOne :"Path to javac not found" error

查看:82
本文介绍了CodenameOne:“找不到到javac的路径".错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开始使用CodenameOne工具进行多平台移动开发.当我创建"hello world"应用并尝试构建.apk android文件时,我收到了

I start working with CodenameOne tool for multiplatform mobile dev. When I created "hello world" app and tried to build an .apk android file, I received

 [echo]       Error! Path to Javac not found! 
 [echo]       Make sure the JAVA_HOME enviroment variable is pointing to the JDK 
 [echo]       or define javac path in build.xml manually!

我在项目中添加了JRE参考,但这并不能解决问题.我该如何解决?

I added JRE reference to the project, but this didn't solve the issue. How can I solve it?

推荐答案

代号人们需要使用实际的javac编译器而不是ADT,因为我们的某些服务器代码在ADT方面存在某些问题.

Codename One needs to use the actual javac compiler and not ADT since some of our server code has some issues with ADT.

JRE不包含javac,您需要安装一个JDK(如果尚未安装),请确保您的操作系统定义了JAVA_HOME环境变量,以便它指向JDK目录的根目录(而不是JDK目录的根目录). bin目录).

The JRE doesn't contain javac, you need to install a JDK (if you don't have one already) then make sure your OS defines the JAVA_HOME environment variable so it points at the root of the JDK dir (not the bin directory).

如果这不起作用(您可能需要重新启动Eclipse以更新进程中的环境),则只需双击build.xml文件并查找jdk.将路径更新为正确的JDK路径.

If this doesn't work (you might need to restart Eclipse to update environment within the process), then just double click the build.xml file and look for jdk. Update the path to the proper JDK path.

这篇关于CodenameOne:“找不到到javac的路径".错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆