Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » error can't find javaw.exe(installation problem)
error can't find javaw.exe [message #1784053] Wed, 21 March 2018 23:31 Go to next message
sydney faria is currently offline sydney fariaFriend
Messages: 54
Registered: March 2013
Member
When I start Eclipse I get the error "cannot find 'Program Files\Java\jre_1.8.0_25\bin\javaw.exe'". I have installed the CDT version of Eclipse twice to no avail. Looking at 'Program Files\Java' I find the following three sub folders and exe files: jdk1.8.0_25\bin\javaw.exe, jre1.8.0_25\bin\msvcr100.dll, jre1.8.0_161\bin\javaw.exe, as well as jre1.8.0_162\bin\javaw.exe. The only place I can't see a javaw.exe is the folder containing the .dll file! Yet that is what Eclipse is complaining about. How do I fix this?
Re: error can't find javaw.exe [message #1784147 is a reply to message #1784053] Thu, 22 March 2018 23:33 Go to previous messageGo to next message
Missing name Mising name is currently offline Missing name Mising nameFriend
Messages: 35
Registered: September 2010
Member
First off, not enough information.
What the host os? Do you have a JAVA_HOME environment variable? I JAVA in your PATH variable?

From your message:
"cannot find 'Program Files\Java\jre_1.8.0_25\bin\javaw.exe'".

Eclipse is looking form javaw.exe in directory with the .dll (no javaw.exe)!
Look into the above first!

You could modify the eclipse.ini file to point eclipse to the version of Java that you want it to use:
-vm
[put path here]/javaw.exe


Major System Configuration:
Windows 7 64-bit
Eclipse IDE for C/C++ Developers
v 4.6.2 (Neon)
v 4.7.3a (Oxygen)
v 4.8r (Photon)
v 2018_09

PyDev

MinGW
MSys
GNU Toolchain
Perforce
Re: error can't find javaw.exe [message #1784151 is a reply to message #1784147] Fri, 23 March 2018 00:00 Go to previous messageGo to next message
Seth Nowlin is currently offline Seth NowlinFriend
Messages: 30
Registered: October 2017
Location: Louisiana
Member
Hello,

You can set up your system to make your files in the same folder. The Eclipse IDE and the Java JRE need to be located in the same folder.

Seth
Re: error can't find javaw.exe [message #1784232 is a reply to message #1784053] Fri, 23 March 2018 22:11 Go to previous messageGo to next message
sydney faria is currently offline sydney fariaFriend
Messages: 54
Registered: March 2013
Member
I copied the entire contents of one of the other directories, containing the javaw.exe file and pasted the entire contents into the directory that Eclipse was complaining about not finding the exe in, and voila! Eclipse started to work as advertised. Both the Java and the cdt plugin are now working. I suppose that I could have gone and fooled around with the paths and environment variables as mentioned, but the needed exe file would still not in the directory that Eclipse was looking for. I still would have to point to one of the directories containing a javaw.exe file. My quick and dirty method worked, which is all I care about. It is funny that the download and install, which is a pretty simple task, didn't work.
Re: error can't find javaw.exe [message #1784267 is a reply to message #1784232] Sun, 25 March 2018 20:08 Go to previous messageGo to next message
Seth Nowlin is currently offline Seth NowlinFriend
Messages: 30
Registered: October 2017
Location: Louisiana
Member
Hello,

I am glad that worked for you. I was able to do the same and the Eclipse C/C++ IDE worked for me.

Seth
Re: error can't find javaw.exe [message #1784308 is a reply to message #1784151] Mon, 26 March 2018 14:39 Go to previous messageGo to next message
Missing name Mising name is currently offline Missing name Mising nameFriend
Messages: 35
Registered: September 2010
Member
Seth:

Eclipse & Java JRE do not need to be in the same directory!

Eclipse does need to be able to find JAVA v8.0+ on your system just like any other java based program.

I added the java directory under Eclipse solely for distribution among our software team.


Tim


Major System Configuration:
Windows 7 64-bit
Eclipse IDE for C/C++ Developers
v 4.6.2 (Neon)
v 4.7.3a (Oxygen)
v 4.8r (Photon)
v 2018_09

PyDev

MinGW
MSys
GNU Toolchain
Perforce

[Updated on: Mon, 26 March 2018 14:41]

Report message to a moderator

Re: error can't find javaw.exe [message #1784309 is a reply to message #1784232] Mon, 26 March 2018 14:42 Go to previous messageGo to next message
Missing name Mising name is currently offline Missing name Mising nameFriend
Messages: 35
Registered: September 2010
Member
Hopefully, that's not your long term solution.

Major System Configuration:
Windows 7 64-bit
Eclipse IDE for C/C++ Developers
v 4.6.2 (Neon)
v 4.7.3a (Oxygen)
v 4.8r (Photon)
v 2018_09

PyDev

MinGW
MSys
GNU Toolchain
Perforce
Re: error can't find javaw.exe [message #1784335 is a reply to message #1784309] Tue, 27 March 2018 01:26 Go to previous message
Seth Nowlin is currently offline Seth NowlinFriend
Messages: 30
Registered: October 2017
Location: Louisiana
Member
Hello,

Oh...I was unaware of the two programs working w/out them being in the same directory. I am a novice now. I know very little about absolute PATH and the other path.

Seth

P.S. If you have any workaround solutions, let me know. I sure could use some extra advice.
Previous Topic:Embedded Development Device Support?
Next Topic:Microsoft Azure IoT Edge
Goto Forum:
  


Current Time: Sat Apr 20 11:46:37 GMT 2024

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

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

Back to the top