Edit tools/layoutopt.bat(line 47) as follows:

call java %java_debug% -Djava.ext.dirs=%javaextdirs% -jar %jarpath% %*

2009/11/1 Ronald Mak <[email protected]>:
> When I run layoutopt, the following error occurs:
>
> Exception in thread "main" java.lang.NoClassDefFoundError: lib
> \layoutopt/jar
> Caused by: java.lang.ClassNotFoundException: lib\layoutopt.jar
>        at java.net.URLClassLoader$1.run(Unknown Source)
>        at java.security.AccessController.doPrivileged(Native Method)
>        at java.net.URLClassLoader.findClass(Unknown Source)
>        at java.lang.ClassLoader.loadClass(Unknown Source)
>        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
>        at java.lang.ClassLoader.loadClass(Unknown Source)
>        at java.lang.ClassLoader.loadClassInternal(Unknown Source)
> Could not find the main class: lib\layoutopt.jar.  Program will exit.
>
> How do I solve this problem? My OS is MS Windows Vista SP1. SDK Tools,
> Revision 3.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-beginners?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to