你要的是这个吗?    try{
 Runtime.getRuntime().exec("C:/Program Files/Outlook Express/msimn.exe");
//换成你机器上实际的安装路径
      }catch(Exception aa){aa.printStackTrace();}

解决方案 »

  1.   

    java中调用已有程序使用
    Runtime.getRuntime().exec(程序的实际路径);
    就像geyf所说的那样
      

  2.   

    没错,调用已存在的可执行文件用如下语句:
    try{
       Runtime.getRuntime().exec("C:/Program Files/Outlook Express/msimn.exe");
       }
    catch(IOException aa){
       aa.printStackTrace();
       }
    并且exec方法还可以带命令参数
      

  3.   

    我在窗口上加了一个按钮,把代码加了进去。编译没有错误。但不知为什么不能调出OUTLOOK EXPRESS 的窗口!
      

  4.   

    button 3 为OUTLOOK的调用按钮:
    //: JabberClient.java
    // Very simple client that just sends
    // lines to the server and reads lines
    // that the server sends.
    import java.net.*;
    import java.io.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.util.Vector;
    public class Javacommunicate extends JFrame implements ActionListener{
    Cwindow c=new Cwindow();
    silence s=new silence();
    JButton button1=new JButton(new ImageIcon("connected_data_ghost.jpg"));
    JButton button2=new JButton(new ImageIcon("best_road_ghost.jpg"));
    JButton button3=new JButton(new ImageIcon("mail.gif"));
    Javacommunicate(){
     addWindowListener(new WindowAdapter()
           {
           public void windowClosing(WindowEvent e)
           {
           s.save();
           setVisible(false);
           System.exit(0);
           }
           });
           Container con=getContentPane();
           button1.setBackground(Color.white);
           button1.setToolTipText("UDP数据报网络寻呼机");
           button1.addActionListener(this);
           button1.setPreferredSize(new Dimension(0,0));
           button1.setRolloverIcon(new ImageIcon("connected_data.jpg") );
           button1.setPressedIcon(new ImageIcon("connected_data_ghost.jpg"));
          
           button2.setBackground(Color.white);
           button2.setToolTipText("客户端监控");
           button2.addActionListener(this);
           button2.setPreferredSize(new Dimension(0,0));
           button2.setRolloverIcon(new ImageIcon("best_road.jpg") );
           button2.setPressedIcon(new ImageIcon("best_road_ghost.jpg"));
          
           con.setLayout(new GridLayout(1,2));
           con.add(button1);
           con.add(button2);
           con.add(button3);
           setSize(100,100);
           //pack();
           setVisible(true);
           c.call();
          }
           public void actionPerformed(ActionEvent e)
       {
       if (e.getSource()==button1){
       s.setVisible(true);
       c.setVisible(false);
       }
       if (e.getSource()==button2){
       s.setVisible(false);
       c.setVisible(true);
       }
       if (e.getSource()==button3)
       {
       try{
                     Runtime.getRuntime().exec("C:/Program Files/Outlook Express/msimn.exe");               }catch(Exception aa){aa.printStackTrace();}
                  }
       }
               
    public static void main(String[] args) 
        {
         Javacommunicate win=new Javacommunicate();
         win.setResizable(false);
      } 
    } //下面是server2线程 
    //下面是Client线程:
          
      

  5.   

    加上这个:button3.addActionListener(this);而且确认一下你的express的安装路径对不对
      

  6.   

    right
    thank you very much!!!