现在做项目急需在Java调用C++程序,前提是不能使用JNI调用dll,请问有没有其他实现的方法?感谢各位。

解决方案 »

  1.   

    Runtime.getRuntime().exec(String command)
      

  2.   

    在linux下吗,这一页里面有关于linux下的
    http://blogs.sun.com/lirincy
      

  3.   

    yuzl32(Hello!有酒醉) :
       能不能说详细点儿。是在windows下边,谢谢。
      

  4.   

    Runtime.getRuntime().exec(String command)shishi
      

  5.   

    // 启动C++ 写的应用程序
    Process proc = Runtime.getRuntime().exec("YourApp.exe");
     
    // 与之交互BufferedInputStream bin = new BufferedInputStream(proc.getInputStream());
    BufferedOutputStream bout = new BufferedOutputStream(proc.getOutputStream());// do something..
      

  6.   

    Runtime.getRuntime().exec(String command)
      

  7.   

    在这儿CORBA怎么用啊?请各位大侠提示一下,谢谢!