Developer community
0 votes
1.5k views
asked by Expert (15k points) 15 23 31 | 1.5k views

1 Answer

0 votes
 
javac [options] [sourcefiles] [classes]
options: Refers to command line options.
sourcefiles: Refers to the source files that need to be compiled.
classes: Refers to one or more classes to be processed for annotations.
Option                                           Description
-cp path or -classpath path       Specifies the Java classpath.
-d                                                   directory Sets the destination directory
                                                        to store class files.
-g                                                   Generates debugging information.
-g:none                                         Instructs the javac tool not to generate
                                                       any debugging information.
-help                                              Prints information about the options of
                                                       the javac tool.
-Xlint                                             Displays warnings against the use of
                                                      deprecated classes and methods.
-Xlint:-name                                Disables deprecation warnings for a
                                                     specified class, interface, or method.
-Xlint:path                                   Displays a warning when you specify a
                                                  directory to compile but the directory does not exist.
 
 
answered by Advisor (8.4k points) 10 15 18

Related questions

0 votes
1 answer
asked by smith Geek (15.3k points) 17 41 61 | 1.4k views
0 votes
1 answer
asked by felin Advisor (8.4k points) 10 15 18 | 915 views
0 votes
1 answer
asked by felin Advisor (8.4k points) 10 15 18 | 8 views
0 votes
1 answer
asked by rock Expert (15k points) 15 23 31 | 1.4k views
0 votes
1 answer
asked by rock Expert (15k points) 15 23 31 | 25 views
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true

Categories


C Books Guide and List
C++ Books Guide and List
Best Java Books

3.8k questions

4k answers

117 comments

10.7k users

3,751 questions
4,046 answers
117 comments
10,709 users