Tuesday, August 14, 2012
Maven (mvn) Exception in thread "main" java. lang. NoClassDefFoundError
It could happen when you try to run mvn or if will just check its version it will give you this kind of error (Exception):
MBPro-2:~ apple$ mvn -version
Exception in thread "main" java.lang.NoClassDefFoundError: org/codehaus/plexus/classworlds/launcher/Launcher
Caused by: java.lang.ClassNotFoundException: org.codehaus.plexus.classworlds.launcher.Launcher
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
In this case you need just fix symlink to the right version of Maven on your Mac OSX: carefully read and follow all instructions of this article.
MBPro-2:~ apple$ mvn -version
Exception in thread "main" java.lang.NoClassDefFoundError: org/codehaus/plexus/classworlds/launcher/Launcher
Caused by: java.lang.ClassNotFoundException: org.codehaus.plexus.classworlds.launcher.Launcher
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
In this case you need just fix symlink to the right version of Maven on your Mac OSX: carefully read and follow all instructions of this article.
How to draw 9-patch PNGs (Android Theming)
First of all launch the
Then follow the official Android description on http://developer.android.com/tools/help/draw9patch.html.
Or watch this tutorial on YouTube: How to easily create 9 patch PNGs (Android Theming)
draw9patch
application from your SDK /tools
directory in your Terminal.Then follow the official Android description on http://developer.android.com/tools/help/draw9patch.html.
Or watch this tutorial on YouTube: How to easily create 9 patch PNGs (Android Theming)
Subscribe to:
Posts (Atom)