为什么IntelliJ从JDK

为什么IntelliJ从JDK

本文介绍了为什么IntelliJ从JDK 1.6导入额外的库以获得简单的hello world程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Java和IntelliJ的新手,我只是在做一个简单的hello world程序。 IntelliJ有大约10个来自JDK 1.6的库添加到我的项目中,即使我没有在我的类中导入任何看起来需要它们的东西。我从零开始创建了一个新项目。

I'm new to Java and IntelliJ and I am just doing a simple "hello world" program. IntelliJ has about 10+ libraries from JDK 1.6 added to my project even though I'm not importing anything in my classes that would seem to need them. I created a new project from scratch.

有些库是alt-rt.jar,charsets.jar,deploy.jar,dnsns.jar,javaws.jar, jce.jar,jsse.jar,localedata.jar等。

Some of the libraries are alt-rt.jar, charsets.jar, deploy.jar, dnsns.jar, javaws.jar, jce.jar, jsse.jar, localedata.jar, etc.

有人可以解释为什么要添加这些库吗?我可以从模块设置/ SDK中删除这些库而不会产生任何不良影响吗?

Can anyone explain why those libraries were added? Can I remove those libraries from the Module Settings/SDK with no ill effect?

推荐答案

它们仍然会在类路径中,因为它们是标准库的一部分。我不确定如果你删除会发生什么,但你绝对不需要这样做。

They will be in the classpath anyways as they are part of the standard library. I'm not sure what will happen if you remove them, but you definitely don't need to do that.

这篇关于为什么IntelliJ从JDK 1.6导入额外的库以获得简单的hello world程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-24 10:52