试试这个:(下面提到的都是java.lang包的类、出特殊说明的)
///////////////////////////////////////////////////////////////////
Systemstatic Properties getProperties()
Determines the current system properties. static String getProperty(String key)
Gets the system property indicated by the specified key.
static String getProperty(String key, String def)
Gets the system property indicated by the specified key. /////////////////////////////////////////////////////////////////
java.util.PropertiesString getProperty(String key)
Searches for the property with the specified key in this property list.
String getProperty(String key, String defaultValue)
Searches for the property with the specified key in this property list.
//////////////////////////////////////////////////////////////////
Runtime Process exec(String command)
Executes the specified string command in a separate process.
Process exec(String[] cmdarray)
Executes the specified command and arguments in a separate process.
Process exec(String[] cmdarray, String[] envp)
Executes the specified command and arguments in a separate process with the specified environment.
Process exec(String[] cmdarray, String[] envp, File dir)
Executes the specified command and arguments in a separate process with the specified environment and working directory.
Process exec(String cmd, String[] envp)
Executes the specified string command in a separate process with the specified environment.
Process exec(String command, String[] envp, File dir)
Executes the specified string command in a separate process with the specified environment and working directory.
///////////////////////////////////////////////////////////////////
Processabstract void destroy()
Kills the subprocess.
abstract int exitValue()
Returns the exit value for the subprocess.
abstract InputStream getErrorStream()
Gets the error stream of the subprocess.
abstract InputStream getInputStream()
Gets the input stream of the subprocess.
abstract OutputStream getOutputStream()
Gets the output stream of the subprocess.
abstract int waitFor()
causes the current thread to wait, if necessary, until the process represented by this Process object has terminated. 然后自己看吧!
///////////////////////////////////////////////////////////////////
Systemstatic Properties getProperties()
Determines the current system properties. static String getProperty(String key)
Gets the system property indicated by the specified key.
static String getProperty(String key, String def)
Gets the system property indicated by the specified key. /////////////////////////////////////////////////////////////////
java.util.PropertiesString getProperty(String key)
Searches for the property with the specified key in this property list.
String getProperty(String key, String defaultValue)
Searches for the property with the specified key in this property list.
//////////////////////////////////////////////////////////////////
Runtime Process exec(String command)
Executes the specified string command in a separate process.
Process exec(String[] cmdarray)
Executes the specified command and arguments in a separate process.
Process exec(String[] cmdarray, String[] envp)
Executes the specified command and arguments in a separate process with the specified environment.
Process exec(String[] cmdarray, String[] envp, File dir)
Executes the specified command and arguments in a separate process with the specified environment and working directory.
Process exec(String cmd, String[] envp)
Executes the specified string command in a separate process with the specified environment.
Process exec(String command, String[] envp, File dir)
Executes the specified string command in a separate process with the specified environment and working directory.
///////////////////////////////////////////////////////////////////
Processabstract void destroy()
Kills the subprocess.
abstract int exitValue()
Returns the exit value for the subprocess.
abstract InputStream getErrorStream()
Gets the error stream of the subprocess.
abstract InputStream getInputStream()
Gets the input stream of the subprocess.
abstract OutputStream getOutputStream()
Gets the output stream of the subprocess.
abstract int waitFor()
causes the current thread to wait, if necessary, until the process represented by this Process object has terminated. 然后自己看吧!
解决方案 »
- 用swt/jface的table viewer画表格
- TIJ4 Chapter Access, Exercise 8, page 233
- socket编写银行通讯接口,搞不懂他说的包头是什么东东,达人帮理解一下!
- 如何设置JTabbedPane为透明,或者如何设置JPanel为透明
- 由Class.forName()抛出异常而引出的一个常识问题
- vc下面有个GetTickCount函数,java与之相对应的函数有吗,哪有没有类似的替代的函数
- 紧急呀!!!
- 如何设置jdbtable中列的宽度(像素)
- 如何将一个int放入到一个byte buf[]中的指定位置?
- 怎样将一个GMT日期格式转换成CST时间?
- 求教JAVA包问题!
- 关于类的问题
Runtimestatic Runtime getRuntime()
Returns the runtime object associated with the current Java application.
Properties props = System.getProperties();
Enumeration enum = props.propertyNames();
while(enum.hasMoreElements())
{
String name = (String)enum.nextElement();
System.out.print(name + ":");
System.out.println(props.getProperty(name));
}