java - 为什么jdk1.5 以后就可以不用配置classpath环境变量?
PHP中文网
PHP中文网 2017-04-18 09:40:37
0
4
1214

本人初学者,最近在看Java疯狂讲义时里面说jdk1.5以后就不用配置classpath环境变量,配了有时反而会出现错误?这是为什么 ?

PHP中文网
PHP中文网

认证高级PHP讲师

reply all (4)
大家讲道理

He is talking about Windows. Linux still needs to be configured. The reason why windows does not need to be configured is because it uses the registry, so it is not necessary. However, some third-party Java applications still require environment variables, so it is best to configure them too

    左手右手慢动作

    If an error occurs during configuration, it is most likely that you configured it incorrectly. I remember that higher versions of jdk will configure environment variables by themselves. I am used to checking whether the environment variables are correct after installing jdk. In fact, you can know just by testing it on the command line

      迷茫

      There seems to be no reason ^^, the Oracle official website no longer mentions manual configurationclasspathin the installation instructions section

      Then you probably don’t have to worry about it, haha

        小葫芦

        I didn’t do it before, but now I do it, there’s nothing strange about it. Isn’t it good that I did it for you?

          Latest Downloads
          More>
          Web Effects
          Website Source Code
          Website Materials
          Front End Template
          About us Disclaimer Sitemap
          php.cn:Public welfare online PHP training,Help PHP learners grow quickly!