Java.io.FileNotFoundException: null \ conf \ wrapper.conf (the system cannot find the path specified)

I used this tutorial http://mpjexpress.blogspot.co.nz/2010/05/executing-and-debugging-mpj-express.html , text: steps 1,2,3 and video: steps 0:00 to 3 : 29

Reference Files

build path
(source: iforce.co.nz )

Sample code (copy the paste from the tutorial)

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(); } } 

And I included the jar file mpi and mpj from http://en.sourceforge.jp/projects/sfnet_mpjexpress/downloads/releases/mpj-v0_38.zip/ (according to the instructions)

Then I set up the execution path configuration (according to the tutorial step)

 -jar ${MPJ_HOME}/lib/starter.jar 

I also tried the same command, but with the addition of -np 4 at the end (according to the tutorial step)

 -jar ${MPJ_HOME}/lib/starter.jar -np 4 

VM arguments

mpi run config
(source: iforce.co.nz )

MPJ_HOME variable

mpi var
(source: iforce.co.nz )

MPJ Express Output

  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 

Once I have finished installing everything, I try to execute it through Eclipse, but I get these errors :(

Compiler error

 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 location

wrapper loc
(source: iforce.co.nz )

I'm a little confused about why I get these errors ... should I do something else? what does the textbook not tell me? to make it work?

What am I doing wrong? How can I fix this JRE error? regarding the file "conf \ wrapper.conf" on mpj express? I think I missed something, but I read so many resources and repeated the tutorial again and again ... but I still get a FileNotFoundException for wrapper.conf.

Some resources I found (none answer the FileNotFoundException problem).

If anyone has any tips on how to fix FileNotFoundException, I would really appreciate it, thanks!

+2
source share
3 answers

In the settings menu, go to run / debug β†’ String Substitution. Put your variable there. In this context, you are not dealing with an environment variable. Environment variables will be displayed in a completely platform-specific way in the windows that you will see %MJP_HOME% , and on * nix it will look like $MJP_HOME , in this case you use the Eclipse line replacement mechanism

you can read about it here

+1
source

MPJ error addressing

 Error: Could not find or load main class runtime.starter.MulticoreStarter 

To make it work, go to Run Config -> Path Path and in the "Bootstrap" section click on "Add external JARS" and just include everything from / lib / folder from mpj and it will start mpj, but I don’t know how you can solve the problems of the compiler.

+1
source

Address Compiler

java.io.FileNotFoundException: null \ conf \ wrapper.conf (the system cannot find the path specified) in java.io.FileInputStream.open (native method) in java.io.FileInputStream. (Unknown source) in java.io.FileInputStream. (Unknown source) in runtime.starter.MPJRun.getPortFromWrapper (MPJRun.java:807) in runtime.starter.MPJRun. (MPJRun.java:68) at runtime.starter.MPJRun.main (MPJRun.java:964)

My teacher told me that I miss Enviroment variable "MPJ_HOME", "Run Config" β†’ "Enviroment Variables" β†’ "New MPJ_HOME" (use the variable created for VM arguments)

0
source

Source: https://habr.com/ru/post/1380008/


All Articles