我的电脑(右键)→ → 属性 → → 高级 → → 环境变量 → → (系统变量)新建 → →
变量名:JAVA_HOME
变量值(java安装的目录):C:\Program Files\Java\jdk1.6.0_03
查看有没有classpath变量名,
如果有的话就编辑,然后复制以下在后面添加:
.%JAVA_HOME%\lib%JAVA_HOME%\lib\dt.jar%JAVA_HOME%\lib\tools.jar
如果没有的话,就新建 → →
变量名:classpath
变量值(java安装的目录):
.%JAVA_HOME%\lib%JAVA_HOME%\lib\dt.jar%JAVA_HOME%\lib\tools.jar
2、eclipse配置java
点eclipse菜单Window → → Preferences → → Java → → Installed JREs → → Add → → Standard VM → → Next → →
输入以下对应内容:
JRE home(java JRE的安装目录): C:\Program Files\Java\jre1.6.0_03
JRE name:jre1.6.0_03
然后点击Add External JARs ,添加C:\Program Files\Java\jre1.6.0_03\lib下面的.jar文件以及ext文件夹下面的.jar文件。然后点击Finish即可。到此配置完成!
12345<a href="https:///s?wd=git&tn=44039180_cpr&fenlei=mv6quAkxTZn0IZRqIHckPjm4nH00T1YvuAcvmWRzuWuWmHP-PHN90ZwV5Hcvrjm3rH6sPfKWUMw85HfYnjn4nH6sgvPsT6KdThsqpZwYTjCEQLGCpyw9Uz4Bmy-bIi4WUvYETgN-TLwGUv3EnHTvP1DzPWDvnjnvPW63rHTYn0" target="_blank" class="baidu-highlight">git</a>checkout BRANCH#windows下可以直接输入<a href="https:///s?wd=git&tn=44039180_cpr&fenlei=mv6quAkxTZn0IZRqIHckPjm4nH00T1YvuAcvmWRzuWuWmHP-PHN90ZwV5Hcvrjm3rH6sPfKWUMw85HfYnjn4nH6sgvPsT6KdThsqpZwYTjCEQLGCpyw9Uz4Bmy-bIi4WUvYETgN-TLwGUv3EnHTvP1DzPWDvnjnvPW63rHTYn0" target="_blank" class="baidu-highlight">git</a>gui#这个是一个<a href="https:///s?wd=GIT&tn=44039180_cpr&fenlei=mv6quAkxTZn0IZRqIHckPjm4nH00T1YvuAcvmWRzuWuWmHP-PHN90ZwV5Hcvrjm3rH6sPfKWUMw85HfYnjn4nH6sgvPsT6KdThsqpZwYTjCEQLGCpyw9Uz4Bmy-bIi4WUvYETgN-TLwGUv3EnHTvP1DzPWDvnjnvPW63rHTYn0" target="_blank" class="baidu-highlight">GIT</a>的GUI界面。#或者直接去下载个TortoiseGit欢迎分享,转载请注明来源:内存溢出
评论列表(0条)