made Netbeans back to work in Feisty, but not in Gutsy.
In Gutsy it leads to a crash:
$ export AWT_TOOLKIT="MToolkit"
$ netbeans
Runtime link error - it appears that libXt got loaded before libXm,
which is not allowed.
java.lang.InternalError: libXt loaded before libXm
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1668)
at java.lang.Runtime.loadLibrary0(Runtime.java:822)
at java.lang.System.loadLibrary(System.java:993)
at sun.font.FontManager$1.run(FontManager.java:178)
at java.security.AccessController.doPrivileged(Native Method)
at sun.font.FontManager.<clinit>(FontManager.java:173)
at sun.java2d.SunGraphicsEnvironment.addDirFonts(SunGraphicsEnvironment.java:722)
at sun.java2d.SunGraphicsEnvironment.registerFontsInDir(SunGraphicsEnvironment.java:602)
at sun.java2d.SunGraphicsEnvironment.access$200(SunGraphicsEnvironment.java:58)
at sun.java2d.SunGraphicsEnvironment$1.run(SunGraphicsEnvironment.java:174)
at java.security.AccessController.doPrivileged(Native Method)
at sun.java2d.SunGraphicsEnvironment.<init>(SunGraphicsEnvironment.java:94)
at sun.awt.X11GraphicsEnvironment.<init>(X11GraphicsEnvironment.java:164)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:68)
at sun.awt.motif.MToolkit.<clinit>(MToolkit.java:93)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at java.awt.Toolkit$2.run(Toolkit.java:821)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:804)
at javax.swing.UIManager.initialize(UIManager.java:1262)
at javax.swing.UIManager.maybeInitialize(UIManager.java:1245)
at javax.swing.UIManager.getDefaults(UIManager.java:556)
at javax.swing.filechooser.FileSystemView.getFileSystemView(FileSystemView.java:63)
at org.openide.filesystems.FileUtil.<clinit>(FileUtil.java:64)
at org.netbeans.core.startup.TopLogging.printSystemInfo(TopLogging.java:187)
at org.netbeans.core.startup.TopLogging.<init>(TopLogging.java:112)
at org.netbeans.core.startup.CLIOptions.initialize(CLIOptions.java:205)
at org.netbeans.core.startup.Main.start(Main.java:292)
at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:96)
at java.lang.Thread.run(Thread.java:595)
java.lang.InternalError: libXt loaded before libXm
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1668)
at java.lang.Runtime.loadLibrary0(Runtime.java:822)
at java.lang.System.loadLibrary(System.java:993)
at sun.font.FontManager$1.run(FontManager.java:178)
at java.security.AccessController.doPrivileged(Native Method)
at sun.font.FontManager.<clinit>(FontManager.java:173)
at sun.java2d.SunGraphicsEnvironment.addDirFonts(SunGraphicsEnvironment.java:722)
at sun.java2d.SunGraphicsEnvironment.registerFontsInDir(SunGraphicsEnvironment.java:602)
at sun.java2d.SunGraphicsEnvironment.access$200(SunGraphicsEnvironment.java:58)
at sun.java2d.SunGraphicsEnvironment$1.run(SunGraphicsEnvironment.java:174)
at java.security.AccessController.doPrivileged(Native Method)
at sun.java2d.SunGraphicsEnvironment.<init>(SunGraphicsEnvironment.java:94)
at sun.awt.X11GraphicsEnvironment.<init>(X11GraphicsEnvironment.java:164)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:68)
at sun.awt.motif.MToolkit.<clinit>(MToolkit.java:93)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at java.awt.Toolkit$2.run(Toolkit.java:821)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:804)
at javax.swing.UIManager.initialize(UIManager.java:1262)
at javax.swing.UIManager.maybeInitialize(UIManager.java:1245)
at javax.swing.UIManager.getDefaults(UIManager.java:556)
at javax.swing.filechooser.FileSystemView.getFileSystemView(FileSystemView.java:63)
at org.openide.filesystems.FileUtil.<clinit>(FileUtil.java:64)
at org.netbeans.core.startup.TopLogging.printSystemInfo(TopLogging.java:187)
at org.netbeans.core.startup.TopLogging.<init>(TopLogging.java:112)
at org.netbeans.core.startup.CLIOptions.initialize(CLIOptions.java:205)
at org.netbeans.core.startup.Main.start(Main.java:292)
at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:96)
at java.lang.Thread.run(Thread.java:595)
The same exception is thrown with Compiz disabled also.
It happens with sun-java5 and sun-java6 packages in repository, but it happens also with jre6-update3 downloaded from Sun site and installed by deb package generated with java-packages.
I think Importance of this bug is grown because Compiz is active by default in Gutsy.
Running Netbeans with Compiz active is impossible because Netbeans main window looks all greyed (like in this bug report: https:/ /bugs.launchpad .net/ubuntu/ +source/ sun-java6/ +bug/124562 ). It seems to be a bug related to all Swing windows.
Exporting
export AWT_TOOLKIT= "MToolkit"
made Netbeans back to work in Feisty, but not in Gutsy.
In Gutsy it leads to a crash:
$ export AWT_TOOLKIT= "MToolkit"
$ netbeans
Runtime link error - it appears that libXt got loaded before libXm, InternalError: libXt loaded before libXm ClassLoader$ NativeLibrary. load(Native Method) ClassLoader. loadLibrary0( ClassLoader. java:1751) ClassLoader. loadLibrary( ClassLoader. java:1668) Runtime. loadLibrary0( Runtime. java:822) System. loadLibrary( System. java:993) FontManager$ 1.run(FontManag er.java: 178) AccessControlle r.doPrivileged( Native Method) FontManager. <clinit> (FontManager. java:173) SunGraphicsEnvi ronment. addDirFonts( SunGraphicsEnvi ronment. java:722) SunGraphicsEnvi ronment. registerFontsIn Dir(SunGraphics Environment. java:602) SunGraphicsEnvi ronment. access$ 200(SunGraphics Environment. java:58) SunGraphicsEnvi ronment$ 1.run(SunGraphi csEnvironment. java:174) AccessControlle r.doPrivileged( Native Method) SunGraphicsEnvi ronment. <init>( SunGraphicsEnvi ronment. java:94) X11GraphicsEnvi ronment. <init>( X11GraphicsEnvi ronment. java:164) NativeConstruct orAccessorImpl. newInstance0( Native Method) NativeConstruct orAccessorImpl. newInstance( NativeConstruct orAccessorImpl. java:39) DelegatingConst ructorAccessorI mpl.newInstance (DelegatingCons tructorAccessor Impl.java: 27) reflect. Constructor. newInstance( Constructor. java:494) Class.newInstan ce0(Class. java:350) Class.newInstan ce(Class. java:303) GraphicsEnviron ment.getLocalGr aphicsEnvironme nt(GraphicsEnvi ronment. java:68) motif.MToolkit. <clinit> (MToolkit. java:93) Class.forName0( Native Method) Class.forName( Class.java: 164) Toolkit$ 2.run(Toolkit. java:821) AccessControlle r.doPrivileged( Native Method) Toolkit. getDefaultToolk it(Toolkit. java:804) UIManager. initialize( UIManager. java:1262) UIManager. maybeInitialize (UIManager. java:1245) UIManager. getDefaults( UIManager. java:556) filechooser. FileSystemView. getFileSystemVi ew(FileSystemVi ew.java: 63) filesystems. FileUtil. <clinit> (FileUtil. java:64) core.startup. TopLogging. printSystemInfo (TopLogging. java:187) core.startup. TopLogging. <init>( TopLogging. java:112) core.startup. CLIOptions. initialize( CLIOptions. java:205) core.startup. Main.start( Main.java: 292) core.startup. TopThreadGroup. run(TopThreadGr oup.java: 96) Thread. run(Thread. java:595) InternalError: libXt loaded before libXm ClassLoader$ NativeLibrary. load(Native Method) ClassLoader. loadLibrary0( ClassLoader. java:1751) ClassLoader. loadLibrary( ClassLoader. java:1668) Runtime. loadLibrary0( Runtime. java:822) System. loadLibrary( System. java:993) FontManager$ 1.run(FontManag er.java: 178) AccessControlle r.doPrivileged( Native Method) FontManager. <clinit> (FontManager. java:173) SunGraphicsEnvi ronment. addDirFonts( SunGraphicsEnvi ronment. java:722) SunGraphicsEnvi ronment. registerFontsIn Dir(SunGraphics Environment. java:602) SunGraphicsEnvi ronment. access$ 200(SunGraphics Environment. java:58) SunGraphicsEnvi ronment$ 1.run(SunGraphi csEnvironment. java:174) AccessControlle r.doPrivileged( Native Method) SunGraphicsEnvi ronment. <init>( SunGraphicsEnvi ronment. java:94) X11GraphicsEnvi ronment. <init>( X11GraphicsEnvi ronment. java:164) NativeConstruct orAccessorImpl. newInstance0( Native Method) NativeConstruct orAccessorImpl. newInstance( NativeConstruct orAccessorImpl. java:39) DelegatingConst ructorAccessorI mpl.newInstance (DelegatingCons tructorAccessor Impl.java: 27) reflect. Constructor. newInstance( Constructor. java:494) Class.newInstan ce0(Class. java:350) Class.newInstan ce(Class. java:303) GraphicsEnviron ment.getLocalGr aphicsEnvironme nt(GraphicsEnvi ronment. java:68) motif.MToolkit. <clinit> (MToolkit. java:93) Class.forName0( Native Method) Class.forName( Class.java: 164) Toolkit$ 2.run(Toolkit. java:821) AccessControlle r.doPrivileged( Native Method) Toolkit. getDefaultToolk it(Toolkit. java:804) UIManager. initialize( UIManager. java:1262) UIManager. maybeInitialize (UIManager. java:1245) UIManager. getDefaults( UIManager. java:556) filechooser. FileSystemView. getFileSystemVi ew(FileSystemVi ew.java: 63) filesystems. FileUtil. <clinit> (FileUtil. java:64) core.startup. TopLogging. printSystemInfo (TopLogging. java:187) core.startup. TopLogging. <init>( TopLogging. java:112) core.startup. CLIOptions. initialize( CLIOptions. java:205) core.startup. Main.start( Main.java: 292) core.startup. TopThreadGroup. run(TopThreadGr oup.java: 96) Thread. run(Thread. java:595)
which is not allowed.
java.lang.
at java.lang.
at java.lang.
at java.lang.
at java.lang.
at java.lang.
at sun.font.
at java.security.
at sun.font.
at sun.java2d.
at sun.java2d.
at sun.java2d.
at sun.java2d.
at java.security.
at sun.java2d.
at sun.awt.
at sun.reflect.
at sun.reflect.
at sun.reflect.
at java.lang.
at java.lang.
at java.lang.
at java.awt.
at sun.awt.
at java.lang.
at java.lang.
at java.awt.
at java.security.
at java.awt.
at javax.swing.
at javax.swing.
at javax.swing.
at javax.swing.
at org.openide.
at org.netbeans.
at org.netbeans.
at org.netbeans.
at org.netbeans.
at org.netbeans.
at java.lang.
java.lang.
at java.lang.
at java.lang.
at java.lang.
at java.lang.
at java.lang.
at sun.font.
at java.security.
at sun.font.
at sun.java2d.
at sun.java2d.
at sun.java2d.
at sun.java2d.
at java.security.
at sun.java2d.
at sun.awt.
at sun.reflect.
at sun.reflect.
at sun.reflect.
at java.lang.
at java.lang.
at java.lang.
at java.awt.
at sun.awt.
at java.lang.
at java.lang.
at java.awt.
at java.security.
at java.awt.
at javax.swing.
at javax.swing.
at javax.swing.
at javax.swing.
at org.openide.
at org.netbeans.
at org.netbeans.
at org.netbeans.
at org.netbeans.
at org.netbeans.
at java.lang.
The same exception is thrown with Compiz disabled also.
It happens with sun-java5 and sun-java6 packages in repository, but it happens also with jre6-update3 downloaded from Sun site and installed by deb package generated with java-packages.
I think Importance of this bug is grown because Compiz is active by default in Gutsy.