import java.io.IOException; class Test ... { public static void main(String args[]) ...{ String file = "D:/task/2007-7-26/OT_SIR95007_26072007_OR_op_bp_cust_contracts.sql"; String sql = "SQLPLUS orscmddl/orscmddl123@ORDV24 @"; try ...{ Runtime.getRuntime().exec(sql + file); } catch (IOException e) ...{ e.printStackTrace(); } }}