CS107 C++ Getting Eclipse IDE & Complier Installed - Java Issue


#1

I installed Java Setup 8u211 and still cant get Eclipse installed says:

Unfortunately the Java version needed to run Eclipse Installer couldn’t be found on your system. You need the following version or a higher version:

Java 1.7.0 (64 Bit)

Please download and install a Java Runtime Environment (JRE), or a Java Development Kit (JDK) if you plan to do Java development

On Windows, installing Java 11 or 12 will not fix your problem. The Oracle Java 11/12 installers do not register Java as the default JRE on the system path, nor place its entries in the expected location in the system registry.

Please download the latest version of the installer:

Gives a link to a new version of Eclipse, but downloading it brings the same exact messege. It looks like I have Java runtime version 8 which is 8u211.

Help!

Bernie Yeater


#2

Hi @bernieyeater :slight_smile:

Unfortunately, I can’t help you directly , but I’ve found the following web page that has the text that you included in your message. I’ll include here now the link to that web page, hoping that may help you and/or that it may help others to help you:


For convenience, I’m including here all the content of that web page:

Java for Windows

Thank you for using Eclipse Installer

Unfortunately the Java version needed to run Eclipse Installer couldn’t be found on your system. You need the following version or a higher version:

Java 1.7.0 (64 Bit)

Please download and install a Java Runtime Environment (JRE), or a Java Development Kit (JDK) if you plan to do Java development

On Windows, installing Java 11 or 12 will not fix your problem. The Oracle Java 11/12 installers do not register Java as the default JRE on the system path, nor place its entries in the expected location in the system registry.

Please download the latest version of the installer:

Download 64 bit

This version of the installer can install any version of Eclipse you may want and it recognizes the locations of Java 11 or higher installations. Keep in mind though that older versions of Eclipse will not function with more recent Java versions, i.e., with Java 9 or higher.

Alternatively, even if you plan to use Java 11 or Java 12 in your development environment, you should consider also installing Java 8 so that your system path has a JRE/JDK usable as the default for any current or older Eclipse version. Most likely you will want to install a 64 bit version . Pay particular attention to that choice when installing a ★ Java 8 JDK/JRE.

Oracle JDK 12 Oracle JRE 12

Manual addition of –add-modules=ALL-SYSTEM required for applications based on Eclipse Neon (4.7) or older.

Oracle JDK 11 Oracle JRE 11

Manual addition of –add-modules=ALL-SYSTEM required for applications based on Eclipse Neon (4.7) or older.

Oracle JDK 10 Oracle JRE 10

Manual addition of –add-modules=ALL-SYSTEM required for applications based on Eclipse Neon (4.7) or older.

Oracle JDK 9 Oracle JRE 9

Manual addition of –add-modules=ALL-SYSTEM required for applications based on Eclipse Neon (4.7) or older.

Oracle JDK 8 Oracle JRE 8

★ The best default choice that is most compatible with all current and older Eclipse products.

Oracle JDK 7 Oracle JRE 7

#3

Thanks. Installed Java 8 and got Eclipse to run, but it will not compile C++. Interestingly though I got Microsoft C++ to run in visual studio 2017. Wonder if I could finish the course using that compiler.


#4

Hi again Bernie,

Thanks for the feedback. I’ve skimmed just now the content of the “CS107: C++ Programming” Saylor course - https://learn.saylor.org/course/view.php?id=65 - and, in my opinion, the answer to your last question is “YES”: that is, you will most likely be able to finish that course by using another compiler, like the “Microsoft C++” compiler in “Visual Studio 2017” :slight_smile:


#5

Microsoft Visual Studio Community Edition with C++ option is way easier than the Eclipse, Java and then miniGW combo. When they review the course they should consider this because getting Eclipse to install correctly with all the plug ins is nearly impossible.


#6

A friend helped me with this. I didn’t have the Eclipse CDT (C++ compiler) installed. So there are four things to install to get it running. Eclipse IDE, Eclipse CDT, JRE, and CynWin.


#7

Thanks for the follow-up, @bernieyeater :slight_smile: It’s great to know that you solved your issue by installing the “Eclipse CDT (C/C++ Development Tooling)” - https://www.eclipse.org/cdt/ - and that information may be very useful (now and/or in the future) to other fellow students (such as myself!).

Allow me a small correction: you wrote “CynWin” (with an “n” after the “y”), but I believe that you actually meant “Cygwin” (with a “g” after the “y”) - https://www.cygwin.com/ - Am I right?

By the way: I may be wrong, but my impression is that, strictly speaking, the “C++ compiler”, in your scenario, is provided by “Cygwin” and more specifically by “Cygwin GCC” - https://www.tutorialspoint.com/How-do-I-set-up-C-Cplusplus-on-Eclipse-in-Windows - and not by the “Eclipse CDT” (according to that same tutorial, an alternative to the compiler provided by “Cygwin” could be the one provided by “MinGW” - http://www.mingw.org/)