Tuesday, December 8, 2009

m2eclipse Error starting Sun's native2ascii java.lang.ClassNotFoundException: sun.tools.native2ascii.Main

In my case tolls.jar was not accessible to Maven/Eclipse.

Solution(which worked for me):

1)GoTo Eclipse configure build path
2)edit Jre library
3)Add external jars
4) select tools.jar which should be present in Java_home/lib

Before you do this I would suggest you to check your JAVA_HOME variable if it is pointing to a jre, make it point to a JDK. That should do the trick. 


Other helpful links:

http://markmail.org/message/szty6nkfdxmkadyc#query:m2eclipse%20Error%20starting%20Sun%27s%20native2ascii%20java.lang.ClassNotFoundException%3A%20sun.tools.native2ascii.Main+page:1+mid:6gxxf3jvbaaxnbtf+state:results

http://johnjianfang.blogspot.com/2009/03/orgappfusearchetypes.html

No comments:

Post a Comment