Build fails with "ERROR: Your JAVA_HOME environment variable is set"

Lillian Angel langel at redhat.com
Wed Sep 12 09:42:15 PDT 2007



Matthew Flaschen wrote:
> Andrew Haley wrote:
>> Matthew Flaschen writes:
>>  > A build of latest hg fails with:
>>  > 
>>  > ERROR: Your JAVA_HOME environment variable is set.  This will
>>  >        most likely cause the build to fail.  Please unset it
>>  >        and start your build again.
>>  > 
>>  > Exiting because of the above error(s).
>>  > 
>>  > Should this need to be unset?  I think I've always built with it set in
>>  > the past.
>>
>> Yes, it must be unset.  The IcsedTea makefile unsets it, I think.
> 
> I didn't modify the makefile, so this is apparently a bug.

Actually, I spoke to Tom Fitzsimmons and he said that IcedTea does not modify 
the environment it just prints the shell commands that will setup the in 
environment when OpenJDK's make is run.

You will need to manually unset JAVA_HOME. Previously, we were setting JAVA_HOME 
to "" in the Makefile, and this was incorrect.


Lillian



More information about the distro-pkg-dev mailing list