b2科目四模拟试题多少题驾考考爆了怎么补救
b2科目四模拟试题多少题 驾考考爆了怎么补救

Griffon五分钟入门指南(2)

电脑杂谈  发布时间:2016-04-19 12:01:28  来源:网络整理


要运行应用程序,总共有三种方式:
(1) 以桌面应用程序方式运行程序
D:\tmp>cd HelloWorld
D:\tmp\HelloWorld>griffon run-app
Welcome to griffon 1.0.2 -
Licensed under Apache Standard License 2.0
Griffon home is set to: C:\griffon
Base Directory: D:\tmp\HelloWorld
Running script C:\griffon\scripts\RunApp.groovy
Resolving dependencies...
......
Launching application ...
2012-08-19 18:18:51,273 [main] INFO griffon.swing.SwingApplication - Initializing all startup groups: [helloWorld]
弹出一窗口程序,如下:

Griffon五分钟入门指南


图1:
关闭此窗口程序,输出:
2012-08-19 18:22:48,436 [AWT-EventQueue-0] INFO griffon.swing.SwingApplication- Shutdown is in process
[delete] Deleting directory D:\tmp\HelloWorld\staging\windows64
[delete] Deleting directory D:\tmp\HelloWorld\staging\windows
可见,第一种方式其背后是通过Swing库实现的。
(2) 以Applet程序方式在浏览器中运行
D:\tmp\HelloWorld>griffon run-applet
Welcome to griffon 1.0.2 -
Licensed under Apache Standard License 2.0
Griffon home is set to: C:\griffon
......
[copy] Copying 11 files to D:\tmp\HelloWorld\staging
[copy] Copying 19 files to D:\tmp\HelloWorld\dist\applet
[copy] Copied 5 empty directories to 4 empty directories under D:\tmp\Hello
World\dist\applet
[zip] Building zip: D:\tmp\HelloWorld\dist\applet\helloWorld-0.1-applet.zip
图2:

Griffon五分钟入门指南


由于我安装的是JDK 7,griffon运行有异常,官方推荐用JDK6。
(3) 以JNLP WebStart项目那样运行
D:\tmp\HelloWorld>griffon run-webstart
Welcome to griffon 1.0.2 -
Licensed under Apache Standard License 2.0
Griffon home is set to: C:\griffon
......
[copy] Copied 5 empty directories to 4 empty directories under D:\tmp\Hello
World\dist\webstart
[zip] Building zip: D:\tmp\HelloWorld\dist\webstart\helloWorld-0.1-webstart.zip
图3:

Griffon五分钟入门指南


同样是JDK7的问题。难怪官方老是推荐要使用JDK6。

以上就是关于griffon的全部内容,相信你一定会非常满意。


本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/ruanjian/article-1835-2.html

相关阅读
    发表评论  请自觉遵守互联网相关的政策法规,严禁发布、暴力、反动的言论

    热点图片
    拼命载入中...