[ http://jira.codehaus.org/browse/MNG-2508?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brian Fox closed MNG-2508. -------------------------- Resolution: Cannot Reproduce I use maven on 1.4.2 all the time. It looks like your system is reporting the wrong java spec version. Look at the source: {noformat} if ( "1.4".compareTo( System.getProperty( "java.specification.version" ) ) > 0 ) { System.err.println( "Sorry, but JDK 1.4 or above is required to execute Maven. You appear to be using " + "Java:" ); System.err.println( "java version \"" + System.getProperty( "java.version", "<unknown java version>" ) + "\"" ); System.err.println( System.getProperty( "java.runtime.name", "<unknown runtime name>" ) + " (build " + System.getProperty( "java.runtime.version", "<unknown runtime version>" ) + ")" ); System.err.println( System.getProperty( "java.vm.name", "<unknown vm name>" ) + " (build " + System.getProperty( "java.vm.version", "<unknown vm version>" ) + ", " + System.getProperty( "java.vm.info", "<unknown vm info>" ) + ")" ); return 1; {noformat} > mvn complains about missing Java 1.4 on Java 1.4.2 > -------------------------------------------------- > > Key: MNG-2508 > URL: http://jira.codehaus.org/browse/MNG-2508 > Project: Maven 2 > Issue Type: Bug > Components: Command Line > Affects Versions: 2.0.4 > Environment: java version "1.4.2" > gij (GNU libgcj) version 4.1.0 (SUSE Linux) > Copyright (C) 2006 Free Software Foundation, Inc. > This is free software; see the source for copying conditions. There is NO > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. > Reporter: Markus KARG > Fix For: Reviewed Pending Version Assignment > > > [EMAIL PROTECTED]:~> /opt/maven-2.0.4/bin/mvn > Sorry, but JDK 1.4 or above is required to execute Maven > You appear to be using Java version: 1.4.2 > [EMAIL PROTECTED]:~> java -version > java version "1.4.2" > gij (GNU libgcj) version 4.1.0 (SUSE Linux) > Copyright (C) 2006 Free Software Foundation, Inc. > This is free software; see the source for copying conditions. There is NO > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -- 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