fix mybira issue; add JAVA_HOME,JDK_HOME paths
fix emacs/scala issue