15489

javaw.exe and eclipse startup problems

I am trying to use eclipse juno and keep getting errors even after reading many pages here.

I get the following error when I try to start eclipse with the command line using C:\Users...\eclipse\eclipse.exe -vm "%JAVA_HOME%\bin\javaw.exe" -data C:...\workspace

"A Java Runtime Environment (JRE) or Java development Kit (JDK) must be available in order to run eclipse. No Java virtual machine was found after searching the following locations: %JAVA_HOME%\bin\javaw.exe"

I get the following error when I try to start eclipse with the eclipse icon.

"A Java Runtime Environment (JRE) or Java development Kit (JDK) must be available in order to run eclipse. No Java virtual machine was found after searching the following locations: C:...\jre\bin\javaw.exe javaw.exe in your current path"

I have tried setting the path, but it doesn't seem to help. Will somone help me by explaining where to put the jre folder and whether to set the path or pathclass or how to set java home... I'm confused. Thank you!

Answer1:

Please try this command in windows command line and check if it outputs the correct path.

echo %JAVA_HOME%

It should point to something like - C:\Program Files\Java\jdk_version If it is not, then you should follow these steps properly.

Also check if your PATH is properly set.

echo %PATH%

It should include %JAVA_HOME%\jre\bin If it is not, then you should follow these steps properly.

Once all the above steps are properly done, the Eclipse should start by directly clicking the icon.

Answer2:

I too received the same error white starting STS. the solution is simple:

<ol> <li>

First of all check if you have jdk installed or not. (I guess you do). If not then install it right now and copy the javaw.exe file from program files in your C:\Users...\eclipse\eclipse.exe -vm "%JAVA_HOME%\bin\ location.

</li> <li>

Go to your variable path and check if your jdk is listed there or not. If not include it. C:\Program Files\Java\jdk1.8.0_121\bin

</li> <li>

Retry. It will hopefully run. And if you are still getting the error, then most probably it's because you are using a wrong jdk (32 bit or 64 bit). Reinstall the correct one.

</li> </ol>

This will surely eliminate the error. Enjoy

Recommend

  • How to send basicAck to inbound adapter after publisher confirm from outbound adapter
  • Liferay: After changing Public Virtual Host settings, can't log in
  • C++ design pattern: multiple ways to load file
  • “Not a git repository: ” Error when trying to add RestKit to my repository
  • Why String.ToString()? [duplicate]
  • Integer Linear Programming Java: Multiple Open Source and Commercial tools are available. Which one
  • Complex Object won't return when using 'include' syntax in WCF with Entity Version 6
  • Required Attribute does not work on foreign key dropdown list
  • Entity framework - Foreign key - data annotation
  • friend declaration in protected section
  • Java Date object constructor for getting string is deprecated
  • Java ClassLoader Confusion
  • SQL Server Integrated Security from an Azure Web Site
  • Is it one-to-one or Component ? Nhibernate Mapping
  • Installing PAR::Packer on Windows, dmake error 255
  • Browserify and Reactify source maps include full local path names
  • Loopback validation on Properties who's types are other Models
  • How many View Controllers should I have in my game?
  • Get UILabel out of UIButton
  • What is the reason that Policy.getPolicy() is considered as it will retain a static reference to the
  • Specifying virtual keyboard type for EditText in XML
  • Portable JRE on Linux - possible?
  • How to pass solution folder as parameter in command line arguments (for debug)?
  • git add error : “fatal : malloc, out of memory”
  • Android Studio Can't Find tools.jar
  • Dynamically switching connect in Modelica
  • How to make JSON.NET deserialize to Microsoft Date Time?
  • Validate child input components on submit with Vee-Validate and vue js 2
  • Graphics.CopyFromScreen [Web application] + The handle is invalid
  • How to make jdk.nashorn.api.scripting.JSObject visible in plugin [duplicate]
  • ADO and msqli connections very slow
  • Saving Changes After In-App Purchase Has Been Purchased
  • Breeze - Deleted Items nav properties bug
  • Extracting HTML between tags
  • Function pointer “assignment from incompatible pointer type” only when using vararg ellipsis
  • Properly structure and highlight a GtkPopoverMenu using PyGObject
  • Rails 2: use form_for to build a form covering multiple objects of the same class
  • need help with bizarre java.net.HttpURLConnection behavior
  • Android Google Maps API OnLocationChanged only called once