Process myProcess = Runtime.getRuntime().exec("ipconfig"); InputStreamReader ir = new InputStreamReader(myProcess.getInputStream()); LineNumberReader input = new LineNumberReader (ir); String line; while ((line = input.readLine ()) != null) Syst
https://www.cnblogs.com/joyny/p/11176643.html https://community.oracle.com/thread/4096458 import java.io.PrintStream;import java.sql.*;import java.util.Properties;import java.sql.PreparedStatement;import java.sql.ResultSet; public class ZJdbcPing { p