Could not find JRE executable [message #1702727] |
Fri, 24 July 2015 07:08  |
Eclipse User |
|
|
|
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 #1703151 is a reply to message #1702727] |
Tue, 28 July 2015 17:59   |
Eclipse User |
|
|
|
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.
|
|
|
|
Powered by
FUDForum. Page generated in 0.09505 seconds