Sunday Nov 04, 2007

I created a Netbeans tutorial on how to develop desktop application with JRuby and Swing based on the demo I presented to Vancouver Ruby and Rails last month.

 Follow-up interview about my work on JRuby:

- Interview with James Branam

- Confession of a Netbeans Ruby user

I'm working on a new tutorial showing how to package JRuby-Swing desktop app with Netbeans. Stay tuned for more!
 

Saturday Sep 22, 2007

I often bundle together a number of jar files used for complete certain task to a class library in Netbeans. Until recently I found that my collection of class libraries have grown larger to the point that it would take more than a solid 15 minutes to re-create all of them (I normally do this manually). So I thought this is the time to do things smarter! I checked out Netbeans Help content and I found that in order to import existing class libraries to newer version I have to

To import settings from the previous version of the IDE if you did not do so the first time you launched the IDE: 


  1. Make sure that you still have the user directory from the previous version of the IDE on your system in its default location.

  2. On Microsoft Windows systems, the default location is C:\Documents and Settings\username\.netbeans\version-number\.

  3. On UNIX and Linux systems, the default location is /home/username/.netbeans/version-number/.

  4. If the new version of the IDE is running, exit the IDE.

  5. Locate the user directory of the new IDE installation.

  6. On Microsoft Windows systems, the default location is C:\Documents and Settings\username\.netbeans\version-number.

  7. On UNIX and Linux systems, the default location is /home/username/.netbeans/version-number.

  8. Rename or delete the new installation's user directory.

  9. Restart the new installation of the IDE.

  10. In the License Agreement, click Accept.

  11. In the Confirm Import Settings dialog box, click Yes.

I followed the step, but after 3 attempts (involving re-installing Netbeans), I still couldn't get my libraries to port from Netbeans 6 M10 to Beta 1. So I tried to search on internet, but still unable to find any good information.

Apparently there's a quicker way to do this. Basically repeat the instruction from step 1 to 7 above. Under "<home>/<username>/.netbeans/<previous version number>/config" folder, look for a folder "org-netbeans-api-project-libraries"

nbimportlibrary11.png 


nbimportlibrary2.png

Under this folder, you'll find another folder name "Libraries" which store a bunch of XML files describing each of all class libraries you've created.


nbimportlibrary3.png

To port these libraries to other version of Netbeans, simply copy these XML files to corresponding "<home>/<username>/.netbeans/<new version number>/config/org-netbeans-project-libraries/Library" and that's done.


nbimportlibrary4.png

Monday Jul 23, 2007

I had my fifth presentation for summer semester at SFU today. The topic was around how Netbeans can be used to enhance Java application development and showcasing Netbeans code auto-generation and refactoring. This will conclude five demo sessions in total for the semester.

 
It's good to see that more and more people are interested in the event. I've collected some feedbacks from the audience and many are anticipating more for upcoming Fall semester. Topics that I touched upon during the presentation:

- Code Faster: Netbeans 6.0 code hinting and auto-generation
- Code Better: Netbeans refactoring
- Testing: Netbeans JUnit
- Local History in Netbeans 6.0


 

This blog copyright 2009 by teera