I'm trying to execute shp2pgsql from inside a jsp script, but I can't seem to figure out how. This is what I've been trying so far: String cmd = "/usr/bin/shp2pgsql -s 4269 usr/local/apache-tomcat-5.5.17/webapps/ROOT/LoadTemp/test_shapeGEO public.test_shapeGEO | psql -d shared_spatial -U pgis_loader"; Runtime.getRuntime().exec(cmd); This does not work. Any Suggestions?