1。如何在一个程序中调用运行一个有安装提示的exe的安装程序
2。在程序中如何判断所用的系统是什么系统,比如windows、linux等。

解决方案 »

  1.   

    System.getProperty("os.name");
    操作系统名字
      

  2.   

    第一次问题不知道你什么意思。调用exe程序很简单,不知道你说的“有安装提示的exe的安装程序"有何特殊的意思。
      

  3.   

    1.Runtime.getRuntime().exec()
    2.System.getProperty("os.name");
    =================
    www.sunsides.com
      

  4.   

    1.
    String path = "C:/xxx.exe";
      try {
      //相当于window的"开始"->"运行"的效果
         Runtime.getRuntime().exec(path); 
      } catch (IOException e) {
         e.printStackTrace();
      }2.
    import java.util.Properties;  
    public class getSystemProperties 

    public static void main(String args[]) 
    {  
    //通过获得系统属性构造属性类 prop 
    Properties prop = new Properties(System.getProperties()); 
    //在标准输出中输出系统属性的内容 
    prop.list(System.out); 

    }
      

  5.   

    1。如何在一个程序中调用运行一个有安装提示的exe的安装程序
    不管有没有安装提示,反正就是exe文件,楼上已经说了。