CopyRight © 2008-2009 JavaWind.Net Studio All Rights Reserved
Powered By JWind.BBS Vesion 1.0.0 Beta1
Processed in 9 ms,0 (Queries) Gzip enabled
粤ICP备07511478号
| 风信Java论坛 ›› Java 基础开发 ›› 新人请教:怎么把*.java源文件转成*.class文件 | 登录 -> 注册 |
|
1F 新人请教:怎么把*.java源文件转成*.class文件 kkfgef Post by : 2008-08-08 16:46:39.0
新人请教:怎么把*.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> |
|
2F 麻烦大家把这个给改一下吧 kkfgef Post by : 2008-08-08 16:47:23.0
|
|
3F 唧唧 Post by : 2008-08-08 17:09:25.0
程序是你自己写的么? 刚才看了一下,用IDE编译 很多错误,程序几十上百处错误呢。 还有就是
import javax.microedition.lcdui.*; 这个包找不到,所以无法编译。 建议你用 Eclipse 来编译java文件! javac 命令就是把 java文件编译成 .class文件的,当然,要确保 java程序正确! |
|
4F metruetian Post by : 2008-11-29 11:41:59.0
该用户已经被锁定!
|
|
5F metruetian Post by : 2008-11-29 11:42:55.0
该用户已经被锁定!
|
| 风信Java论坛 ›› Java 基础开发 ›› 新人请教:怎么把*.java源文件转成*.class文件 | 登录 -> 注册 |