The output from the code that follows is:
java.vendor Sun Microsystems Inc. java.version 1.6.0_26 java.runtime.version 1.6.0_26-b03 sun.arch.data.m
I had a similar issue. I fixed it following the advice from this thread