You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Nicola Benaglia <ni...@tecno-progetti.eu> on 2008/05/06 01:21:34 UTC

java.lang.ClassNotFoundException: ”-Xmx512m”

Hi,
I receive an exception after setting MAVEN_OPTS:

MAVEN_OPTS=”-Xmx512m”
MAVEN_HOME=/opt/apache_foundation/apache-maven-2.0.9


Here the exception:

 >mvn -e package
Exception in thread "main" java.lang.NoClassDefFoundError: ”-Xmx512m”
Caused by: java.lang.ClassNotFoundException: ”-Xmx512m”
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)


If I unset the MAVEN_OPTS, everything is ok.
Some suggestions, please?

Thx,
Nicola


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: java.lang.ClassNotFoundException: ”-Xmx512m” [SOLVED]

Posted by Nicola Benaglia <ni...@tecno-progetti.eu>.
Nicola Benaglia ha scritto:
> Hi,
> I receive an exception after setting MAVEN_OPTS:
>
> MAVEN_OPTS=”-Xmx512m”
> MAVEN_HOME=/opt/apache_foundation/apache-maven-2.0.9
>
Hi,
I found, it's trivial.
it's the character ” instead of "

Bye,
Nicola

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org