update to java7 and fixed the package name of postgres/postgis