安装java组件及环境变量配置(Install the Java component and the environment variable configuration).doc
- 1、本文档共7页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
安装java组件及环境变量配置(Install the Java component and the environment variable configuration)
安装java组件及环境变量配置(Install the Java component and the environment variable configuration)
Save the file javac Hello.java / / compiled executable file Java Hello
Direct download
Win7 system Jdk version 1.6
Right click on advanced computer system - - Settings Advanced - attribute of environmental variables
The system variables - New - variable name: JAVA_HOME D:\Program Files\Java\jdk1.6.0_12 (variable value: This is the JDK installation path)
The system variables - Edit variable name: Path in the variable value of the front plus:%JAVA_HOME%\bin; (if have Path, no other new, directly behind, but need; and in front of the existing items separated)
The system variables - New - variable name: CLASSPATH variable value:
%JAVA_HOME%\lib;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar;
E:\Program Files\Java\jdk1.6.0_22
Finally, test if the environment variable is set successfully
Enter javac under CMD
If the following information appears
Usage: javac Options source file
Among them, the possible options include:
-g generates all debugging information
-g:none does not generate any debugging information
-g:{lines, vars, and source} generate only some debugging information
-nowarn does not generate any warnings
-verbose outputs messages about the actions that the compiler is performing
The -deprecation output uses the source location of the obsolete API
-classpath Path specifies the location of finding user class files
-cp Path specifies the location of finding user class files
-sourcepath Path specifies the location of the lookup input source file
-bootclasspath Path to cover the location of the boot class file
-extdirs Directory the location of the extended directory that covers the installation
-endorseddirs Directory the location of the standard path that covers the signature
-d Directory specifies the location where the generated class files are stored
-encoding code specifies the character encoding used by the source file
-source version provi
您可能关注的文档
- vista系统的关闭自动还原(Automatic shutdown of Vista system).doc
- vb程序高一版(High version of the VB program).doc
- vsd资料(VSD data).doc
- waves(波浪).doc
- vb学习笔记(VB learning notes).doc
- vi系统导入内容提纲(VI system import content outline).doc
- web.config配置详解(Web.config configuration detail).doc
- win xp系统恢复需要注意的十三大方面(Win XP system restore it needs attention).doc
- win7备份与还原(Win7 backup and restore).doc
- win7备份还原(Win7 backup restore).doc
文档评论(0)