You are here: Home ยป Blog

New Java7 feature: try-with-resources

Posted on Friday, March 09 2012 at 21:36 | Category: Software Engineering, Java | 0 Comment(s)

This article explains how to use the try-with-resources feature introduced in Java 7: Try-with-resources


Java nested classes

Posted on Friday, March 02 2012 at 21:09 | Category: Software Engineering, Java | 0 Comment(s)

Remember what the different types of nested classes are in Java? If not, this article might be worth reading: Java nested classes


Java browser plugin on Ubuntu 10.04

Posted on Tuesday, November 16 2010 at 22:26 | Category: News, Java | 2 Comment(s)

Since a while (I think since I upgraded my Linux installation from Ubuntu 9.10 to 10.04), my Mozilla Firefox (3.6.3) did not recognize the Java plugin anymore. The interesting learning is that this does not really affect day-to-day internet usage - even though I am regularly browsing through the web, I noticed the missing applet functionality only very seldom, and it has never been a blocker for me in the last couple of months. I never really liked Java applets on web pages, and it seems that this technique has now almost been superseeded by other technologies like flash. Nevertheless, yesterday I was forced to make the Java browser plugin work on my installation because the german postal service DHL requires it for printing out stamps. Earlier they used a scripted PDF document which could be printed with Acrobat reader and which connected to the DHL web site to ensure it is printed only once, but due to customer complaints they switched to a Java applet based solution (at least, the PDF approach also worked in Linux ;-) ) So, I did two things to make the Java plugin work again:

  • Ubuntu has removed the SUN (now aka Oracle) java packages from their repository. Since I suspected an installation issue, I installed the current JDK from the Oracle web site (Ubuntu now only contains OpenJDK, but I do not yet have experience with it)
  • Installing the JDK was not sufficient. Additionally, I had to link /etc/alternatives/firefox-javaplugin.so to the library libnpjp2.so below the jre/lib/i386/ directory, instead of the library libjavaplugin_oji.so below the jre/plugin/i386/ns7 directory.

 

This finally made the browser plugin work.


Displaying results 21 to 23 out of 23
<< First < Previous 1-4 5-8 9-12 13-16 17-20 21-23 Next > Last >>