Ubuntu 12.04上的Eclipse安装问题 [英] Issues with Eclipse setup on Ubuntu 12.04

查看:190
本文介绍了Ubuntu 12.04上的Eclipse安装问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



首先我面临的问题与:
Eclipse在Java项目中的开放声明
我尝试了这里提到的一切,但似乎没有为我工作...



然后我探索了一些,并得到另一个类似于:
我正在获得资源不在项目的构建路径上
As根据第一个答案,第二点转到Java Build Path,我尝试去那里,但是在我的项目属性中找不到任何Java Build Path部分。



当我点击项目属性时,它只显示以下截图中给出的选项:





我知道这是一些简单的安装问题,但我无法处理。

解决方案

答案是在评论中写下讨论:



如果您在 Ubuntu 12.04 并安装 Eclipse 您可能最终没有Java开发工具( JDT )的裸机安装。



通过帮助手动安装软件包 - > 安装新软件然后搜索编程语言/ Eclipse Java开发工具 Java开发应该工作。



对于 maven 项目您应该使用导入现有的Maven项目而不是将其导入为Java项目。


I am facing setup issues in my eclipse Kepler on Ubuntu 12.04 on Virtual box.

Firstly i was facing issue same as: Eclipse Open declaration in Java project I tried everything mentioned here, but nothing seems to be working for me...

Then I explored some more, and get another error message similar to: I am getting resource not on the buildpath of the project As per its 1st answer, 2nd point go to "Java Build Path", I tried going there, but i cannot find any "Java Build Path" section in my project property.

When I click on Project properties, it shows only options given in the following screenshot:

I know this is some easy setup issue, but i am unable to handle it.

解决方案

The answer is a write-up of the discussion in the comments:

If you are on Ubuntu 12.04 and install Eclipse you could end up with a bare-bones install without the Java Development Tools (JDT).

After installing the package manually via Help -> Install New Software and then searching for Programming Languages / Eclipse Java Development Tools Java development should work.

For maven projects you should use the import Existing Maven Projects instead of importing it as a java project.

这篇关于Ubuntu 12.04上的Eclipse安装问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆