Hi,

Can you try the following ?
Open up the IDE. go to windows -> settings -> java -> installed JRE s, and
see whats there. You may need to replace that with the path to the JDK.

If that doesn't work, you should try adding the -vm args to the eclipse.ini
file.

I found this link (
http://stackoverflow.com/questions/2222560/build-failed-question-maven-jre-or-jdk-problem)
which
outlines the solutions pretty clearly.

If this doesn't work, I'd recommend trying out this (
http://maven.40175.n5.nabble.com/Unable-to-locate-the-Javac-Compiler-Problem-td133804.html
)

Hope this helps.



On Sat, Mar 3, 2012 at 2:06 PM, Charles C. Chou <[email protected]> wrote:

>  Thanks, Suranga.How do you change the IDE settings? Currently I run
> Eclipse with the "-vm C:\Program Files\Java\jdk1.6.0_31\bin\javaw"
> argument. I know it is probably in the eclipse.ini but I don't know the
> syntax.
> .
>
>
> On 3/3/2012 10:30 AM, Suranga Kasthurirathne wrote:
>
>
> 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:[email protected]?body=SIGNOFF%20openmrs-implement-l]
>>
>  ------------------------------
> Click here to 
> unsubscribe<[email protected]?body=SIGNOFF%20openmrs-implement-l>from
>  OpenMRS Implementers' mailing list
>
>
>  ------------------------------
> Click here to 
> unsubscribe<[email protected]?body=SIGNOFF%20openmrs-implement-l>from
>  OpenMRS Implementers' mailing list




-- 
Best Regards,

Suranga

_________________________________________

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]

Reply via email to