Integrando Java con Ubuntu (netbeans)

Ya termine la primera fase de la librería de integración que es la integración con el menú de aplicaciones global, así que el siguiente punto es integrarlo con aplicaciones, y como primer punto, he integrado con Netbeans.

Java Ayatan con Netbeans

Para instalar debes agregar un nuevo repositorio de extensiones:

Tools -> Plugins -> Settings

Configuración de Netbeans

La URL para actualización automática de plugins es:

http://java-swing-ayatana.googlecode.com/files/netbeans-catalog.xml

Espero y la disfruten, aunque un estoy revisando, si les genera un error no duden en avisarme, la pagina del proyecto esta en:

http://code.google.com/p/java-swing-ayatana/

Anuncios

25 pensamientos en “Integrando Java con Ubuntu (netbeans)

  1. La integración con el menú global me ha funcionado bien con Ubuntu 11.10 + Unity 4.28.0 + NetBeans 7.1, pero los menús aparecen vacíos al hacer click. Muy buen trabajo liberando el código, aunque no estoy muy puesto en swing como para buscar el error. Gracias por tu trabajo

    • Reinicia Netbeans con eso debe de mostrar el menu funcionando, ya encontré el error (al menos eso creo) así que en esta semana estaré subiendo la actualización, aun no lo he hecho ya que aun necesito integrar Launcher API

  2. Funciona para Unity 5.8? Lo instale pero no se integra con el Global menu, seria genial tener la integracion con HUD
    Buen trabajo

    • mmm, realmente no lo se, aun no lo he probado sobre Ubuntu 12.04, y por el momento excluye la versión 12.04 desde código, por ya lo estaré portando a Unity 5, pero pe esperare a que salga la versión estable…

  3. Hi I’m on ubuntu 64bit 12.04 with oracle java 7
    Global menu: works
    Launcher: woks

    I had this problem
    – libjawt.so cannot open shared object file no such file
    I solved with this
    – sudo ldconfig /usr/lib/jvm/java-7-oracle/jre/lib/amd64/

    Thank you for this plugin 🙂

  4. Excellent Work.
    For the Java Ayatana Library for Swing Applications, it works very well. No issue do far.
    Yet the Plugin for Netbeans for Netbeans 7.2.1 under Ubuntu 12.04 does not work yet! I checked the code and saw that you’re still working on it.
    Can’t wait for the netbeans nbm 🙂
    Thanks again for this initiative!
    If you need any help! Don’t hesitate to ask!

    • @Hanynowsky:
      When you run Netbeans you got any error ? ( look in bottom left for a red symbol) …

      I had this problem
      – libjawt.so cannot open shared object file no such file
      I solved with this
      – sudo ldconfig /usr/lib/jvm/java-7-oracle/jre/lib/amd64/

      • @fra Yes I get an error but this has nothing to do with libjawt.so in my opinion!
        I get an exception:

        java.lang.ClassCastException: java.util.Locale cannot be cast to java.lang.Comparable
        at java.util.TreeMap.compare(TreeMap.java:1188)
        at java.util.TreeMap.put(TreeMap.java:531)
        at org.java.ayatana.DesktopFile.setName(DesktopFile.java:121)
        at org.java.ayatana.DesktopFile.load(DesktopFile.java:361)
        at org.java.ayatana.DesktopFile.(DesktopFile.java:104)
        at org.java.ayatana.DesktopFile.initialize(DesktopFile.java:61)
        at org.nbs.java.ayatana.Installer.restored(Installer.java:54)
        at org.netbeans.core.startup.NbInstaller.loadCode(NbInstaller.java:426)
        [catch] at org.netbeans.core.startup.NbInstaller.load(NbInstaller.java:366)
        at org.netbeans.ModuleManager.enable(ModuleManager.java:1080)
        at org.netbeans.core.startup.ModuleList.installNew(ModuleList.java:340)
        at org.netbeans.core.startup.ModuleList.trigger(ModuleList.java:276)
        at org.netbeans.core.startup.ModuleSystem.restore(ModuleSystem.java:294)
        at org.netbeans.core.startup.Main.getModuleSystem(Main.java:172)
        at org.netbeans.core.startup.Main.start(Main.java:308)
        at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:123)
        at java.lang.Thread.run(Thread.java:722)

        ————————-
        This exception is also appended in the log file : /home/user/.netbeans/7.1.2/var/log/message.log
        Somthing might be wrong at ayatana.DesktopFile methods and ayatana.Installer

  5. @fra problem solved. Now it’s enabled. It was some weird conflict between an existing .desktop file and the one created by jayatana. The file created was mal formed for some reason and that blocked the whole process from executing! the DesktopFile methods threw exceptions due to this (comparing Locale value here)!
    /home/username/.local/share/applications/netbeans.desktop vs /usr/share/application/netbeans.desktop and the one actually created by jayatana : /home/username/.local/share/applications/netbeans-7.1.2.desktop . I had already netbeans.desktop in both locations and maybe this was the main reason that prevented the complete creation of the netbeans-7.1.2.desktop file.

    • I need review the DesktopFile class and netbeans plugin for this error, JAyatan should be overwrite a netbeans-x.desktop created for Netbeans instalation to add a WM_CLASS and works with Launcher. But I don’t foresee a Netbeans DEB Package instalation.

      • Yes Indeed.
        And a debian package or a Launchpad PPA are not mandatory in this case as it’s a Library that can be imported through Netbeans Plugin Center.
        By the way, excellent work and programming 😉

  6. Hello,
    I’m using gnome-session-fallback (gnome-panel, metacity), without unity but with the indicator-appmenu to get the global menu. I tryed to install the plugin, but nothing happens, no .desktop file is being added or modified.
    Is it possible to have the plugin work in this condition?

Responder

Introduce tus datos o haz clic en un icono para iniciar sesión:

Logo de WordPress.com

Estás comentando usando tu cuenta de WordPress.com. Cerrar sesión / Cambiar )

Imagen de Twitter

Estás comentando usando tu cuenta de Twitter. Cerrar sesión / Cambiar )

Foto de Facebook

Estás comentando usando tu cuenta de Facebook. Cerrar sesión / Cambiar )

Google+ photo

Estás comentando usando tu cuenta de Google+. Cerrar sesión / Cambiar )

Conectando a %s