Having trouble installing Eclipse - eclipse

I have a new computer (Windows 10, 64bit) and I can't install Eclipse.
I downloaded a file called "eclipse-inst-win64.exe" and a file called "jdk-12.0.1_windows-x64_bin". When I try to open or run as and administrator the Eclipse, I recieve the following message:
"A Java Runtime Enviorment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse Installer. No Java virtual machine was found after searching the following locations:
C:\Users\USER\Downloads\eclipse-inst-win64\jre\bin\javaw.exe
javaw.exe in your current PATH".
What did I do wrong? What should I do? Thanks.

Of course, you have to install jdk FIRST. Make sure to set your JAVA_HOME system environment variable to the folder where you installt jdk-12.0.1 and add the bin folder of the jdk to the PATH environment variable. You can test your installation: open a PowerShell and execute java -version. It should display your installed version. If not, the variables are not set correct.

Related

Spring STS 3.7.2 "No Java virtual Machine Found" on Mac OS X Yosemite

I have been using Spring STS 3.7.2 for a few months on my Mac laptop (Mac OS X Yosemite 10.10.5). But suddenly the STS IDE is not starting up. I suspect that one of the automatic OS update may have changed something, since I noticed that I don't see java any more on my path setting.
I manually added the following entries to my .bash_profile and updated using source command:
export PATH=$PATH:/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/jre/bin
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home
But STS stubbornly not working. It keeps giving me the error message in a dialog box:
A java runtime environment (JRE) or Java development kit (JDK) must
be available in order to run STS. No Java virtual machine was found
after searching ....
I am confused. I am able to invoke java from any terminal window, as well as JAVA_HOME environment variable is set.
Any ideas what may be going on?
After quite a bit of searching online, I figured out the problem, and resolved it for myself. It basically boils down to JDK upgrade to versions beyond 1.6.
The following link provided a solution:
https://apple.stackexchange.com/questions/178647/jdk-platform-not-recognized-running-eclipse-or-mvn
Here are the steps:
Revert back to JDK 1.6: Download and install JDK 1.6 from this Apple site: https://support.apple.com/kb/DL1572?locale=en_US
Change the PATH variable to point to the 'bin' directory of where JDK is installed. On my Mac, it was installed at: /Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin
Go to the STS application installed directory and run the command "open -a STS.app". This will open the STS IDE successfully.
Exit STS.
Now, if you want to use Java 8, then change the PATH variable to the Java 8 directory. On my Mac, it was at: /Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/bin
Launch the STS app again, and voila!, the problem solved.

Eclipse (No JVM was found)

Eclipse gave me an error specifying that no JRE is installed while I was trying to configure Erlide in eclipse.
I added path to erlang directory in 'System Variables'. Then I installed erlang plugin for eclipse, added erlang installation directory path in Eclipse preferences and restarted Eclipse.
After restarting eclipse started giving me error about JRE.
Below steps might help you to solve your problem.
Install JDK and JRE - Here are step by step Instructions OR ANOTHER
Verify you setup JAVA_HOME and JRE_HOME and PATH into environment variable.
You can also investigate your Java version via Command Prompt:
Open a Command Prompt (Navigate to “Start” => “Run” and type “cmd”)
Then enter the following command:
java –version
If you don't see your java version you have to follow step 1 carefully again
Installed eclipse/ if already installed open the same. Here are step by step Instructions
NOTE: Make sure that you have same bits for both JDK and EClipse (32 or 64). One way is to verify in your ini file.
To develop a Java program, you need a JDK not only a JRE.
Do you have a JDK installed? Have you tried to run jar, $ set | grep "JAVA_HOME" (Linux) or C:\> set | find "JAVA_HOME" (Windows) in your command prompt to see if you have Java configured in your machine?
Once you install your JDK you need to set this environment variable.
Maybe Earlide is not compatible with your JDK 1.8, can you try with jdk 1.6

HOW to run or install eclipse kepler and jdk in ubuntu

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:
/home/raghib/Desktop/eclipse/jre/bin/java
java in your current PATH
and i have jdk tar file but how to install them... or could anyone tell how to chnege the location path
With ubuntu u have to write some coding for installation of anything or u can just use ubuntu's eclipse which is present in it's applications. Following link may help you http://www.cyberciti.biz/faq/ubuntu-linux-install-eclipse-java-ide/

How to set JAVA_HOME in maven in Windows7 correctly

I am facing Issues in running MVN commands from command line though I am able to successfully run with eclipse.
> mvn -version
**Maven home:** D:\maven **Java version:** 1.7.0_45, vendor: Oracle Corporation
**Java home:** C:\Program Files (x86)\Java\jre7
etc etc.....
> echo %JAVA_HOME%
D:\ProgramFiles\Java\jdk1.7.0_25
User Variable Set JAVA_HOME to D:\ProgramFiles\Java\jdk1.7.0_25; and path to D:\ProgramFiles\Java\jdk1.7.0_25\bin.
I have already JDK 1.6 installed in default drive C below. C:\Program Files (x86)\Java\jdk1.6.0_27,C:\Program Files (x86)\Java\jre7
As per project requirement, we needed JDK1.7 installed. Due to permission issues (not able to install C drive), I installed JDK 1.7 in path D:\ProgramFiles\Java\jdk1.7.0_25,D:\ProgramFiles\Java\jre7.
On Eclipse pointing to JDK1.7 for installed JREs. And able to run all MAVEN Commands via eclipse. But note, the library files for jre is still pointing to C drive lib jar files only and not D drive jar files.(But as eclipse is working good I ignored this!)
But from command line getting error as "Perhaps you are running on a JRE rather than a JDK". No compiler etc. on running any maven command. Also maven's JAVA_HOME is still pointing to jre of C drive on running mvn -version.
Please help how to correct my problem. (Without uninstalling older version of Java As i dnt have permission to C drive folder)
Thanks in advance for help. :)

Eclipse 4.2 Juno doesn't find JRE

I downloaded Eclipse Juno and I am trying to run it for the first time. System is Win 7 Home Premium and I also downloaded JDK. I am getting the following error:
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:\Program
Files\eclipse\jre\bin\javaw.exe javaw.exe in your current PATH
The javaw.exe file it needs is in...
C:\Program Files\Java\jre7\bin\javaw.exe
How do I fix this problem? Thanks in advance
" 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:\Program Files\eclipse\jre\bin\javaw.exe javaw.exe in your current PATH "
You need to install Java JDK: http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
and then edit your path location:
Right-click on computer->properties->advanced system settings->advanced->environment variables:
Add C:\Program Files\Java\<JDK version>\bin to your PATH variable.
Also add JAVA_HOME as a system variable. I have my JAVA_HOME set to C:\Program Files\Java\jdk1.7.0_03.
When you are done, start cmd, type java, and hit enter. If you get an error that it can not be found then java is not correctly installed.
You just need to have a Java environment installed in one of the locations Eclipse looks. For Eclipse you do NOT need the full JDK.
It is enough to install a Java Runtime Environment, e.g. from java.com. This still allows you to develop against any JDK - this is just about the JVM that Eclipse needs for itself.