己写好的C++类库不好在JAVA中调用,
要先写JAVA,然后用JAVA工具生成 .H文件,
你的C++类必须按照 这个.H文件来写.

解决方案 »

  1.   

    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.