HI, Yes, I re-download the maven (latest version apache-maven-3.0.3), and re-config the environment variables. the same problem as below:
C:\Users\hujunying>mvn --version javac: invalid flag: -Dclassworlds.conf=Q:\my work\apache-maven-3.0.3\bin\m2.con f Usage: javac <options> <source files> use -help for a list of possible options But I copy the Maven to another machine, I can get the correct info with the same way. C:\Users\administrator>mvn --version Apache Maven 3.0.3 (r1075438; 2011-03-01 01:31:09+0800) Maven home: C:\apache-maven-3.0.3 Java version: 1.6.0_02, vendor: Sun Microsystems Inc. Java home: C:\Program Files\Java\jdk1.6.0_02\jre Default locale: en_GB, platform encoding: Cp1252 OS name: "windows vista", version: "6.1", arch: "x86", family: "windows" Best, Jaina On Tue, Apr 5, 2011 at 12:06 PM, Wayne Fay <[email protected]> wrote: > >> > I just set a MAVEN_OPTS: -Xmx1024m -Xms512m, an error was given like > >> last > >> > time.Has anyone ever met this? added that the MAVEN_OPTS was not set > >> when > >> > mvn worked before.Please, > >> > C:\Users\lenovo>mvn --version > >> > javac: invalid flag: -Xmx1024m > > If you open mvn.bat in Notepad, you will not find the word "javac" > anywhere in the file. Unless of course you edited this file and broke > it. There is only mention of "java.exe" in my mvn.bat file. > > I suggest re-downloading and re-installing Maven, and then not playing > with the batch files. > > Wayne > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > -- ** *Warm wishes,* *Jaina(hu jun ying)*
