Fixed and java jdk linking problem in Ubuntu 12