2009-09-11 85 views

回答

1

view plaincopy to clipboardprint?

class Helloworld { 
    public static void main(String[] args) { 
     System.out.println("Hello World!"); 
    } 
} 

class Helloworld { 
    public static void main(String[] args) { 
     System.out.println("Hello World!"); 
    } 
} 

的Makefile:

視圖plaincopy到clipboardprint?

android_dir_dx = $(ANDROID_SRC_DIR)/out/host/linux-x86/bin/dx 

所有:

javac Helloworld.java 
    $(android_dir_dx) --dex --output=Helloworld.jar Helloworld.class 

清潔:

@rm *.jar *.class 

android_dir_dx = $(ANDROID_SRC_DIR)/out/host/linux-x86/bin/dx all: javac Helloworld.java $(android_dir_dx) --dex --output=Helloworld.jar Helloworld.class clean: @rm *.jar *.class 

運行:

dalvikvm -cp /Helloworld.jar Helloworld 
相關問題