1

i want to install eclipse in my Ubuntu 16.04.2 LTS only for c\c++. but whenever i typed the command apt install eclipse-cdt it installs with Java which i don't want

i can download only c\c++ package from their website but i want to know that is their any way to do it with terminal.

i also tried uninstall the Java packages but uninstall button is disable their.this is image link (but unable in windows 10)

thus i want to install clean eclipse only with CDT c\c++ which is possible?

2

I am not 100% sure on this but I believe to use IDE specific builds, you have to compile yourself. For the C\C++ builds I believe you need the eclipse-cpp-neon-3 source

https://eclipse.org/downloads/packages/eclipse-ide-cc-developers/neon3

1

Eclipse is itself written in Java, so it requires the Java Runtime Environment (JRE), regardless of which programming language you plan to develop in. That's why "java" is a dependency of eclipse in the package manager. If you plan to do Java development, you'll also need the Java Development Kit (JDK). If you plan to do C/C++ development, you'll need the eclipse-CDT plugin (there are other plugins which provide support for other programming languages.)

-1

Don't use the Eclipse in the Ubuntu repositories. Download Eclipse-cdt directly from Eclipse.org and untar the download to a directory on your system.

first installe java.click here to see how to install java

to download the eclipse-cdt to the current directory by terminal.

wget  -O ~/Desktop/ "http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/neon/3/eclipse-cpp-neon-3-linux-gtk-x86_64.tar.gz&mirror_id=105"

will download the file to ~/Desktop.

but it is easy to do it from browser anyway

also after doing this all ,i was getting some errors while compiling the programs. i solved it by installing g++ and reinstalling the eclipse-cdt

to install g++ type sudo apt install g++

now i have only c\c++ development environment.

answer Source:

  1. http://www.eclipse.org/forums/index.php/t/790778/
  2. How to download a file from a website via terminal?
  • And how did you get Eclipse to run without Java? – muru May 15 '17 at 15:46
  • @muru. java was already installed in my machine thats why it works for me.any way i have edited my question to include installing java too. – voldemort May 15 '17 at 17:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.