2015-12-02 89 views
1

好的,我在eclipse的simular下運行了一些演示程序。提交了桌面版本並獲得了一個jar。現在我該如何運行jar?它似乎並不是 可直接運行。如何運行構建codenameone構建?

此外,我應該在哪裏找到這些信息,而不是在這裏詢問 這個骨頭問題?

> 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 

回答

2

通常情況下,桌面版本應該爲Mac返回exe文件的windows和dmg。有些東西可能出了問題,你得到jar文件。

你可以在How do I頁面找到大量的信息,這裏是一個link到桌面版本。

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

例如,搜索桌面建立這樣的:https://www.codenameone.com desktop application

我也會建議你遵循Codenameone blog,作爲新的功能,最新的版本和許多很酷的東西歸檔,在過去發佈的可用那裏。

+0

我添加了我的構建成績單的問題。我看不到任何exe文件 – ddyer

+0

您應該通過右鍵單擊項目 - > Codenameone - >發送桌面Windows來發送構建。然後在Codenameone儀表板上跟蹤您的構建狀態https://www.codenameone.com/build-server.html – Diamond

+1

我認爲它的可能@ddyer在bin目錄下查找,而不是在您提供的構建服務器URL上。 EXE等應該在那裏。 –