Installing Firefox Java plugin on Ubuntu Linux for Dummies

As a Windows user, I was amused how not easy to install Java on Ubuntu Linux (10.04) nor installing Java (1.6) plugin into Firefox (3.6). It's not nearly a download-next-next-finish task. Additionally, digging into forums I found a lot outdated solutions which I tried and soon realized that they doubtlessly aren't working. Here is the one which worked for me:

First, open a terminal window:

Applications menu -> Accessories -> Terminal.

Type the followings (you will be promted for admin password, because sudo prefix means you want to do something in the name of the super (or sytem) user):

sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
sudo aptitude update
sudo aptitude install sun-java6-jdk

Then you have to select things with arrows and pressing enter.
Then Timothy says in the forum you have to type this, but I didn't need it:

sudo update-alternatives --config java

Now you can check if java is installed by typing java -version.

Installing Java plugin into Firefox is no more than making a symbolic link with the ln command. I had to go in the /usr/lib/mozilla/plugins directory, then make the symbolic link with this:

sudo ln -s /usr/lib/jvm/java-6-sun/jre/lib/i386/libnpjp2.so

Restart Firefox if it's running. Java may work.
Sorry for the laxity, I'm still a beginner Ubuntu user.


Web-based chart libraries

Recently I was hunting for good web-based client-side chart-drawing libraries. I've found a number of blog entries or articles which enumerates some subset of existing frameworks and write sentences about them, like this: 'This is fancy, this is not so fancy but it's still good.' Those writings didn't help me a lot.
What I am interested in?
  • Presentation model: Can be Flash, HTML Canvas or any other magic. This influences interoperability and scalability of the charts.
  • Licensing model: Is it free, commercial or GPL.
  • Dependencies: Should I have to bring another dependencies with the chart-drawing facility?
  • Docs: quality of documentation.
  • Examples: quality of examples.
  • And finally, outlook of the charts and number of the options are also matters.

I've found 16 libraries up to now and made an overall matrix about them, regarding considerations above.

Check it out.



There were three presentation as usual at the 14th Java User Meeting at Budapest yesterday, but this time I'll write only about the first one.

Imre Fazekas had been invited from Debrecen to make a presentation about Brillien, their Java enterprise platform. It's an alternative way of modeling and implementing business logic in place of Java Enterprise (J2EE) Technology. It uses invasive programming model which means we have to extend classes from Brillien superclasses and we may use annotations. The whole system based on asynchronous XMPP communication and a set-context-flow concept. It's something like an application server, but uses a more logical and set-based approach. As the presenter said, it has very good speed and performance characteristics.

Currently there are no IDE or other tools for editing models because this is a very young project, however a Maven plugin and a Maven archetype is accessible on the homepage.

A very good introduction and tutorial can be also found on the homepage. The code can be downloaded as binary distribution and SVN repository is also accessible. As he said they are preparing to run it in production environment and they know about a few other users.

It seems very exciting. Unfortunately I dont't have time to check it out at the moment, however, it's in the queue.