Some issues about Eclipse and JDK installation process

First, the environment variable configuration

  1. System Configuration CLASSPATH variable

CLASSPATH system variable for the class search path

    ①, encountered when using javac compiling import time will pass this variable to configure the path to find. If you are configuring directory, you will find the .class or .java directory (.java automatically compiled .class) class file, .jar file if it is, .jar in the class will be referenced, can also javac -cp specified CLASSPATH

    Find the order of ②, the use of java run java program when import class is

      jre / lib in * .jar, or -Xbootclasspath parameter specifies .jar path (loaded by the boot class loader)

      jre / lib / ext descendant directories and sub .class files * .jar file, or specified by system variables java.ext.dirs directories and files (extension class loader)

      .Class configuration and arranged in the descendants Catalog .jar classes (class loader application) in the CLASSPATH

              Beginning ③ use ;. A lookup resource class using java or javac priority from the current directory; tools.jar is the system used to compile a class when used.

  2, the configuration of system variables JAVA-HOME

  3. Configure the system variables path

 

 

 

Second, the version does not support issues

 

jdk version used is too low, it does not support the use of Eclipse.

 

Three, cmd flash solutions disappear

CMD命令窗口在一些特殊情况时我们会用到,如PING下看网络通不通。在CMD窗口里运行命令如磁盘格式转换,在开始运行输入CMD回车后,CMD命令黑框框出来闪一下就消失不见了的问题可以参考下下面的解决方法。

  1、首先查看C:\WINDOWS\SYSTEM32下的CMD.EXE是否存在,文件日期是否正常;

  检测结果为正常,与其他系统文件日期相同,应该不是这个问题。

  2、再查看系统的环境变量,path是否包含如下路径:%SystemRoot%\system32;%SystemRoot%;

  查看后发现存在(如果不存在就需加上)

  3、看来还不是在上面的两个常见问题,应该是注册表被修改过。最后终于找到了解决办法:

  注册表:

  HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor\AutoRun里的值清空,不能是空格哦!(就是没有数值,而一闪而过可能是EXIST、EXIT,把它清除即可。)

  4,如果还是不行就用 cmd /k 来试试吧,例如在运行窗口中输入cmd /k ipconfig /all

      cmd/k

四,安装jdk时,为什么会安装两个jre,而且不用配置jre的环境。

 看到一篇比较好的解释,原文链接:http://blog.csdn.net/han_dongwei/article/details/7782771

 

Guess you like

Origin www.cnblogs.com/boogie-xy/p/11244515.html