|
好像没能下载?我用的COM1
D:\AVR\Mega8\Java_ASURO\nanovm\NanoVM\nanovm\tool>doall Mega8 HelloWorld
D:\AVR\Mega8\Java_ASURO\nanovm\NanoVM\nanovm\tool>cd ../java/examples
D:\AVR\Mega8\Java_ASURO\nanovm\NanoVM\nanovm\java\examples>javac -cp . HelloWorl
d.java
javac: invalid flag: -cp
Usage: javac <options> <source files>
where possible options include:
-g Generate all debugging info
-g:none Generate no debugging info
-g:{lines,vars,source} Generate only some debugging info
-nowarn Generate no warnings
-verbose Output messages about what the compiler is doing
-deprecation Output source locations where deprecated APIs are us
ed
-classpath <path> Specify where to find user class files
-sourcepath <path> Specify where to find input source files
-bootclasspath <path> Override location of bootstrap class files
-extdirs <dirs> Override location of installed extensions
-d <directory> Specify where to place generated class files
-encoding <encoding> Specify character encoding used by source files
-source <release> Provide source compatibility with specified release
-target <release> Generate class files for specific VM version
-help Print a synopsis of standard options
D:\AVR\Mega8\Java_ASURO\nanovm\NanoVM\nanovm\java\examples>cd ../../tool
D:\AVR\Mega8\Java_ASURO\nanovm\NanoVM\nanovm\tool>pause
请按任意键继续. . .
D:\AVR\Mega8\Java_ASURO\nanovm\NanoVM\nanovm\tool>java -jar NanoVMTool.jar confi
g\Mega8.config ../java/examples HelloWorld
NanoVMTool V1.5 - (c) 2005-2007 by Till Harbaum
Initializing native mapper
Read config config\Mega8.config
read native config\Object
trying to load config\Object.native
read native config\System
trying to load config\System.native
read native config\PrintStream
trying to load config\PrintStream.native
read native config\InputStream
trying to load config\InputStream.native
read native config\StringBuffer
trying to load config\StringBuffer.native
read native config\StringBuilder
trying to load config\StringBuilder.native
read native config\AVR
trying to load config\AVR.native
read native config\Port
trying to load config\Port.native
read native config\Timer
trying to load config\Timer.native
read native config\Adc
trying to load config\Adc.native
read native config\Pwm
trying to load config\Pwm.native
Loading class HelloWorld
Classfile version 0.46
CP: # of entries = 29
CP: 1 METHODREF 6 15
CP: 2 FIELDREF 16 17
CP: 3 STRING 18
CP: 4 METHODREF 19 20
CP: 5 CLASS 21
CP: 6 CLASS 22
CP: 7 UTF "<init>"
CP: 8 UTF "()V"
CP: 9 UTF "Code"
CP: 10 UTF "LineNumberTable"
CP: 11 UTF "main"
CP: 12 UTF "([Ljava/lang/String;)V"
CP: 13 UTF "SourceFile"
CP: 14 UTF "HelloWorld.java"
CP: 15 NAMEANDTYPE 7 8
CP: 16 CLASS 23
CP: 17 NAMEANDTYPE 24 25
CP: 18 UTF "Hello World!"
CP: 19 CLASS 26
CP: 20 NAMEANDTYPE 27 28
CP: 21 UTF "HelloWorld"
CP: 22 UTF "java/lang/Object"
CP: 23 UTF "java/lang/System"
CP: 24 UTF "out"
CP: 25 UTF "Ljava/io/PrintStream;"
CP: 26 UTF "java/io/PrintStream"
CP: 27 UTF "println"
CP: 28 UTF "(Ljava/lang/String;)V"
class: flags=32; class index=5; super class index=6
class: #interfaces=0
class: #fields=0
class: #methods=2
method: flags=0; name index=7; signature index=8
method: #attributes=1
method: attribute name index=9; length=29
code: maxStack=1; maxLocals=1; bytecode length=5
code: exception table length=0
code: #attributes=1
code: code attribute name index=10; length=6
line numbers: #line numbers=1
line numbers: start PC=0; line number=5
method: flags=9; name index=11; signature index=12
method: #attributes=1
method: attribute name index=9; length=37
code: maxStack=2; maxLocals=1; bytecode length=9
code: exception table length=0
code: #attributes=1
code: code attribute name index=10; length=10
line numbers: #line numbers=2
line numbers: start PC=0; line number=7
line numbers: start PC=8; line number=8
class: #attributes=1
class: attribute name index=13; length=2
class: filename index=14
Checking dependencies ...
Resolving method references ...
Method java/lang/Object.<init>:()V -> native
Method java/io/PrintStream.println:(Ljava/lang/String;)V -> native
Successfully loaded 1 classes
Generating unified class file ...
Feature value is 0x0
Writing 0 constant entries
Writing 1 strings
entry[0] = "Hello World!"
Converting HelloWorld.<init>:()V
invoke #1 -> method java/lang/Object:<init>.()V, native id: #1000
Converting HelloWorld.main:([Ljava/lang/String;)V
get/putstatic #2 -> field java/lang/System:out.Ljava/io/PrintStream;, native, id
: #1100
ldc #3 -> string "Hello World!", id: #0
invoke #4 -> method java/io/PrintStream:println.(Ljava/lang/String;)V, native id
: #1201
Feature value is 0x0
Exception in thread "main" java.lang.NoClassDefFoundError: gnu/io/UnsupportedCom
mOperationException
at Uploader.setUploader(Uploader.java:45)
at UVMWriter.<init>(UVMWriter.java:265)
at NanoVMTool.main(NanoVMTool.java:79)
D:\AVR\Mega8\Java_ASURO\nanovm\NanoVM\nanovm\tool> |
|