I want to install Eclipse for PHP.
I download Eclipse “PDT 3.0.2 w/Eclipse indigo” to my folder “c:\eclipse” and extract the zip file.
I am also download “jre-6u37-windows-94.exe” and install it successfully.
The problem is when I try to run the file eclipse.exe I get 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:\eclipse\jre\bin\javaw.exe
javaw.exe in your current PATH
The jre installed in directory.
c:\Program Files (x86)\java\jre7\bin
What should I do for running successfully the eclipse.
this is my confog.ini
#This configuration file was written by: org.eclipse.equinox.internal.frameworkadmin.equinox.EquinoxFwConfigFileParser
#Mon Jun 11 14:17:27 IDT 2012
org.eclipse.update.reconcile=false
eclipse.p2.profile=pdtProfile
osgi.framework=file\:plugins/org.eclipse.osgi_3.7.2.v20120110-1415.jar
equinox.use.ds=true
osgi.bundles=reference\:file\:org.eclipse.equinox.simpleconfigurator_1.0.200.v20110815-1438.jar@1\:start
org.eclipse.equinox.simpleconfigurator.configUrl=file\:org.eclipse.equinox.simpleconfigurator/bundles.info
eclipse.product=org.zend.php.product
osgi.splashPath=vplatform\:/base/plugins/org.zend.php
osgi.framework.extensions=
osgi.bundles.defaultStartLevel=4
eclipse.p2.data.area=@config.dir/../p2
eclipse.application=org.eclipse.ui.ide.workbench
org.zend.php.customization.site.url=http\://downloads.zend.com/studio-eclipse/updates-extra/9_0,http\://downloads.zend.com/studio-eclipse/updates/9_0
should I add the line -vm Path=c:\Program Files(86)\Java\jre7\bin to top file ?
Because it is not working
I bet you that this conflict is due to installation of conflicted java setup
You just need to confirm that you are using 32-bit or 64-bit Windows and then install java according to your OS requirement.
32-bit java for 32-bit OS and 64-bit java for 64-bit OS.
You will surely get rid from this problem 🙂
Another alternative is to re-run the JRE setup. It typically installs a default JRE by placing java.exe, javaw.exe, etc. in your system folder. That would place the executables in your path, which should be sufficient, based on the note in the error message that it searched your path for javaw.exe
if you are still sure that you have installed the right setup then try to set the path by using this command
set PATH=C:\Program Files\Java\jre1.6.0_03\bin ;%PATH%