අපිට අවශ්ය වන්නේ 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
මගේ ජාවා ඉන්ස්ටෝල් කළාම මේ විදිහේ කේස් එකක් එන්ටාර් උනේ?
ReplyDeleteMicrosoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\ruwan>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 u
sed
-classpath Specify where to find user class files and annotati
on processors
-cp Specify where to find user class files and annotati
on processors
-sourcepath Specify where to find input source files
-bootclasspath Override location of bootstrap class files
-extdirs Override location of installed extensions
-endorseddirs Override location of endorsed standards path
-proc:{none,only} Control whether annotation processing and/or compil
ation is done.
-processor [,,...] Names of the annotation processors
to run; bypasses default discovery process
-processorpath Specify where to find annotation processors
-d Specify where to place generated class files
-s Specify where to place generated source files
-implicit:{none,class} Specify whether or not to generate class files for
implicitly referenced files
-encoding Specify character encoding used by source files
-source Provide source compatibility with specified release
-target Generate 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
-J Pass directly to the runtime system
-Werror Terminate compilation if warnings occur
@ Read options and filenames from file
C:\Users\ruwan>
windows 8 wala kohomada path aka set karanne?
ReplyDeletewindos 8 wala kohomada path aka set karanne?
ReplyDeleteමේ විදියට කරන්න.
ReplyDeletehttp://java-buddy.blogspot.com/2012/01/set-path-for-jdk-7-on-windows-8.html
මුල් කොටස විතරයි පොඩ්ඩක් වෙනස්. ඉතිරි ටික පරණ OS වල වගේමයි.