我的一个工程有很多不同的包当然也放在不同的目录中,用javac如何便宜
up 问题点数:0、回复次数:13Top
1 楼xiaohaiz(城里的老土,两眼依然通红!)回复于 2003-04-03 18:52:44 得分 0
较有价值的解决办法是做一个工程的makefile.
推荐使用ant,直接执行javac task就可以了.http://ant.apache.org
不知道是不是这个意思?Top
2 楼mem_fox(JAVA狐狸)回复于 2003-04-03 19:06:25 得分 0
同意,用ant就可用同时编译不同目录下的文件了
比如src/com/test.java 和baksrc/com/csdn/csdnTest.javaTop
3 楼ChenZhi_cz(潜水艇)回复于 2003-04-03 19:48:22 得分 0
同意Top
4 楼ezyw(ezyw)回复于 2003-04-22 17:16:50 得分 0
upTop
5 楼ezyw(ezyw)回复于 2003-04-22 17:17:15 得分 0
直接用javac怎么用??Top
6 楼olivia2046(Start in my life)回复于 2003-04-22 23:07:36 得分 0
关注Top
7 楼jimshen(俺从来不看短消息)回复于 2003-04-23 08:34:35 得分 0
用ANT吧Top
8 楼ezyw(ezyw)回复于 2003-04-25 10:29:52 得分 0
不会吧,用javac就不行了???Top
9 楼ezyw(ezyw)回复于 2003-05-21 13:33:04 得分 0
javac如何编译呢??Top
10 楼seven1996(小七)回复于 2003-05-21 16:07:37 得分 0
我觉得
在java文件中直接import 要用到的class就可以阿。给出目录就可以阿
编译也不必特殊处理Top
11 楼ezyw(ezyw)回复于 2003-05-26 11:12:28 得分 0
究竟用javac 如何编译??Top
12 楼ezyw(ezyw)回复于 2003-09-20 12:49:04 得分 0
?Top
13 楼glassprogrammer()回复于 2003-09-20 13:08:23 得分 0
-sourcepath : Specify where to find input source files
C:\>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 optionsTop




