Tag: java

Here you can see a listing of all the posts tagged with java on this website.

  • Pellet 2.0rc1 ... and a big surprise

    Posted on Oct. 29, 2008 at 01:21 +0100 Tagged with , , , , , , ,

    If you've ever had to work with some OWL-ontologies, you have definitely heard the name Pellet. It is perhaps the most wildly use opensource OWL-reasoner/engine out there. Yesterday Evren Sirin announced the release of the first release candidate of the upcoming version 2.0, that (among other things) includes preliminary support for OWL 2.0. But there is also a catch ...

    [more ...]

    2 comments

  • Geoserver with OpenJDK on Ubuntu? I guess not

    Posted on Aug. 18, 2008 at 15:44 +0200 Tagged with , , , ,

    Or at least not for now. Today I had to install Geoserver on a new Ubuntu 8.04 server within a current Tomcat (6.0.18) for a colleague and was greeted by a nice error message related to casting and the javax.imageio package (or earlier on with a ClassDefNotFound exception related to the same package). The problem here seems to be that the stable Geoserver 1.6.x is not really compatible with OpenJDK yet.

    So for now the fastest way to get it working again (that is, if you don't absolutely require OpenJDK) to move back to the old Sun Java 6 package by first installing "sun-java6-jdk" and then by switching to it using update-alternatives --config java.

    At first I thought I had to install some external libraries and miserably failed to install the jai_imageio binary package thanks to the package being broken and naturally Sun has to have internal checksums so that you can't easily fix this. But luckily this has become a non-issue with the move back to Java6 for now, but I'm really curious if I just messed up something there or the missing jai_imageio package was really the problem here. I guess, this is a problem for later, now that I have a workaround in place ;-)

    1 comment

  • Default value handling with Json-lib

    Posted on Feb. 9, 2008 at 13:19 +0100 Tagged with , , ,

    As part of a project I'm working on I'm currently moving tons of data between servers and clients using JSON. Since all components are written in Java I was looking for a simple yet customizable JSON library and eventually ended up using Json-lib which let's you easily serialize a JavaBean into a JSON-string. While looking through the network traffic yesterday, I noticed a small problem, though: When you convert for instance an Integer property of the bean and this Integer is currently a null-pointer, Json-lib will make a 0 out of it. While in most cases probably a good idea, in my particular case it's simply the wrong way of handling the null-reference since 0 has a different semantic in that particular bean.

    [more ...]

    0 comments

  • TinyTip: Where are my cookies in commons-httpclient?

    Posted on Feb. 4, 2008 at 22:28 +0100 Tagged with , , ,

    commons-httpclient is for me perhaps one of the most useful libraries in Java when it comes to doing HTTP requests. It not only abstracts HTTP logically but at the same time keeps you at a low enough level. That said, it still abstracts some stuff perhaps a little bit too far away for some use cases.

    [more ...]

    0 comments

  • JMF Format checking: The Evil Edition

    Posted on Feb. 5, 2007 at 13:06 +0100 Tagged with , ,

    Desperate times sometimes require desperate solutions for stupid problems. For example today I have a deadline for a small JMF project. A part of the project is, that an RTSP client should be able to request only for example the audio streams of a certain object on the server so the client should have some kind of flag that specifies what streams should now really be used.

    [more ...]

    0 comments

  • JMF not really so useful...

    Posted on Nov. 16, 2006 at 23:53 +0100 Tagged with , , ,

    Is it just me or is JMF yet another example why Java isn't really platform independent? Or actually another example of Sun really making it useful no matter what platform you're on. For example: I now have to write a small program using JMF. I thought: Great, should be no problem using a normal MPEG-1 stream as input source. Yeah, right ... According to the list of supported formats the really platform independent JMF package doesn't support even MPEG-1. This feature is reserved for the platform-dependent binaries. I also tried to register the MP3 plugin and failed there too, so perhaps I understood something the wrong way (but at least I also read about other people having the same problem).

    [more ...]

    0 comments

  • RMI Tutorial

    Posted on June 23, 2005 at 11:45 +0200 Tagged with , , ,

    RMI Tutorial

    Was ist RMI? RMI bedeuted "Remote Method Invokation" und dient dazu, Dienste auf einem Rechner anzubieten, die dann von einem anderen Rechner in Anspruch genommen werden können. Bei diesen Diensten handelt es sich um Java-Objekte die dann am Clientrechner direkt in lokale Variablen eingebunden werden können.

    Wenn jedoch eine Methode dieses Objektes ausgeführt werden soll, dann wird diese auf dem "Server" ausgeführt und das Ergebnis dann an den Client übermittelt.

    [more ...]

    2 comments

  • Java.com redesigned

    Posted on Feb. 14, 2005 at 20:30 +0100 Tagged with ,

    Seems like Java.com got a nice new redesign :-) The new version of the end user Java page presents itself in a quite colourful and game/mobile oriented way. And only 41 errors on validator.w3.org ;-)

    [more ...]

    0 comments

  • Connecting to a MySQL DB in Java

    Posted on Jan. 8, 2005 at 23:32 +0100 Tagged with

    And here it is: Another small tutorial :-) This time we will build a small Java application that simply connects to a MySQL database and prints the conent of one of the database's tables.

    [more ...]

    3 comments