简体   繁体   English

下载了Eclipse,还下载了Java SE Development Kit 7,但是无法在Eclipse中启动新项目吗?

[英]Downloaded Eclipse and also downloaded Java SE Development Kit 7 but cannot get a new project in Eclipse to work?

I downloaded eclipse and it wouldn't open at all, then I went and downloaded Java SE Development Kit 7 and now Eclipse opens but I still cant get a new project to open where I can mess around with some code. 我下载了eclipse,它根本无法打开,然后我去下载了Java SE Development Kit 7,现在Eclipse打开了,但是我仍然无法打开一个新项目,在这里我可以弄乱一些代码。 Is it because I have them downloaded into two different locations? 是否因为我将它们下载到两个不同的位置? I have Eclipse downloaded in: 我在以下位置下载了Eclipse:

OS(C):/Program Files(x86)/Eclipse on my laptop and I downloaded the Java SE Development Kit 7 to OS(C):/Program Files/Java. 我的笔记本电脑上是OS(C):/ Program Files(x86)/ Eclipse,我将Java SE Development Kit 7下载到OS(C):/ Program Files / Java。 Any help would be much appreciated. 任何帮助将非常感激。

Open the Java > Installed JREs preference page. 打开Java> Installed JREs首选项页面。 Check the box on the line for the JRE that you want to assign as the default JRE in your workbench. 选中要在工作台中分配为默认JRE的JRE的行上的框。 If the JRE you want to assign as the default does not appear in the list, you must add it. 如果要分配为默认值的JRE没有出现在列表中,则必须添加它。 Click OK. 单击确定。

and then if you find the right jre at place,then close the eclipse welcome page. 然后,如果在正确的位置找到合适的jre,则关闭eclipse欢迎页面。 Then go the File option at top left corner then new and then select Java Project and it should work. 然后转到左上角的File选项,然后单击new,然后选择Java Project,它应该可以工作。

            File>>New>>Java Project

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM