Netbeans

Up

Netbeans / Ubuntu 7.10

2008-01-21 I just installed netbeans 5.5 on my Quad-core machine running Ubuntu 7.10. Netbeans is in the repository, so I just had to install the netbeans-5.5 package. This also installed the sun-java5* packages. But I'm mostly using Java6 now. I had the java6 jre installed so I just needed to install the sun-java6-jdk package. Then I made sure the java-6 was the default:

sudo update-alternatives --config java

There are 3 alternatives which provide `java'.

  Selection    Alternative
-----------------------------------------------
          1    /usr/bin/gij-4.2
*+        2    /usr/lib/jvm/java-6-sun/jre/bin/java
          3    /usr/lib/jvm/java-1.5.0-sun/jre/bin/java

So all is well. When I went to install the Hibernate extensions, the Netbeans updated griped about permissions, so I did the following:

sudo chgrp -R admin /usr/share/netbeans
sudo chmod -R g+w /usr/share/netbeans

Since my account is part of the admin group, now I can add global modules.

Hibernate and Netbeans

Make sure you have downloaded the current Hibernate installation from http://hibernate.org/. See Hibernate Plugin for NetBeans 5.0 for installation help and also for a link to a short video tutorial. Basically you have to first download a NetBeans plugin from here. Installation is very simple. Just start NetBeans. Select Tools/Update Center. Choose the option to Install Manually Downloaded Modules (.nbm files). Continue with the installation of the module you just downloaded. After doing that, run the Update Center again and install Hibernate (with all its dependencies).

The Hibernate NetBeans module adds the following libraries to the project:

hib-antlr.jar
hib-asm.jar
hib-cglib-full.jar
hib-commons-collections.jar
hib-commons-logging.jar
hib-concurrent.jar
hib-dom4j-1.jar
hib-ehcache.jar
hib-hibernate.jar
hib-jdbc2_0-stdext.jar
hib-jdbc-driver.jar
hib-jta.jar
hib-log4j.jar

Integrate Hibernate with Google Web Toolkit (GWT) in NetBeans

  • Make sure you have installed the NetBeans modules to support GWT and Hibernate. Here are the links:
  • Create a GWT project
  • Edit the project properties and add in the Hibernate libraries mentioned above
  • Edit the build.xml for your GWT project to include the following at the bottom:
<target name="-post-compile" depends="-post-compile-extension" />
<target name="-pre-compile" depends="-pre-compile-extension" />
<target name="-pre-init" depends="-pre-init-extension" />    
It should already have <import file="extension/build.xml" /> near the top.

Netbeans 5, Linux, double-click speed

We found that the setting for the mouse's double-click speed was way too small for Netbeans 5 running under Ubuntu Linux. Altering the system preferences (System / Preferences / Mouse) had no effect on what Netbeans was using. We googled around a bit and found a post relating to that problem. Here is the fix:

  1. Create/edit the file ~/.Xdefaults and enter/add the following:
*.multiClickTime: 500
  1. Save changes and restart the windowing system (Ctrl-Alt-Backspace)

2006-01-13

Installed Netbeans 5.0 RC1 on gordy19, my Ubuntu/AMD64 system. Installed the product to /usr/local/lib/netbean5.0. I had first tried to install the version that had the SJAS bundled with it but the installer complained that it was not compatible with a 64-bit version of Java. I'm currently running this version of Java:

 
gordy@gordy19:~$ java -version
java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_06-b05, mixed mode)

I have it installed in /usr/local/lib/jdk1.5.0_06 and have a symbolic link /usr/local/lib/jdk that points to it.

The end of the Netbeans installer reported:

 
NetBeans IDE 5.0 RC1 installation location:
/usr/local/lib/netbeans5.0
To run the IDE, launch:
/usr/local/lib/netbeans5.0/bin/netbeans
To uninstall the IDE, launch:
/usr/local/lib/netbeans5.0/_uninst/uninstaller    


Page last modified on January 21, 2008, at 10:47 AM