Thanks for the response, I made sure that the system libraries were
associated from the jdk did not seem to make a difference.
After an entire day (rather painful) trying to figure out what was wrong, I
pointed the m2eclipse to my maven installation (ignore the embedded) and
voila.

Thanks
Bhaskar

On Thu, Jan 8, 2009 at 7:32 PM, Jeff MAURY <[email protected]> wrote:

> I suppose m2eclipse uses the JRE instead of the JDK. What is the java
> system library associated with your project: are JRE one or a JDK ?
>
> Regards
> Jeff MAURY
>
>
> On Fri, Jan 9, 2009 at 1:29 AM, Bhaskar Maddala <[email protected]>wrote:
>
>> I get the following exception when building using m2eclipse (using
>> embedded maven), executing mvn from the command like seems to work just fine
>> (plugin - native2ascii-maven-plugin)
>>
>> --- Nested Exception ---
>> java.lang.ClassNotFoundException: sun.tools.native2ascii.Main
>>     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 java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>>     at
>> org.codehaus.plexus.classworlds.realm.ClassRealm.loadRealmClass(ClassRealm.java:174)
>>     at
>> org.codehaus.plexus.classworlds.strategy.DefaultStrategy.loadClass(DefaultStrategy.java:67)
>>     at
>> org.codehaus.plexus.classworlds.strategy.ForeignStrategy.loadClass(ForeignStrategy.java:39)
>>     at
>> org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:201)
>>     at
>> org.codehaus.plexus.classworlds.strategy.DefaultStrategy.loadClass(DefaultStrategy.java:73)
>>     ....
>>     at
>> org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:1)
>>     at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:176)
>>     at org.apache.maven.cli.MavenCli.main(MavenCli.java:63)
>>     at org.apache.maven.cli.MavenCli.main(MavenCli.java:52)
>>
>> I have only 2 versions of jdk on my ubuntu box, both from sun
>>
>> /usr/lib/jvm/java-6-sun/jre/bin/java
>> /usr/lib/jvm/java-1.5.0-sun/jre/bin/java
>>
>> and based on the eclipse console, m2eclipse is using
>>
>> /usr/lib/jvm/java-1.5.0-sun-1.5.0.16/bin/java
>>
>> I verified that tools.jar exists in
>>
>> /usr/lib/jvm/java-1.5.0-sun-1.5.0.16/lib
>>
>> Any suggestion on what path element I am missing. I am stumped, not
>> convinced that this is a m2eclipse issue, but my alternative was the maven
>> mailing list and since it works correctly from the command line, I am
>> posting this here.
>>
>> Thank you
>> Bhaskar
>>
>
>
>
> --
> La mélancolie c'est communiste
> Tout le monde y a droit de temps en temps
> La mélancolie n'est pas capitaliste
> C'est même gratuit pour les perdants
> La mélancolie c'est pacifiste
> On ne lui rentre jamais dedans
> La mélancolie oh tu sais ça existe
> Elle se prend même avec des gants
> La mélancolie c'est pour les syndicalistes
> Il faut juste sa carte de permanent
>
> Miossec (2006)
>
> http://www.jeffmaury.com
> http://riadiscuss.jeffmaury.com
> http://www.lastfm.fr/listen/user/jeffmaury/personal
> Mes CDs à récupérer:
> http://spreadsheets.google.com/ccc?key=pNeg4Doa_oCsh7CepKPaPTA&hl=en
>

Reply via email to