rilian-la-te/java-swing-ayatana

NetBeans 7.1 plugin doesn't work on 12.04

Closed this issue · 31 comments

I've installed the plugin in NB 7.1 and it doesn't work with Ubuntu 12.04


Original issue reported on code.google.com by alejandr...@gmail.com on 27 Apr 2012 at 10:11

Estoy trabajando para soportar Ubuntu 12.04, necesito instalar Ubuntu 11.10 
(64bits) y Ubuntu 12.04 (32bits) para compilar la libreria libjayatan.so que es 
usada para esta integración.

I'm working to suport Ubuntu 12.04, I need install Ubuntu 11.10 (64bits) and 
Ubuntu 12.04 (32bits) to compile the libjayatana.so library used to this 
integration.

Original comment by danjaredg on 27 Apr 2012 at 6:57

  • Changed state: Accepted
  • Added labels: Priority-High
  • Removed labels: Priority-Medium
I just upgraded to 12.04 as well and would LOVE this supported.

Thank you for working on this.  It is appreciated.  :-)

Cheers!

Original comment by dmccart...@damentertainment.com on 28 Apr 2012 at 2:29

[deleted comment]
[deleted comment]
I have installed the new plugin (1.1.0) in NetBeans 7.1.2 and it is also not 
working with Ubuntu 12.04.

Original comment by mustafam...@gmail.com on 1 May 2012 at 10:50

[deleted comment]
Netbeans 7.1.2 crash on Ubuntu 12.04 during restart after the installation of 
this plugin (1.1.0). is this for the same problem?

Original comment by luigima...@gmail.com on 1 May 2012 at 2:10

Please, send me more information, what arch, and the error log, if is 
generated...

Original comment by danjaredg on 2 May 2012 at 4:13

version 1.1.0 on ubuntu 12.04_64 causes a netbeans crash, always... but no 
error is reported on the shell

Original comment by luigima...@gmail.com on 3 May 2012 at 2:53

Check your pensonal folder if exist a file with this name 
hs_err_pid<number>.log, and send me the file. And, what java version do you 
have?

Original comment by danjaredg on 3 May 2012 at 4:17

Exception in thread "main" java.lang.UnsatisfiedLinkError: 
/home/.../.java/jayatana/1.1.0/amd64/libjayatana.so: libjawt.so: cannot open 
shared object file: No such file or directory
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary1(ClassLoader.java:1939)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1864)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1825)
    at java.lang.Runtime.load0(Runtime.java:792)
    at java.lang.System.load(System.java:1059)
    at org.java.ayatana.AyatanaLibrary.load(AyatanaLibrary.java:115)
    at org.java.ayatana.ApplicationMenu.tryInstall(ApplicationMenu.java:97)
    at org.java.ayatana.ApplicationMenu.tryInstall(ApplicationMenu.java:53)
    at ....<init>(....java:47)
    at ....main(....java:53)
Java Result: 1

Original comment by mustafam...@gmail.com on 6 May 2012 at 10:02

Version 1.2.0 released, this version solves problems with Java 7 and now 
support Open JDK 7

Original comment by danjaredg on 12 May 2012 at 2:10

  • Added labels: Priority-Medium
  • Removed labels: Priority-High
As I mentioned in the Dev Blog, I at a first time was unsuccessfull at using 
the Jayatana plugin for Netbeans 7.1.2 under Ubuntu 12.04.
An exception was fired each time I launched Netbeans. - Check Attachment -
This exception is also appended in the log file : 
/home/username/.netbeans/7.1.2/var/log/message.log

To put in other words, the exception was due to that the Desktop file created 
and used by Jayatana was mal formed because of a conflict due to already 
existing desktop file for netbeans in /usr/share/applications and 
/home/username/.local/share/applications/
Deleting the mal formed desktop file resolved my problem.
I bet this exception was fired the first time I installed jayatana plugin. So I 
recommend to complete the DesktopFile Class by adding a method that check if 
the file is well formed and avoid conflict with an existing similar file.

Please find in attachment, the Locale files (english & French) for the nbm.

Best Regards.

Original comment by hanynow...@gmail.com on 14 May 2012 at 8:33

Attachments:

can you send me a /usr/shared/applications/netbeans.desktop file?

Original comment by danjaredg on 16 May 2012 at 11:57

The version 1.2.1 released, now the plugin support a Netbeans of Ubuntu 
Repositories

Original comment by danjaredg on 26 May 2012 at 4:28

I'm on Ubuntu 12.10 and menus work, but launcher icon doesn't.

Product Version: NetBeans IDE 7.1.2 (Build 201204101705)
Java: 1.7.0_03; OpenJDK Client VM 22.0-b10
System: Linux version 3.2.0-24-generic-pae running on i386; UTF-8; en_US (nb)
User directory: /home/dagguh/.netbeans/7.1.2
Cache directory: /home/dagguh/.netbeans/7.1.2/var/cache

cat ~/Desktop/netbeans-7.1.2.desktop

[Desktop Entry]
Encoding=UTF-8
Name=NetBeans IDE 7.1.2
Comment=The Smarter Way to Code
Exec=/bin/sh "/home/dagguh/netbeans-7.1.2/bin/netbeans"
Icon=/home/dagguh/netbeans-7.1.2/nb/netbeans.png
Categories=Application;Development;Java;IDE
Version=1.0
Type=Application
Terminal=0

Original comment by dag...@gmail.com on 30 May 2012 at 9:17

Using plugin 1.2.2

Original comment by dag...@gmail.com on 30 May 2012 at 9:18

The integration with Unity Launcher is based on StartupWMClass, the plugin 
"Java Ayatana" change the netbeans-x.x.x.desktop file and add the 
StartupWMClass property to this, also the plugin change the StartupWMClass from 
Java UnixToolKit. But this change is made in 
$HOME/.local/shared/applications/netbeans-x.x.x.desktop file because this file 
is used on Unity Menu.

You need use the $HOME/.local/shared/applications/netbeans-x.x.x.desktop file, 
you can drag the netbeans icon from the Unity Menu to Unity Launcher or copy 
$HOME/.local/shared/applications/netbeans-x.x.x.desktop to 
~/Desktop/netbeans-7.1.2.desktop

Original comment by danjaredg on 30 May 2012 at 3:49

Thanks, this worked for me:
StartupWMClass=sun-awt-X11-XFramePeer

Original comment by dag...@gmail.com on 4 Jun 2012 at 3:31

I found the problem with launcher, in few time I will release the 1.2.3 version

Original comment by danjaredg on 6 Jun 2012 at 1:47

I do have a problem with new 1.2.3 version. 1.2.2 worked, 1.2.3 throws 
java.lang.IllegalAccessError: DesktopFile is not initialized and Netbeans does 
not start.

Original comment by Kacprzak...@gmail.com on 11 Jun 2012 at 7:05

Attachments:

Ok, there are a problem with my extension, for a fast workaround, you need 
change to Oracle Java 6, Oracle Java 7 or Open JDK 7.

On your log, I can see that you are using a Open JDK 6.

"Java Home               = /usr/lib/jvm/java-6-openjdk-amd64/jre"

The Open JDK 6 is not supported, so, the DesktopFile is never initialized, and 
also I forgot to use "AyatanaDesktop.isSupported()" when change the 
StartupWMClass on Netbeans startup.

This generate the error: java.lang.IllegalAccessError: DesktopFile is not 
initialized.

Original comment by danjaredg on 11 Jun 2012 at 5:07

java.lang.AssertionError
    at org.openide.text.CloneableEditor.getEditorPane(CloneableEditor.java:1295)
    at org.netbeans.core.multiview.TabsComponent$1.getDefaultComponent(TabsComponent.java:101)
    at javax.swing.SortingFocusTraversalPolicy.getComponentDownCycle(SortingFocusTraversalPolicy.java:204)
    at javax.swing.SortingFocusTraversalPolicy.getFirstComponent(SortingFocusTraversalPolicy.java:447)
    at javax.swing.LayoutFocusTraversalPolicy.getFirstComponent(LayoutFocusTraversalPolicy.java:166)
    at javax.swing.SortingFocusTraversalPolicy.getDefaultComponent(SortingFocusTraversalPolicy.java:515)
    at javax.swing.SortingFocusTraversalPolicy.getComponentDownCycle(SortingFocusTraversalPolicy.java:194)
    at javax.swing.SortingFocusTraversalPolicy.getFirstComponent(SortingFocusTraversalPolicy.java:447)
    at javax.swing.LayoutFocusTraversalPolicy.getFirstComponent(LayoutFocusTraversalPolicy.java:166)
    at javax.swing.SortingFocusTraversalPolicy.getComponentAfter(SortingFocusTraversalPolicy.java:290)
    at javax.swing.LayoutFocusTraversalPolicy.getComponentAfter(LayoutFocusTraversalPolicy.java:106)
    at java.awt.Component.getNextFocusCandidate(Component.java:7860)
    at java.awt.Component.transferFocus(Component.java:7828)
    at java.awt.Component.hide(Component.java:1684)
    at java.awt.Component.show(Component.java:1653)
    at java.awt.Component.setVisible(Component.java:1603)
    at javax.swing.JComponent.setVisible(JComponent.java:2631)
[catch] at org.java.ayatana.ApplicationMenu.install(ApplicationMenu.java:353)


I'm getting this at the startup. I'm using the newest dev build of Netbeans.

Original comment by maciek.k...@gmail.com on 15 Jun 2012 at 10:03

I updated to plug9in 1.2.3 and now I get this at startup:

java.lang.AssertionError
    at org.openide.text.CloneableEditor.getEditorPane(CloneableEditor.java:1295)
    at org.netbeans.core.multiview.TabsComponent$1.getDefaultComponent(TabsComponent.java:101)
    at javax.swing.SortingFocusTraversalPolicy.getComponentDownCycle(SortingFocusTraversalPolicy.java:204)
    at javax.swing.SortingFocusTraversalPolicy.getFirstComponent(SortingFocusTraversalPolicy.java:447)
    at javax.swing.LayoutFocusTraversalPolicy.getFirstComponent(LayoutFocusTraversalPolicy.java:166)
    at javax.swing.SortingFocusTraversalPolicy.getDefaultComponent(SortingFocusTraversalPolicy.java:515)
    at javax.swing.SortingFocusTraversalPolicy.getComponentDownCycle(SortingFocusTraversalPolicy.java:194)
    at javax.swing.SortingFocusTraversalPolicy.getFirstComponent(SortingFocusTraversalPolicy.java:447)
    at javax.swing.LayoutFocusTraversalPolicy.getFirstComponent(LayoutFocusTraversalPolicy.java:166)
    at javax.swing.SortingFocusTraversalPolicy.getComponentAfter(SortingFocusTraversalPolicy.java:290)
    at javax.swing.LayoutFocusTraversalPolicy.getComponentAfter(LayoutFocusTraversalPolicy.java:106)
    at java.awt.Component.getNextFocusCandidate(Component.java:7860)
    at java.awt.Component.transferFocus(Component.java:7828)
    at java.awt.Component.hide(Component.java:1684)
    at java.awt.Component.show(Component.java:1653)
    at java.awt.Component.setVisible(Component.java:1603)
    at javax.swing.JComponent.setVisible(JComponent.java:2631)
[catch] at org.java.ayatana.ApplicationMenu.install(ApplicationMenu.java:353)

Original comment by maciek.k...@gmail.com on 15 Jun 2012 at 10:10

Interesting. At some point my X server crashed and restarted, and now Netbeans 
icon is back on the  launcher :)

Original comment by maciek.k...@gmail.com on 15 Jun 2012 at 11:55

maciek.kwidzinski, do always show the same error?, do this error always 
generate netbeans crash?

Original comment by danjaredg on 15 Jun 2012 at 5:00

I downloaded the newest NetBeans dev build 201206180001, edited the .desktop 
file adding StartupWMClass=sun-awt-X11-XFramePeer BEFORE the first run of new 
netbeans and it is all okay now :)

Original comment by maciek.k...@gmail.com on 18 Jun 2012 at 10:28

maciek.kwidzinski, do you can send me your desktop file. I need watch a 
StartupWMClass property, The plugin should be change this property to netbeans.

Original comment by danjaredg on 18 Jun 2012 at 2:37

Original comment by dag...@gmail.com on 2 Jul 2012 at 9:24

Attachments:

Hi dagguh,

If you are using a netbeans dev, can't get a netbeans versión, so, the pugin 
use "Netbeans IDE 7.1.2" by default (because is the versión that I'm use).

You can add the property "netbeans.jayatana.desktopfile.id=netbeans-Build\ 
201206290002" in your netbeans.conf 
"-J-Dnetbeans.jayatana.desktopfile.id=netbeans-Build\ 201206290002". This 
property is used to desktopfile name and startupWMClass.

With a Unity Update for canonical the startupWClass couldn't updated (but is 
already fixed) and the workarround "StartupWMClass=sun-awt-X11-XFramePeer" not 
works more.

If you use StartupWMClass=sun-awt-X11-XFramePeer is the default startupWMClass 
for any application with Java and It was add to same Launcher Icon.

Original comment by danjaredg on 2 Jul 2012 at 3:24

Original comment by danjaredg on 24 Sep 2012 at 5:11

  • Changed state: Fixed