0

I am using m2eclipse.

I configured jetty-maven plugin in pom.xml properly.

when I try to execute through CMD its working fine. No error

Whereas when I try to execute through eclipse,

$    java.lang.NoClassDefFoundError: MAVEN_OPTS=-Xdebug -Xnoagent -Djava/compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspended=y,address=8000
Exception in thread "main"      $

I am missing some Jetty - Eclipse configuration. Can someone suggest on this.

D0 you find any error in this,

MAVEN_OPTS="-XX:MaxPermSize=256M -Xmx512M -Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=y"

user1611575
  • 95
  • 3
  • 7
  • 2
    How are you executing it through `cmd`, and how are you executing it through Eclipse? Looks like you've mixed up the command and its parameters. – artbristol Aug 22 '12 at 20:43
  • you can take a look at webby as well, it is a eclipse plugin that leverages the pom configuration to provide more of a standard eclipse experience. https://docs.sonatype.org/display/M2ECLIPSE/Integration+with+Maven+WAR+Plugin – jesse mcconnell Aug 22 '12 at 22:28

1 Answers1

0

I found it.... the mistake is in VM arguments.. If ur VM arguments is misspelled or something, it throws filenotfound error.

MAVEN_OPTS="-XX:MaxPermSize=256M -Xmx512M -Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=y"

Actual:

-XX:MaxPermSize=256M -Xmx512M -Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=y

No MAVEN_OPTS no quotation in VM arguments while u enter in eclipse...

user1611575
  • 95
  • 3
  • 7