javac的问题(50分)

  • 主题发起人 meng9999
  • 开始时间
M

meng9999

Unregistered / Unconfirmed
GUEST, unregistred user!
我想把我的java文件编绎后放在一个指定的目录下,应怎样写:
如我的.java文件在d:/meng/meng.java 想用javac编绎后产生的meng.class文件
放到e:/uu/下怎么样???
 
-d [目录] 输出类文件位置
 
javac <选项> <源文件>
javac -d e:/uu/ d:/meng/meng.java
 
javac -d 欲放置路径 源文件路径 试一下
 
javac -d 欲放置路径 源文件路径 试一下
D:/>javac /?
javac: invalid argument: /?
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
-O Optimize;
may hinder debugging or enlarge class file
-nowarn Generate no warnings
-verbose Output messages about what the compiler isdo
ing
-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
-target <release> Generate class files for specific VM version
 
顶部