【发布时间】:2012-05-28 16:20:20
【问题描述】:
我一直在使用本教程http://mpjexpress.blogspot.co.nz/2010/05/executing-and-debugging-mpj-express.html,文本:步骤 1、2、3 和 视频: 步骤0:00 到 3:29 之间
参考文件
(来源:iforce.co.nz)
示例代码(从教程复制粘贴)
import mpi.*;
public class HelloEclipseWorld {
vpublic static void main(String[] args) throws Exception {
MPI.Init(args) ;
int rank = MPI.COMM_WORLD.Rank();
int size = MPI.COMM_WORLD.Size();
System.out.println("I am process <"+rank+"> of total <"+
size+"> processes.");
MPI.Finalize();
}
}
我已经包含了来自http://en.sourceforge.jp/projects/sfnet_mpjexpress/downloads/releases/mpj-v0_38.zip/ 的 mpi 和 mpj jar 文件(按照教程步骤)
然后我设置运行路径配置(按照教程步骤)
-jar ${MPJ_HOME}/lib/starter.jar
我也尝试了相同的命令,但在末尾附加了 -np 4(按照教程步骤)
-jar ${MPJ_HOME}/lib/starter.jar -np 4
虚拟机参数
(来源:iforce.co.nz)
MPJ_HOME 变量
(来源:iforce.co.nz)
MPJ 快速输出
MPJ Express (0.38) is started in the multicore configuration
I am process <3> of total <4> processes
I am process <3> of total <4> processes
I am process <3> of total <4> processes
I am process <3> of total <4> processes
完成所有设置后,我尝试通过 Eclipse 执行它,但出现这些错误:(
编译器错误
java.io.FileNotFoundException: null\conf\wrapper.conf (The system cannot find the path specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(Unknown Source)
at java.io.FileInputStream.<init>(Unknown Source)
at runtime.starter.MPJRun.getPortFromWrapper(MPJRun.java:807)
at runtime.starter.MPJRun.<init>(MPJRun.java:68)
at runtime.starter.MPJRun.main(MPJRun.java:964)
Wrapper.conf 位置
(来源:iforce.co.nz)
我对为什么会收到这些错误感到有些困惑。我是否打算做其他事情?教程没有告诉我?为了让它工作?
我做错了什么?如何修复此 JRE 错误?关于mpj express上的文件“conf\wrapper.conf”?我想我遗漏了一些东西,但我已经阅读了很多资源并一遍又一遍地遵循教程......但我仍然收到 wrapper.conf 的 FileNotFoundException。
我找到的一些资源(没有回答 FileNotFoundException 问题)。
如果有人对如何修复 FileNotFoundException 有任何建议,我将不胜感激!
【问题讨论】:
标签: eclipse mpi java windows-7-x64