0 Replies Latest reply on Aug 7, 2012 6:30 AM by FAHEM NAOUFAL

    java.lang.NoClassDefFoundError: flex2/tools/Mxmlc

    FAHEM NAOUFAL Level 1

      Hi,

       

       

      I'm trying to compile my flex project using maven but i'm getting this error

       

      org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.sonatype.flexmojos:flexmojos-maven-plugin

      kspaceFlex: java.lang.NoClassDefFoundError: flex2/tools/Mxmlc

              at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)

              at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)

              at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)

              at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBu ilder.java:84)

              at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBu ilder.java:59)

              at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter .java:183)

              at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)

              at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)

              at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)

              at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)

              at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)

              at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

              at java.lang.reflect.Method.invoke(Method.java:597)

              at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)

              at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)

              at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)

              at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)

      Caused by: org.apache.maven.plugin.MojoExecutionException: java.lang.NoClassDefFoundError: flex2/tools/Mxmlc

              at org.sonatype.flexmojos.plugin.AbstractMavenMojo.checkResult(AbstractMavenMojo.java:288)

              at org.sonatype.flexmojos.plugin.compiler.AbstractFlexCompilerMojo.executeCompiler(AbstractF lexCompilerMojo.java:164

              at org.sonatype.flexmojos.plugin.compiler.MxmlcMojo.execute_aroundBody0(MxmlcMojo.java:152)

              at org.sonatype.flexmojos.plugin.compiler.MxmlcMojo.execute_aroundBody1$advice(MxmlcMojo.jav a:36)

              at org.sonatype.flexmojos.plugin.compiler.MxmlcMojo.execute_aroundBody2(MxmlcMojo.java:146)

              at org.sonatype.flexmojos.plugin.compiler.MxmlcMojo.execute_aroundBody3$advice(MxmlcMojo.jav a:14)

              at org.sonatype.flexmojos.plugin.compiler.MxmlcMojo.execute_aroundBody4(MxmlcMojo.java:1)

              at org.sonatype.flexmojos.plugin.compiler.MxmlcMojo.execute_aroundBody5$advice(MxmlcMojo.jav a:17)

              at org.sonatype.flexmojos.plugin.compiler.MxmlcMojo.execute(MxmlcMojo.java:1)

              at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.j ava:101)

              at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)

              ... 19 more

      Caused by: java.lang.Exception: java.lang.NoClassDefFoundError: flex2/tools/Mxmlc

              at org.sonatype.flexmojos.compiler.command.CommandUtil$2.uncaughtException(CommandUtil.java: 61)

              at java.lang.Thread.dispatchUncaughtException(Thread.java:1874)

      Caused by: java.lang.NoClassDefFoundError: flex2/tools/Mxmlc

              at org.sonatype.flexmojos.compiler.DefaultFlexCompiler$2.command(DefaultFlexCompiler.java:59 )

              at org.sonatype.flexmojos.compiler.command.CommandUtil$1.run(CommandUtil.java:33)

              at java.lang.Thread.run(Thread.java:662)

      Caused by: java.lang.ClassNotFoundException: flex2.tools.Mxmlc

              at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.ja va:50)

              at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:244)

              at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:230)

              ... 3 more

       

       

      Flex SDK : 3.2

      Flash Builder : 4.5.1

       

       

      Any Idea ???

       

       

      Kind regards