Android Studio starts fail with "Exception in thread "main" java.lang.NoClassDefFoundError: javax.swing.UIManager" -
android-studio-bundle-133.970939:
java version "1.5.0" gij (gnu libgcj) version 4.8.1 20130909 [gcc-4_8-branch revision 202388] copyright (c) 2007 free software foundation, inc. free software; see source copying conditions. there no warranty; not merchantability or fitness particular purpose. exception in thread "main" java.lang.noclassdeffounderror: javax.swing.uimanager @ java.lang.class.initializeclass(libgcj.so.14) @ javax.swing.uimanager.getui(libgcj.so.14) @ javax.swing.text.jtextcomponent.updateui(libgcj.so.14) @ javax.swing.text.jtextcomponent.<init>(libgcj.so.14) @ javax.swing.jeditorpane.<init>(libgcj.so.14) @ javax.swing.jtextpane.<init>(libgcj.so.14) @ com.intellij.idea.main.showmessage(main.java:216) @ com.intellij.idea.main.showmessage(main.java:203) @ com.intellij.idea.main.main(main.java:86)
with opensuse 13.1, x86_64, oracle jdk 7u51
i posted same answer in android studio 135.1339820 launches wrong java version on opensuse 12.3
i resolved problem adding line in studio.sh "jdk_home=/usr/java/latest"
#!/bin/sh # # --------------------------------------------------------------------- # android studio startup script. # --------------------------------------------------------------------- # jdk_home=/usr/java/latest ...
you should replace "/usr/java/latest" java location if not here.
Comments
Post a Comment