如何将 CDT 安装到 Eclipse Luna
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/25855293/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to install CDT to Eclipse Luna
提问by Mono Jamoon
I am trying to install the C/C++ development tools for Eclipse Luna.
我正在尝试为 Eclipse Luna 安装 C/C++ 开发工具。
Taking reference from this page here, I navigated to Help> Install New Software> and placed http://download.eclipse.org/tools/cdt/releases/8.4
in the "Works with" section.
参考这里的这个页面,我导航到帮助>安装新软件>并放置http://download.eclipse.org/tools/cdt/releases/8.4
在“Works with”部分。
I got the options for C/C++ Development Tools and C/C++ Development Tools SDK which I downloaded and restarted Eclipse. However, on restarting eclipse I cannot find any place/interface to create C programs or files. The tools are showing up in the installed softwares list(screen attached).
我得到了 C/C++ 开发工具和 C/C++ 开发工具 SDK 的选项,我下载并重新启动了 Eclipse。但是,在重新启动 eclipse 时,我找不到任何地方/接口来创建 C 程序或文件。这些工具显示在已安装的软件列表中(附屏幕)。
I have also installed MinGw as instructed here.
我还按照此处的说明安装了 MinGw 。
Have I missed any step? How can I start C development in Luna. Please advice.
我错过了任何一步吗?如何在 Luna 中开始 C 开发。请指教。
回答by tonykou
Your JDK version is below 1.6 which is too old. You should upgrade it to 1.7 or higher.
您的 JDK 版本低于 1.6,这太旧了。您应该将其升级到 1.7 或更高版本。
回答by MaLiN2223
I had the same problem - installing java 8 helped.
我遇到了同样的问题 - 安装 java 8 有帮助。
回答by wege11
I had exactly the same problem, using Luna SR 1a on Ubuntu 12.04 LTS.
我遇到了完全相同的问题,在 Ubuntu 12.04 LTS 上使用 Luna SR 1a。
Switching from Java 1.6.0_34 to 1.7.0_75 fixed the issue - everything works now
从 Java 1.6.0_34 切换到 1.7.0_75 解决了这个问题 - 现在一切正常
回答by RonR
I had the same issue with Luna. I installed Java 1.7.0_80, which then allowed me to change to the C/C++ Perspective and create new C/C++ projects.
我对 Luna 也有同样的问题。我安装了 Java 1.7.0_80,然后允许我更改为 C/C++ Perspective 并创建新的 C/C++ 项目。
My system previously only had Java 1.6.0_45, which was sufficient to run Luna but apparently insufficient to run CDT in its entirety.
我的系统以前只有 Java 1.6.0_45,足以运行 Luna 但显然不足以运行整个 CDT。