Under Windows (see Readme.html):
mpjrun.bat -np 2 -jar
%MPJ_HOME%\lib\test.jar in a command window: Start -> Run
-> type cmd
On our Linux cluster (see Readme.html)
Multicore
configuration:
Multicore
configuration:
| Problem |
Solution |
Comment |
| Exception in thread "main"
mpi.MPIException: Usage: java MPI <myrank> <conf_file>
<device_name> |
You cannot directly run your
java code, but should start the processes via mpjrun, as
explained
here. |
|
| Unrecognized option: -np5 |
put a space between -np and 5 |
|
| Nothing
happens
after
calling
mpjrun |
||
| After
calling
mpjrun I get
events (things
like 11:23:56 EVENT Starting
Jetty), but nothing more (Starting
process
<x>
on
<xx> does not appear) |
restart
daemon |
|
| Error
MPJRuntimeException:
<machines>
file cannot be found |
make
sure
there
is
a
file
named
machines
(no extension like
.txt) in the folder in which you are calling mpjrun |
|
| InvocationTargetException
followed by NullPointerException
on first call to an MPI function |
make
sure
that
you
called
MPI.Init(args);
first |
|
| InvocationTargetException followed by Caused by: java.lang.NullPointerException at <a place in your program> |
there is an error or bug in your
program |
|
| Bad version number in .class file |
you're
code
is
compiled
with
a
newer
version of java. Set compiler compliance
level in Project Properties => Java compiler. Determine the java
version by running java -version. |
|
| NullPointerException at
runtime.daemon.Wrapper.execute(Wrapper.java:158) followed by ClassNotFoundException: <class> with <class> the main class that you called with mpjrun |
the
class file must be in the folder in which you call mpjrun, or in
subfolders if class is in a package |
|
| ClassNotFoundException: <class> | make
sure
the
class
is
in
the
current folder, in a folder of the classpath
or in the lib/ext folder of the current java version |
|
| runtime.MPJRuntimeException: Cannot
connect to the daemon at machine <x> and port <10000> |
-
there
is
no
machine
with
the
given address in the network (check it
with ping <ip-address>) - there is no daemon running on that machine |
|