restructure code and add oraclejdk6.