mvn support for GCJ 4.1 and java-1.4 compat
-------------------------------------------

                 Key: MNG-2595
                 URL: http://jira.codehaus.org/browse/MNG-2595
             Project: Maven 2
          Issue Type: New Feature
          Components: Bootstrap & Build
    Affects Versions: 2.0.4
         Environment: Fedora Core 5, libgcj 4.1.1, java-1.4.2-gcj-compat
            Reporter: Ricardo Gladwell
            Priority: Minor


The mvn Unix shell script does not properly detect the location of local 
JAVA_HOME on the above GCJ system. Error is as follows:

$mvn -version
Error: JAVA_HOME is not defined correctly.
  We cannot execute java

This can be fixed by manually setting $JAVA_HOME=/usr/lib/jvm/java-1.4.2/ 
(compat home of gcj) but M2 still refuses to run with the following error:

$ mvn -version
Sorry, but JDK 1.4 or above is required to execute Maven
You appear to be using Java version: 1.4.2

I'm not even sure the mvn can run on GCJ-compat systems yet, but if so it would 
be nice if the mvn shell script also supported such systems.

The above can be worked around by downloading and installing the Linux version 
of the JAVA 5 SDK.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to