අපිට අවශ්ය වන්නේ JDK එක නිසා Download JDK බොත්තම මත ක්ලික් ක්රන්න.JDK එක download කරගත් පසු සාමාන්ය ප්රිදි එය install ක්රගන්න.
දැන් කරන්න තියෙන්නේ Path එක සෙට් ක්රන එකයි. මේ සඳහා මා විසින් සකසන ලද පහත වීඩියෝ එක බලන්න.
Path එක නියමාකාරයෙන් සකස් වූයේ නම් command prompt එකේ javac ලෙස විධාන කල විට පහත ලෙස දිස්විය යුතුයි.
Usage: javac
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 used
-classpathSpecify where to find user class files and annotation processors
-cpSpecify where to find user class files and annotation processors
-sourcepathSpecify where to find input source files
-bootclasspathOverride location of bootstrap class files
-extdirsOverride location of installed extensions
-endorseddirsOverride location of endorsed standards path
-proc:{none,only} Control whether annotation processing and/or compilation is done.
-processor[, , ...]Names of the annotation processors to run; bypasses default discovery process
-processorpathSpecify where to find annotation processors
-dSpecify where to place generated class files
-sSpecify where to place generated source files
-implicit:{none,class} Specify whether or not to generate class files for implicitly referenced files
-encodingSpecify character encoding used by source files
-sourceProvide source compatibility with specified release
-targetGenerate class files for specific VM version
-version Version information
-help Print a synopsis of standard options
-Akey[=value] Options to pass to annotation processors
-X Print a synopsis of nonstandard options
-JPass directly to the runtime system