Skip to main content



      Home
Home » Newcomers » Newcomers » Could not find JRE executable(Trying to run a StaticWebProject)
Could not find JRE executable [message #1702727] Fri, 24 July 2015 07:08 Go to next message
Eclipse UserFriend
Hello, I am running into problems in Eclipse Mars when trying to run a static web project using the HTTP preview server (as well as dynamic web project running on apache, but one thing at a time), I get this error.

'Launching HTTP Preview at localhost' has encountered a problem.
Could not find JRE executable.

I tried searching these forums and did not find anything so sorry if this has been addressed before. Also tried searching internet but did not find anything that worked for me.

When I run, java -version in terminal it shows:
java version "1.8.0_20"
Java(TM) SE Runtime Environment (build 1.8.0_20-b26)
Java HotSpot(TM) 64-Bit Server VM (build 25.20-b23, mixed mode)

Please help
Re: Could not find JRE executable [message #1702836 is a reply to message #1702727] Sat, 25 July 2015 09:57 Go to previous messageGo to next message
Eclipse UserFriend
On 07/24/2015 06:36 AM, Jay Sal wrote:
> Hello, I am running into problems in Eclipse Mars when trying to run a
> static web project using the HTTP preview server (as well as dynamic web
> project running on apache, but one thing at a time), I get this error.
>
> 'Launching HTTP Preview at localhost' has encountered a problem.
> Could not find JRE executable.
>
> I tried searching these forums and did not find anything so sorry if
> this has been addressed before. Also tried searching internet but did
> not find anything that worked for me.
>
> When I run, java -version in terminal it shows:
> java version "1.8.0_20"
> Java(TM) SE Runtime Environment (build 1.8.0_20-b26)
> Java HotSpot(TM) 64-Bit Server VM (build 25.20-b23, mixed mode)
>
> Please help

Not sure I can help positively, but try these things:

1) Installed Eclipse IDE for Java EE Developers?

2) Windows -> Preferences -> Java -> Installed JREs?
Re: Could not find JRE executable [message #1703144 is a reply to message #1702727] Tue, 28 July 2015 16:57 Go to previous messageGo to next message
Eclipse UserFriend
I had a similar issue that was due to having multiple JDK/JRE installations on the same machine. I removed all but the latest and the problem never occurred again.
Re: Could not find JRE executable [message #1703151 is a reply to message #1702727] Tue, 28 July 2015 17:59 Go to previous messageGo to next message
Eclipse UserFriend
On 07/24/2015 06:36 AM, Jay Sal wrote:
> Hello, I am running into problems in Eclipse Mars when trying to run a
> static web project using the HTTP preview server (as well as dynamic web
> project running on apache, but one thing at a time), I get this error.
>
> 'Launching HTTP Preview at localhost' has encountered a problem.
> Could not find JRE executable.
>
> I tried searching these forums and did not find anything so sorry if
> this has been addressed before. Also tried searching internet but did
> not find anything that worked for me.
>
> When I run, java -version in terminal it shows:
> java version "1.8.0_20"
> Java(TM) SE Runtime Environment (build 1.8.0_20-b26)
> Java HotSpot(TM) 64-Bit Server VM (build 25.20-b23, mixed mode)
>
> Please help

What I do is this...

I install exactly the JDK I want to use with Eclipse, usually the
latest. Not merely a JRE, but the JDK. And I do it locally, not for my
host. I let the host's notion of JRE be whatever it wants to be.

I run Eclipse wired up to my own private JDK.

This way, I know what JDK/JRE I'm running Eclipse on and what I'm using
to develop Java code to.
Re: Could not find JRE executable [message #1771688 is a reply to message #1703151] Tue, 29 August 2017 10:16 Go to previous message
Eclipse UserFriend
It's a Mac-specific bug. It'll be fixed in Oxygen.1.

http://bugs.eclipse.org/518546
Previous Topic:Error Message
Next Topic:How do I Change the Default Settings on Eclipse
Goto Forum:
  


Current Time: Wed Jul 23 13:45:10 EDT 2025

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

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

Back to the top