Viser indlæg fra maj, 2012

Installing Oracle Java (JDK) on openSUSE

There is a guide for installing the JRE from Oracle here. Most of these steps also works for the JDK.

I did not install the IcedTea plugin and the openJDK.

Other than that the compiler (javac) also needs to be updated. To do that run the following commands:

update-alternatives --install "/usr/bin/javac" "javac" "/opt/java/64/jdk1.6.0_31/bin/javac" 1
update-alternatives --set javac /opt/java/64/jdk1.6.0_32/bin/javac
For the java browser plug-in it is also possible to use update-alternatives to change the browser plug-in:

sudo /usr/sbin/update-alternatives --install /usr/lib64/browser-plugins/ javaplugin /opt/java/jdk1.7.0_25/jre/lib/amd64/ 3 --slave /usr/bin/javaws javaws /opt/java/jdk1.7.0_25/jre/bin/javaws --slave /usr/share/man/man1/javaws.1 javaws.1 /opt/java/jdk1.7.0_25/man/man1/javaws.1
update-alternatives --config javaplugin

My first tablet: A Galaxy Tab 10.1 review

My first impressions with the Galaxy Tab 10.1 I recently got my first tablet. I ended up with the Samsung Galaxy Tab 10.1. I did consider the iPad 2 & 3.
My reasons for going with the Android tablet were:
I have already invested in the Android platform in the form of my Nexus S phone.The iPads tight integration with iTunes for transferring were not ideal.The tablet were also ment as entertainment for the kids and the flash support would give access to more online universes for the kids. On the other hand the iPad had a few more danish apps for the kids. But flash support won that battle.The better cameras that I use for video calls also spoke in favor of the Galaxy Tab. Using a Google Apps account with the tablet I used my Google Apps account to setup the Galaxy Tab. When I tried to access the Google Play store my searches didn't return any results.
I tried to google it but I couldn't find any information on what could cause this. One day I added a "classic" Goog…

Executing process from java...

Everytime I need to launch a native program from Java I always end up with this old guide. It covers all that is needed to execute a native application from Java.

If you are fine with including 3rd party libraries here is a guide using the Executor from the apache commons project: