Hi, Theres a chance that your eclipse is still pointing to the old jre. Can you check the settings of your ide to see if this is the case ?
If so, you need to change it to point to the jdk. Hope that this helps ! On 4 Mar 2012 01:48, "Charles C. Chou" <[email protected]> wrote: > Hi, > I am trying to do a build of the openmrs source tree that I checked out > from svn.openmrs.org. I am following the instructions in the wiki and > first tried to do build maven-install but kept getting the following error: > > [INFO] --- maven-compiler-plugin:2.1:**compile (default-compile) @ > openmrs-tools --- > [INFO] Compiling 1 source file to H:\eclipse\workspace\openmrs.** > trunk\tools\target\classes > [INFO] ------------------------------**------------------------------**- > [ERROR] COMPILATION ERROR : > [INFO] ------------------------------**------------------------------**- > [ERROR] Unable to locate the Javac Compiler in: > C:\Program Files\Java\jre6\..\lib\tools.**jar > Please ensure you are using JDK 1.4 or above and > not a JRE (the com.sun.tools.javac.Main class is required). > In most cases you can change the location of your Java > installation by setting the JAVA_HOME environment variable. > > I know the error indicates that it is looking at the wrong place but I > have changed the PATH environment variable as well as added the JAVA_HOME > variable to the JDK 1.6.0_31 directory but still no good. I tried logging > out and back in, reboot, all no good so it is getting this wrong path from > somewhere. > > I have installed various Eclipse plugins and drivers without problems and > they require the Java VM from the JDK so it knows where that is. Can > someone help me get pass this? Thanks! > > Regards, > Charles Chou > > ______________________________**___________ > > To unsubscribe from OpenMRS Implementers' mailing list, send an e-mail to > [email protected] with "SIGNOFF openmrs-implement-l" in the > body (not the subject) of your e-mail. > > [mailto:LISTSERV@LISTSERV.**IUPUI.EDU <[email protected]> > ?body=SIGNOFF%**20openmrs-implement-l] > _________________________________________ To unsubscribe from OpenMRS Implementers' mailing list, send an e-mail to [email protected] with "SIGNOFF openmrs-implement-l" in the body (not the subject) of your e-mail. [mailto:[email protected]?body=SIGNOFF%20openmrs-implement-l]

