如何运行构建codenameone构建?

时间:2015-12-02 19:38:58

标签: codenameone

好的,我在eclipse的simular下运行了一些演示。提交了一个桌面版本并得到了一个jar。现在我该如何运行jar?它似乎没有 可以直接运行。

此外,我应该在哪里找到此信息而不是询问 这是一个傻瓜问题?

> Buildfile: G:\share\projects\eclipse\Charts Demo\build.xml
> 
> jar:
>         [echo] Compile is forcing compliance to the supported API's/features for maximum device compatibility. This allows smaller
>         [echo]            code size and wider device support
>         [copy] Copying 1 file to G:\share\projects\eclipse\Charts Demo\build\tmp
>        [javac] G:\share\projects\eclipse\Charts Demo\build.xml:147: warning: 'includeantruntime' was not set, defaulting to
> build.sysclasspath=last; set to false for repeatable builds
>        [javac] Compiling 25 source files to G:\share\projects\eclipse\Charts Demo\build\tmp
>        [javac] warning: [options] source value 1.5 is obsolete and will be removed in a future release
>        [javac] warning: [options] target value 1.5 is obsolete and will be removed in a future release
>        [javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
>        [javac] Note: Some input files use or override a deprecated API.
>        [javac] Note: Recompile with -Xlint:deprecation for details.
>        [javac] Note: G:\share\projects\eclipse\Charts Demo\src\com\codename1\demos\charts\ChartDemosForm.java uses unchecked
> or unsafe operations.
>        [javac] Note: Recompile with -Xlint:unchecked for details.
>        [javac] 3 warnings
>          [jar] Building jar: G:\share\projects\eclipse\Charts Demo\dist\Charts Demo.jar
>        [javac] G:\share\projects\eclipse\Charts Demo\build.xml:171: warning: 'includeantruntime' was not set, defaulting to
> build.sysclasspath=last; set to false for repeatable builds BUILD
> SUCCESSFUL Total time: 1 second

1 个答案:

答案 0 :(得分:2)

通常,桌面版本应该返回Windows的exe文件和Mac的dmg。你得到jar文件可能会出错。

您可以在How do I页面上找到大量信息,这里是link到桌面版本。

您可以做的另一件事是在Google搜索前添加https://www.codenameone.com

例如,搜索这样的桌面版本:https://www.codenameone.com desktop application

我还建议您关注Codenameone blog,因为过去发布的许多很酷的内容都有新功能,最新版本和存档。