Why is the C ++ perspective and new project options not available in Eclipse?

I installed the Eclipse IDE package for Java developers from the Eclipse website. I also work with C ++ projects, so I used the option "Install new software ..." to install the package "C / C ++ Development Tools". After this and restarting Eclipse, the C ++ perspective did not appear; pressing the "Open Perspective" button does not display the "C / C ++" parameter. I also found that I was unable to create a project in C ++; tree "C / C ++" node did not appear in the project creation wizard. Java perspectives and new project options are available.

I verified that the CDT was installed by going to the "Installed Installation Details" dialog box - "C / C ++ Development Tools" appeared in the "Installed Software" list. I tried uninstalling this package and reinstalling it again without success. I tried to completely remove the Eclipse installation and install the "Eclipse IDE for C / C ++ Developers". There were also no C / C ++ parameters in this installation. I checked the .log file in the workspace directory and did not find anything unusual.

Why are C / C ++ functions unavailable after installing the CDT function in Eclipse?

+6
source share
5 answers

The path to this Eclipse system was installed on the included version of the Java runtime version 1.3.1, and the Eclipse executable used this version to run Eclipse. Unfortunately, there is no indication of this in Eclipse, nor any sign that something has failed.

Using the instructions here , I changed the JVM to javaw.exe in a Java 7 installation. After that, the C / C ++ perspective and new project parameters appeared in Eclipse.

+3
source

I ran into a similar problem with Eclipse-Luna (4.4) on Yosemite (10.10). - CANNOT get the perspective of C / C ++ with JRE (8u25) or java 1.6 on Yosemite.

But I manage to get a C / C ++ perspective with installing JDK (8u25).

+3
source

I had the same problem too.

I just installed java7 and restarted eclipse:

 sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java7-installer 
+2
source

I had the same problem for Linux (CentOS 6.5 32-bit) with Eclipse Luna:

  • I installed the standard Eclipse (eclipse-java-luna-SR1-linux-gtk.tar.gz)
  • In eclipse, under Help-> Install New Software, I added the p2 program repository to the list of sites: http://download.eclipse.org/tools/cdt/releases/8.5
  • I installed the C / C ++ development tools and C / C ++ SDK development tools
  • On CentOS, I also installed the OpenJDK development environment java-1.7.0-devel-1: 1.7.0.65-2.5.1.2.el6_5 (i686).
  • I edited eclipse.ini to increase the Xmx setting to 1024 m from 256 m, but I did not add the -vm property. After restarting the Eclipse settings, I made sure that it was using JDK 1.7.

Vista C ++ was not on the list of available perspectives.

But the C ++ Project was on the File-> New menu, and when I selected it, Eclipse asked me if I wanted to use the C ++ perspective. I said yes, and he appeared, and is now available in the list of prospects.

+1
source

The fix for me was to install the latest JDK from Oracle. I had a new installation of Yosemite and the Eclipse developers for Java. The C / C ++ option appeared after installing and restarting Eclipse. Hope this helps!

+1
source

Source: https://habr.com/ru/post/945975/


All Articles