Did you perform this step: Windows users: to start layoutopt, open the file called layoutopt.bat in the tools directory of the SDK and on the last line, replace %jarpath% with -jar %jarpath%.
On Dec 11, 1:56 am, lch1721 <[email protected]> wrote: > I saw the blog, and try to launch > layoutopt.http://android-developers.blogspot.com/2009/11/optimize-your-layouts.... > > But, it occur error message below > > D:\android-sdk-windows\tools>layoutopt.bat d:\eclipse\worksp > ace\project\res\layout > 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. > > So, I change path and launch directly layoutopt.jar. > but, it dosen't work > > What I change environment to launch layoutopt? -- You received this message because you are subscribed to the Google Groups "Android Developers" 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-developers?hl=en

