Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Everythings perfect. But Eclipse installer can't install it for a reason that it can't find the JDK(Eclipse installer could not install)
Everythings perfect. But Eclipse installer can't install it for a reason that it can't find the JDK [message #1816623] Fri, 01 November 2019 17:11 Go to next message
Yun Junyoung is currently offline Yun JunyoungFriend
Messages: 6
Registered: November 2019
Junior Member
I've tried to install eclipse, but it's connected to the web page displaying the following error and it's experiencing a problem with installation

Quote:

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.8.0 (64 Bit)

But my JDK version is Aleady 1.8.0_231(64Bit) and i completed setting up the environment variable. (JAVA_HOME, and Path as System Variable)

Normally, using a different IDE like InteliJ(and it works normally on my computer) but it's not possible because I have to submit it as a university assignment using eclipse.

What should I do?

Included File is my CMD screenshot of checking JDK version
  • Attachment: XHYYe.png
    (Size: 19.20KB, Downloaded 139 times)
Re: Everythings perfect. But Eclipse installer can't install it for a reason that it can't find the [message #1816636 is a reply to message #1816623] Sat, 02 November 2019 06:24 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 31598
Registered: July 2009
Senior Member
To try to reproduce this problem I installed jdk1.8.0_231 on my machine and ran this from the cmd command line:

.\eclipse-inst.exe -vm "C:\Program Files\Java\jdk1.8.0_231\bin"

But that works fine. Does that work for you?

Also if I put in on my PATH
C:\develop\installer-test>java -version
java -version
java version "1.8.0_231"
Java(TM) SE Runtime Environment (build 1.8.0_231-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.231-b11, mixed mode)

C:\develop\installer-test>.\eclipse-inst
.\eclipse-inst

That works fine as well.

In my <home>/.eclipse/org.eclipse.oomph.jreinfo/infos.txt I have a great many JRE/JDKS that I have tested:
C:\Program Files\Java\jdk-12.0.1;12;0;1;64;true;1561563120591
C:\Program Files\Java\jdk1.8.0_121;1;8;0;64;true;1490692583438
C:\Program Files\Java\jdk1.8.0_112;1;8;0;64;true;1483438804301
C:\Program Files\Java\jdk1.8.0_72\jre;1;8;0;64;false;1453726714255
C:\Program Files\Java\jdk1.8.0_72;1;8;0;64;true;1453726714145
D:\eclipse\JDK-1.9.0-118;9;0;0;64;true;1463017587000
D:\eclipse\JDK-1.7.79\jre;1;7;0;64;false;1428698970000
C:\Program Files\Java\jdk-11.0.1;11;0;1;64;true;1538829134000
C:\Program Files\Java\jdk-12;12;0;0;64;true;1554725290149
D:\eclipse\JDK-1.9.0-159;9;0;0;64;true;1488421484000
D:\eclipse\JDK-1.9.0-158;9;0;0;64;true;1487817210000
C:\Program Files (x86)\Java\jdk1.8.0_101;1;8;0;32;true;1474379109487
C:\Program Files\Java\jre1.8.0_112;1;8;0;64;false;1483438827048
C:\Program Files\Java\jre1.8.0_111;1;8;0;64;false;1483438552670
C:\Program Files\Java\jre1.8.0_121;1;8;0;64;false;1490692628315
C:\Program Files\Java\jdk1.8.0_231\jre;1;8;0;64;false;1570274542000
C:\Program Files (x86)\Java\jre1.8.0_111;1;8;0;32;false;1483438528266
C:\Program Files\Java\jdk-11.0.5;11;0;5;64;true;1570362165000
C:\Program Files\Java\jdk1.8.0_121\jre;1;8;0;64;false;1490692583577
D:\eclipse\JDK-1.7.79;1;7;0;64;true;1428698969000
C:\Program Files\Java\jdk1.8.0_112\jre;1;8;0;64;false;1483438804453

Does this file exist on your system? What does it contain?

In the worst case, you can download of of the packages and unzip it (and hope that it finds the JRE/JDK):

https://www.eclipse.org/downloads/packages/

Perhaps it's some type of encoding problem. Your \ don't look like \ on your command line...


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Everythings perfect. But Eclipse installer can't install it for a reason that it can't find the [message #1816738 is a reply to message #1816636] Wed, 06 November 2019 06:56 Go to previous messageGo to next message
Okewen Melu is currently offline Okewen MeluFriend
Messages: 1
Registered: November 2019
Junior Member
Uninstall completely and installed it again. It will work
Re: Everythings perfect. But Eclipse installer can't install it for a reason that it can't find the [message #1816815 is a reply to message #1816636] Thu, 07 November 2019 14:44 Go to previous messageGo to next message
Yun Junyoung is currently offline Yun JunyoungFriend
Messages: 6
Registered: November 2019
Junior Member
I tried to run eclipseinstaller (renamed eclipse.exe) using CMD and sadly error shows up AGAIN!
Re: Everythings perfect. But Eclipse installer can't install it for a reason that it can't find the [message #1816816 is a reply to message #1816815] Thu, 07 November 2019 14:58 Go to previous messageGo to next message
Yun Junyoung is currently offline Yun JunyoungFriend
Messages: 6
Registered: November 2019
Junior Member
I finished to install. i used old version of installer (2019.03version) .
But most recent version of installer(2019.09) still deos not work.
Is this could be a bug that occours in some specipic environment?
Re: Everythings perfect. But Eclipse installer can't install it for a reason that it can't find the [message #1816822 is a reply to message #1816816] Thu, 07 November 2019 16:46 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 31598
Registered: July 2009
Senior Member
I did indeed fix a problem today for how JAVA_HOME is processed.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=552784

That fix is in this version:

http://www.eclipse.org/downloads/download.php?file=/oomph/products/latest/eclipse-inst-win64.exe

I would very much appreciate it if you tried this version and let me know if that works


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Everythings perfect. But Eclipse installer can't install it for a reason that it can't find the [message #1816823 is a reply to message #1816822] Thu, 07 November 2019 17:13 Go to previous messageGo to next message
Yun Junyoung is currently offline Yun JunyoungFriend
Messages: 6
Registered: November 2019
Junior Member
No. it does not work on my computer
Re: Everythings perfect. But Eclipse installer can't install it for a reason that it can't find the [message #1816825 is a reply to message #1816823] Thu, 07 November 2019 19:06 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 31598
Registered: July 2009
Senior Member
Very strange. Could you run it from the command line as
eclipse-inst-win64.exe --debug
and share what's displayed on the console? Then I can see which Java executables that it finds and tests. It should find all the ones in the Windows registry, what's in JAVA_HOME, and what's on the PATH. It should test each one on the PATH, what's in JAVA_HOME, and each one in the registry, until it finds one that's at least a Java 1.8. Failing all those not validating, it will complain that it can't find one...


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Everythings perfect. But Eclipse installer can't install it for a reason that it can't find the [message #1816837 is a reply to message #1816825] Fri, 08 November 2019 01:52 Go to previous messageGo to next message
Yun Junyoung is currently offline Yun JunyoungFriend
Messages: 6
Registered: November 2019
Junior Member
As you can see from the attached image, nothing is printed.
And still does not work.
But Error web page shows up...

[Updated on: Fri, 08 November 2019 02:02]

Report message to a moderator

Re: Everythings perfect. But Eclipse installer can't install it for a reason that it can't find the [message #1816841 is a reply to message #1816837] Fri, 08 November 2019 06:35 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 31598
Registered: July 2009
Senior Member
Looking at the C code of the latest version, this result seems almost impossible.

You're sure that Downloads contains just one version if eclipse-inst-win64.exe? Whenever I download a new version (with Firefox), I end up with a numbered version. E.g., my most recent download is eclipse-inst-win64(43).exe. So you're sure your Downloads doesn't contain a whole whack of such numbered versions such that you're not actually testing on the command line the most recently download version?

If you're sure you're testing the most recently downloaded version from the link I gave, will you be willing to help further, i.e., if I add more debug trace statements, to figure out where things are going wrong?

Because currently what you are describing suggests that the code doesn't just crash, but it really gets to the point of opening the browser link. So the code must have looked for javaw.exe in every folder on the PATH, and must of found none because there's no trace output from it testing any of JVMs, which also suggests that JAVA_HOME and the registry also did not find any folders to test. To understand why that's the happening, I'd really need more debug tracing, e.g., printing out every folder on the PATH that is tested for the presence of javaw.exe.

The native executable did change 2019-04 so it's possible that something newer is not working well for you... Mostly the support was for adding command line processing support and I changed the way command lines are launched to properly support "wide characters" to ensure that the command line can specify arbitrary unicode characters and that those arrive properly in the Java application...

Do you the default encoding on your OS?

I looked at this to see how that can be determined:

https://superuser.com/questions/670197/finding-out-the-default-character-encoding-in-windows

So I ran PowerShell and executed that:Quote:
Windows PowerShell
Copyright (C) 2009 Microsoft Corporation. All rights reserved.

PS C:\Users\merks> [System.Text.Encoding]::Default


IsSingleByte : True
BodyName : iso-8859-1
EncodingName : Western European (Windows)
HeaderName : Windows-1252
WebName : Windows-1252
WindowsCodePage : 1252
IsBrowserDisplay : True
IsBrowserSave : True
IsMailNewsDisplay : True
IsMailNewsSave : True
EncoderFallback : System.Text.InternalEncoderBestFitFallback
DecoderFallback : System.Text.InternalDecoderBestFitFallback
IsReadOnly : True
CodePage : 1252


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Everythings perfect. But Eclipse installer can't install it for a reason that it can't find the [message #1816911 is a reply to message #1816841] Mon, 11 November 2019 17:02 Go to previous messageGo to next message
Yun Junyoung is currently offline Yun JunyoungFriend
Messages: 6
Registered: November 2019
Junior Member
I am not good at English. so that I am not sure this answer is what you want. The file attached here is the output result of the command that you showed me.
(ps. I am Korean)

[Updated on: Mon, 11 November 2019 17:05]

Report message to a moderator

Re: Everythings perfect. But Eclipse installer can't install it for a reason that it can't find the [message #1833561 is a reply to message #1816841] Sat, 17 October 2020 19:33 Go to previous messageGo to next message
Zoltán Mencser is currently offline Zoltán MencserFriend
Messages: 1
Registered: October 2020
Junior Member
I have the same Issue. I tried several JDK.
jdk 14.0.2
jdk 15
OpenJDK 11.0.8.10
Tested them one by one. Totally removing the others, resetting PAHT and JAVA_HOME variables, and restarted my Windows 10 (64bit) on every try.

I tried all the solutions from this thread. Non of them worked for me.
I attached a picture of the result of System.Text.Encoding command.


Please help! I need this IDE for work.
Re: Everythings perfect. But Eclipse installer can't install it for a reason that it can't find the [message #1833580 is a reply to message #1833561] Mon, 19 October 2020 06:30 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 31598
Registered: July 2009
Senior Member
It's odd that you can have exactly the same problem with the latest version of the installer includes a JRE and should run even if you have no Java installed on your system.

But then the download page has the wrong links right now. :-(

https://bugs.eclipse.org/bugs/show_bug.cgi?id=567956

This version of the installer contains a JRE and should run anywhere:

https://www.eclipse.org/downloads/download.php?file=/oomph/epp/2020-09/R/eclipse-inst-jre-win64.exe

You can always directly download a package instead:

https://www.eclipse.org/downloads/packages/


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:MQTT communication with S7-PLCs
Next Topic:How to use JDBC session for embedded jetty (Version above 9.4)?
Goto Forum:
  


Current Time: Tue Nov 24 01:49:04 GMT 2020

Powered by FUDForum. Page generated in 0.03292 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top