【问题标题】:Java 8 option can't be unselected in Codename One?Java 8 选项不能在 Codename One 中取消选择?
【发布时间】:2015-12-03 20:50:21
【问题描述】:

代号 One 的用户遇到此错误:

Updating property file: C:\Users\user\Documents\NetBeansProjects\Rim Karaki CV Mobile Apps\build\built-jar.properties

Compile is forcing compliance to the supported API's/features for maximum device compatibility. This allows smaller

code size and wider device support

Compiling 3 source files to C:\Users\user\Documents\NetBeansProjects\Rim Karaki CV Mobile Apps\build\tmp

javac: invalid target release: 1.8

Usage: javac <options> <source files>

use -help for a list of possible options

C:\Users\user\Documents\NetBeansProjects\Rim Karaki CV Mobile Apps\build.xml:50: Compile failed; see the compiler error output for details.

BUILD FAILED (total time: 1 second)

我建议在项目创建阶段取消选中“Java 8 项目”设置,但用户实际上无法取消选择该选项:

我不明白,这可能是什么问题?

【问题讨论】:

  • 这是什么 Netbeans 版本?他/她的 Codename 插件和 Java 是最新的吗?

标签: codenameone


【解决方案1】:

我认为 Chen 在我们即将发布的版本中已经解决了这个问题。我们将尝试在下周初发布。

作为一种解决方法,您可以执行以下操作之一:

  • 安装 Java 8 并确保在其上运行 NetBeans。
  • 创建一个 Java 8 项目,然后删除 Java 8 构建提示并将 lib 部分中的项目属性更改为不使用 Java 8。然后将 build.xml 第 50 行修复为 1.5 而不是 1.8。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-08-25
    • 1970-01-01
    • 2021-10-09
    • 2011-08-23
    • 1970-01-01
    • 1970-01-01
    • 2011-12-21
    • 2016-02-27
    相关资源
    最近更新 更多