|
|
发表于 2006-10-23 16:44:58
|
显示全部楼层
HelloWorld.java:
- public class HelloWorld {
- public static void main(String args[]) {
- System.out.println("Hello World!") ;
- }
- }
复制代码
$gcj --main=HelloWorld HelloWorld.java
You get a.out in current directory.
$./a.out
and you get the "hello world" string.
$gcj -C HelloWorld.java
and you can get HelloWorld.class in current directory.
$gij HelloWorld
and you get the 'hello world' string! |
|