This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
On Fedora Core 6, Ubuntu 6.10 + jdk1.6.0_01, nbi in ja_JP.UTF-8 could not start by the followig errors, Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at com.sun.java.swing.plaf.gtk.GTKLookAndFeel.initSystemColorDefaults(GTKLookAndFeel.java:1262) at com.sun.java.swing.plaf.gtk.GTKLookAndFeel.loadStyles(GTKLookAndFeel.java:1504) at com.sun.java.swing.plaf.gtk.GTKLookAndFeel.access$000(GTKLookAndFeel.java:37) at com.sun.java.swing.plaf.gtk.GTKLookAndFeel$WeakPCL$1.run(GTKLookAndFeel.java:1444) I understand this is JDK issue of bug http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6468089 It seems that it has been fixed in jdk6, but I don't know why it happens. I'll file new bug against JDK but Fedora Core 6 and Ubuntu 6.10 are not supported by JDK, so I'm not sure it will be fixed quickly. There is one reasonable workaround - We can avoid this exception by calling UIManager.getInstalledLookAndFeels() before calling of UIManager.setLookAndFeel(). Is it possible to put one line for the workaround? I filed the same problem for another swing application - OmegaT, https://sourceforge.net/tracker/?func=detail&atid=520347&aid=1555809&group_id=68187 and provided a patch. https://sourceforge.net/tracker/download.php?group_id=68187&atid=520347&file_id=192797&aid=1555809
Created attachment 38816 [details] log file
bug in jdk side is http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6389282 and will not be fixed until JDK7. We need to put a workaround into nbi, see the bug report, it can work when we call UIManager.getInstalledLookAndFeels() before UIManager.setLookAndFeel().
fedora core or ubuntu is not a supported os for the jdk at all, and also for font support for asian locales and is thus not a supported linux platform for netbeans. We specifically tell the users this information. We do support Red Hat EL 4 as an official supported platform for netbeans and jdk has font support for it. Thus if this is not a problem on redhat, I suggest closing this as not a bug. ken.frank@sun.com
Created attachment 38892 [details] proposed patch, just calling UIManager.getInstalledLookAndFeels() before UIManager.setLookAndFeel()
Hi Ken, > Thus if this is not a problem on redhat, I suggest closing this as not a bug. I'm afraid I have to disagree. It's not right direction. Please read carefully NB release notes again, > NetBeans IDE is also known to run on the following platforms: > - Various other Linux distributions, such as Red Hat Enterprise Linux Please understand that "tested platform" and "runnable platform" are completely different. Our tested platform for ja,zh,pt_BR would be only RHEL4 and that's our official statement, let's add this to 5.5.1 release notes. This is good. However, runnable platform should be "Various other Linux distributions" and users can try NB on them at their risk. Please understand the market trend. FC and Ubuntu are now popular Linux desktop platform. We should give possible opportunity to those users if we can. Of course, it does not mean we will officially support them, so we're going to revise the description of release notes.
We appreciate all inputs and comments, including that of you and your team since your team and customers of localized releases are one group of our customers who run in other locales; we also keep in mind our other large set of users who might run into these situations who do not use localized releases, either because they are in locales for which we dont localize or because they are, but do not wish to use localized release. If you feel our release notes about supported linux is not clear in reference to the statement you quote from another section of release notes >NetBeans IDE is also known to run on the following platforms: >- Various other Linux distributions, such as Red Hat Enterprise Linux then we can add clarifications to the release notes on this topic that we have already written; but my comment is that I think its not really a matter of words like supported or run on or tested on --- in all of these cases the jdk does not support fonts for some linux os and that means we clarify the release notes statement that netbeans ide is also known to run on various unix platforms,( whether it is run on, supported or tested on as the words being used) by adding the additional release notes comments that we added for 55 release and already for this release. Also, please note that our release notes on this topic are also in english release notes; there are no seprate release notes for other languages; they are the translated versions of en release notes; and in this case that is appropriate since we want users who do not or cannot use localized release or release notes to see this information. that is, we should not encourage modifying a jdk to make it work. Or to modifying an OS, since both of those would seem to imply that we are supporting those changes, which I don't think is something we can or should claim to do. The jdk has specific standards and guidelines about this. Thus I don't understand why the installer needs to be fixed for these platforms since the jdk does not support them. If there is a big asian market for fedora or ubuntu, then I believe accurate data needs to be presented to jdk team to encourage them to add font support for those os. ken.frank@sun.com
one additional comment - we on the tool team *explicitly* chose that RedHat 4 is a supported platform for nb 551, whether you want to define that as run on or supported or whatever wording. We are aware of the limitations of font support for some other linux platforms and so we chose to place RH 4 on our list, and from data we have had in past, it is a frequently used os in asian locales. We realize it means that it wont run on other linux os, but at least we are making sure to state that it runs on, tested on and supported on rh4. ken.frank@sun.com
> Thus I don't understand why the installer needs to be fixed for these platforms > since the jdk does not support them. nbi team can decide to fix or not. This is not good place to discuss, please use http://www.netbeans.org/issues/show_bug.cgi?id=94930 for the further discussion. Regards.
I would say that installer team should attempt a fix at this. When we try to set the look and feel, we should be catching all possible exceptions and fall back to aqua (or whatever th default cross-platform LnF is called now) is something bad happens.
Thank you very much for understanding. I'm seeing other user met the same problem too in chinese locale. Here is a post of nbusers. http://www.netbeans.org/servlets/ReadMsg?list=nbusers&msgNo=89251 We should fix this issue so that more users can install 6.0 into their Linux platforms.
I've introduced all the requested changes. The issue should be fixed, please very with the latest build. -> FIXED
Thank you very much!! Can I use any daily build? Or should I wait M9? Please let me know if I can use any internal build for verification before M9 official release.
You can try to verify with http://bits.nbextras.org/netbeans/6.0/nightly/200704160626/ as soon as installers become available there.
Great, it works on my fedora core 6!! netbeans-6.0-nightly-200704131723-basic-linux.sh -> same problem happens netbeans-6.0-nightly-200704160626-basic-linux.sh -> works!! marked as verified. Thank you!!