Hi again,
I renamed C:\Program Files\Java\jre6 to C:\Program Files\Java\jre6.0 and restarted eclipse and it successfully finished the build:

[INFO] Reactor Summary:
[INFO]
[INFO] OpenMRS ........................................... SUCCESS [12.269s]
[INFO] openmrs-tools ..................................... SUCCESS [40.357s]
[INFO] openmrs-test ...................................... SUCCESS [0.014s]
[INFO] openmrs-api ....................................... SUCCESS [7:31.090s] [INFO] openmrs-web ....................................... SUCCESS [1:41.841s] [INFO] openmrs-webapp .................................... SUCCESS [1:06.268s] [INFO] openmrs-release-test .............................. SUCCESS [1:46.088s] [INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 12:58.731s
[INFO] Finished at: Sun Mar 04 09:55:30 HST 2012
[INFO] Final Memory: 62M/210M
[INFO] ------------------------------------------------------------------------

I think this may be a bug in eclipse where it will try jre6 first and fails if it exists but cannot find the compiler. If jre6 does not exist then it will look in the JAVA_HOME environment var for the path info.

Thanks,
Charles Chou


On 3/3/2012 12:06 PM, Charles C. Chou 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] <mailto:[email protected]>> wrote:

    Hi,
       I am trying to do a build of the openmrs source tree that I
    checked out from svn.openmrs.org <http://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]
    <mailto:[email protected]> with "SIGNOFF
    openmrs-implement-l" in the  body (not the subject) of your e-mail.

    [mailto:[email protected]
    <mailto:[email protected]>?body=SIGNOFF%20openmrs-implement-l]

------------------------------------------------------------------------
Click here to unsubscribe <mailto:[email protected]?body=SIGNOFF%20openmrs-implement-l> from OpenMRS Implementers' mailing list

------------------------------------------------------------------------
Click here to unsubscribe <mailto:[email protected]?body=SIGNOFF%20openmrs-implement-l> from OpenMRS Implementers' mailing list


_________________________________________

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