This forum is mostly for x86 systems. You might try the Destination Z forum for zSeries questions.

An x86 or Power executable will not run directly on zLinux. You would need to either rebuild the application on zLinux, or possibly use a cross-compiler that understood the zLinux machine and instruction set. Obviously, any necessary dependencies, such as packages or particular libraries, need to be available on the zLinux platform. If you run on an architecture with a different length for integers (say 31-bit instead of 32-bit), you may need to validate your code for any dependencies on the length. This can be tricky, particularly if you use bit manipulation. Similar issues apply when porting 32-bit x86 code to a 64-bit x86_64 system

Java code, because it runs in a JVM that interprets the byte codes, should run.