新人请教:怎么把*.java源文件转成*.class文件
怎么把*.java源文件转成*.class文件
请问大家
怎么把*.java源文件转成*.class文件呢?
我找了很久也没有找到
能用CMD运行嘛
还是要用其它的工具呢
Microsoft Windows XP [版本 5.1.2600]
(C) 版权所有 1985-2001 Microsoft Corp.
C:\Documents and Settings\业务.YDQT>java -version
java version "1.4.2_18"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_18-b06)
Java HotSpot(TM) Client VM (build 1.4.2_18-b06, mixed mode)
C:\Documents and Settings\业务.YDQT>
Microsoft Windows XP [版本 5.1.2600]
(C) 版权所有 1985-2001 Microsoft Corp.
C:\Documents and Settings\业务.YDQT>javac
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
C:\Documents and Settings\业务.YDQT>
Microsoft Windows XP [版本 5.1.2600]
(C) 版权所有 1985-2001 Microsoft Corp.
C:\Documents and Settings\业务.YDQT>javac cc.java
cc.java:32: <identifier> expected
public Image null[][];
^
cc.java:48: <identifier> expected
public boolean void;
^
cc.java:66: <identifier> expected
public int else[];
^
cc.java:84: <identifier> expected
public int case;
^
cc.java:125: <identifier> expected
k char;
^
cc.java:133: <identifier> expected
public int long;
^
cc.java:141: <identifier> expected
d goto;
^
cc.java:167: illegal start of expression
void = false;
^
cc.java:178: ´else´ without ´if´
else = new int[0];
^
cc.java:215: not a statement
long = 0;
^
cc.java:215: ´;´ expected
long = 0;
^
cc.java:220: illegal start of expression
goto = new d("返回", 4, 2);
^
cc.java:224: illegal start of expression
if(goto);
^
cc.java:224: ´)´ expected
if(goto);
^
cc.java:227: <identifier> expected
s = (g.int - t) / 2;
^
cc.java:227: ´)´ expected
s = (g.int - t) / 2;
^
cc.java:230: illegal start of expression
for();
^
cc.java:231: <identifier> expected
a5 = g.int;
^
cc.java:232: illegal start of expression
case = 6 * super.a + 15;
^
cc.java:232: ´)´ expected
case = 6 * super.a + 15;
^
cc.java:233: <identifier> expected
a4 = (g.int - a5) / 2;
^
cc.java:233: ´)´ expected
a4 = (g.int - a5) / 2;
^
cc.java:236: <identifier> expected
demontower.c.do(4);
^
cc.java:236: not a statement
demontower.c.do(4);
^
cc.java:245: <identifier> expected
v.null();
^
cc.java:245: not a statement
v.null();
^
cc.java:247: not a statement
char = new k(demontower, this);
^
cc.java:247: ´;´ expected
char = new k(demontower, this);
^
cc.java:254: <identifier> expected
public void int()
^
cc.java:1058: ´(´ expected
}
^
30 errors
C:\Documents and Settings\业务.YDQT>