Posts about java

Java in Firefox after v52.0 (Checkpoint VPN)

08 March 2017

Firefox has changed a few things in its plugin infrastructure and that means Java will no longer work properly after version 52.0 (especially if you are using Checkpoint VPN to access work).

Fortunately one can always install older versions, present here:

Also, be sure to disable automatic updates in the settings to prevent the browser from updating itself (default).

Bonus step (if you are on the mac configuring Checkpoint):

The newest OSX has a safety fea...

AES encryption in Ruby and Decryption in Java

24 February 2015
This one is precious, as it took me a long time to figure out. As a side-note, Java apparently only supports 128bit AES.

Here's the Ruby code:

def encrypt(string, pwd)
    salt = OpenSSL::Random.random_bytes(16)

    # prepare cipher for encryption
    e ='AES-128-CBC')

    # next, generate a PKCS5-based string for your key + initialization vector
    key_iv = OpenSSL::PKCS5.pbkdf2_hmac_sha1(pwd, salt, 1024, e.key_len+e.iv_len)
    key = key_iv[0, e...

'OSX Mavericks "You need a Java 6 runtime to run X" error dialog fix'

24 January 2015

Ok, so here's the deal: If you upgrade to [OSX Mavericks](, only had JAVA 7 installed, and try to run anything that requires JAVA you will probably get a nice dialog like this one:

All my attempts to make Mavericks use JAVA 7 instead have failed so i tried the next best thing: Install JAVA 6. Since you can't find JAVA 6 for Mac at the [Oracle]( site, you'll have to install it from here: [Java for OS X 2013-004](

Displaying posts 1 - 3 of 10 in total