File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes compilation command Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "compilation command" Watch "compilation command" New topic
Author

compilation command

Paul Keohan
Ranch Hand

Joined: Mar 15, 2000
Posts: 411
What do I need to type with javac to compile all my classes to their packages? If I just use javac *.java, they'll compile to the same directory.
Larry Anderson
Greenhorn

Joined: Aug 06, 2001
Posts: 26
Use the -d option at the command line. Or you could type javac and simply see all the command line parameters. Here they are for reference.
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 is doing
-deprecation Output source locations where deprecated APIs are used
-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
 
jQuery in Action, 2nd edition
 
subject: compilation command