Siegmar,

do sunpc0 and sunpc1 run the same java version ?

from sunpc1, can you run
mpiexec -np 1 java InitFinalizeMain ?

Cheers,

Gilles

On Friday, May 15, 2015, Siegmar Gross <siegmar.gr...@informatik.hs-fulda.de>
wrote:

> Hi,
>
> I successfully installed openmpi-1.8.5 on my machines (Solaris 10
> Sparc, Solaris 10 x86_64, and openSUSE Linux 12.1 x86_64) with
> gcc-4.9.2 and Sun C 5.13. Unfortunately I get an error for my Java
> programs for both versions if I use two Solaris machines. It works
> fine for two Linux machines. "mpijavac" compiles the program without
> warnings or errors.
>
>
> I get the following error if I use two different Solaris 10 x86_64
> machines.
>
> sunpc0 fd1026 104 mpiexec -np 1 -host sunpc0 java InitFinalizeMain
> Hello!
> sunpc0 fd1026 105 mpiexec -np 1 -host sunpc1 java InitFinalizeMain
> Exception in thread "main" java.lang.UnsupportedClassVersionError:
> InitFinalizeMain : Unsupported major.minor version 52.0
>         at java.lang.ClassLoader.defineClass1(Native Method)
>         at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
>         at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
>         at
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
>         at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
>         at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
> Could not find the main class: InitFinalizeMain.  Program will exit.
> -------------------------------------------------------
> Primary job  terminated normally, but 1 process returned
> a non-zero exit code.. Per user-direction, the job has been aborted.
> -------------------------------------------------------
> --------------------------------------------------------------------------
> mpiexec detected that one or more processes exited with non-zero status,
> thus
> causing
> the job to be terminated. The first process to do so was:
>
>   Process name: [[47580,1],0]
>   Exit code:    1
> --------------------------------------------------------------------------
> sunpc0 fd1026 106
>
>
>
> I get the following error if I use two different Solaris 10 Sparc
> machines.
>
> rs0 fd1026 107 mpiexec -np 1 -host rs0 java InitFinalizeMain
> Hello!
> rs0 fd1026 108 mpiexec -np 1 -host rs1 java InitFinalizeMain
> Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad
> version
> number in .class file
>         at java.lang.ClassLoader.defineClass1(Native Method)
>         at java.lang.ClassLoader.defineClass(ClassLoader.java:626)
>         at
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
>         at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
>         at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
> -------------------------------------------------------
> Primary job  terminated normally, but 1 process returned
> a non-zero exit code.. Per user-direction, the job has been aborted.
> -------------------------------------------------------
> --------------------------------------------------------------------------
> mpiexec detected that one or more processes exited with non-zero status,
> thus
> causing
> the job to be terminated. The first process to do so was:
>
>   Process name: [[28304,1],0]
>   Exit code:    1
> --------------------------------------------------------------------------
> rs0 fd1026 109
>
> ...
>
>
> Contents of InitFinalizeMain.java:
>
> import mpi.*;
>
> public class InitFinalizeMain
> {
>   public static void main (String args[]) throws MPIException
>   {
>     MPI.Init (args);
>     System.out.print ("Hello!\n");
>     MPI.Finalize ();
>   }
> }
>
>
> I would be grateful if somebody can fix the problem. Thank you very
> much for any help in advance.
>
>
> Kind regards
>
> Siegmar
>
> _______________________________________________
> users mailing list
> us...@open-mpi.org <javascript:;>
> Subscription: http://www.open-mpi.org/mailman/listinfo.cgi/users
> Link to this post:
> http://www.open-mpi.org/community/lists/users/2015/05/26870.php
>

Reply via email to