I have a shell script that runs some java program on a remote server. But this shell script is to be executed by a python script which is on my local machine.
Here's the flow : Python script executes the shell script (with paramiko), the shell script then executes a java class.
I am getting an error : 'The java class could not be loaded. java.lang.UnsupportedClassVersionError: (Unsupported major.minor version 50.0)' whenever I run python code.
Limitations: I cannot make any changes to the shell script.
I believe this is java version issue. But I don't know how to explicitly have a python program to run in a specific java environment.
Please suggest how I can get rid of this error.
The java version of unix machine (where shell script executes) : 1.6.0 Java version of my local machine (where python script executes): 1.7.0