I am trying to use the Jython in IBM AIX and HP machines to test our framework which is based on JAVA.
when trying to run our python and jython based testcases using system test framework we are getting below errors in jython.err file
Error: could not find libjava.so
Error: could not find Java 2 Runtime Environment.” (Shared library of java)
Trying to find in online whether jython is supported on these two platforms HP and IBM and i could not able to get proper info.

Jython is not very sensitive to the OS: in many ways, Jython treats Java as the platform, rather than the OS. I believe it runs on AIX and HP Linux but haven't done that myself.
The error message you quote is characteristic of not being able to run Java. Assuming you can run Jython straightforwardly at the command prompt, it may be that down in your test framework the LD_LIBRARY_PATH in effect when you launch Java (or the jython launch script) does not include the location of libjava.so. Or it may be JAVA_HOME that is at fault.
At the moment it looks like your problem occurs before you get as far as Jython. Let us know whether furher investigation still points to Jython.

Hi Jeff,
Thanks for your response.
I have exported the LD_LIBRARY_PATH to the java libjava.so files location i.e. /java/jdk1.6_64/jre/lib/ppc64/
in our script we are calling the start jython function and that time it is creating the jython err file with below mentioned error message.
Thanks,
Naresh
> Subject: [issue1999] Jython 2.5.2 is not working in HP and IBM platforms‏
> To: n.nareshkumar@hotmail.com
> From: report@bugs.jython.org
> Date: Thu, 27 Dec 2012 15:31:02 +0000
>
>
> Jeff Allen added the comment:
>
> Jython is not very sensitive to the OS: in many ways, Jython treats Java as the platform, rather than the OS. I believe it runs on AIX and HP Linux but haven't done that myself.
>
> The error message you quote is characteristic of not being able to run Java. Assuming you can run Jython straightforwardly at the command prompt, it may be that down in your test framework the LD_LIBRARY_PATH in effect when you launch Java (or the jython launch script) does not include the location of libjava.so. Or it may be JAVA_HOME that is at fault.
>
> At the moment it looks like your problem occurs before you get as far as Jython. Let us know whether furher investigation still points to Jython.
>
> ----------
> nosy: +jeff.allen
>
> _______________________________________
> Jython tracker <report@bugs.jython.org>
> <http://bugs.jython.org/issue1999>
> _______________________________________

also i gone through the jython library platform.py file and it contains some list of below platforms only
Mac, windows, redhat, cent os etc.... here there is no HP or IBM platform in that py file.
platform.py file location -- > jython\2.5.2\Lib\Platform.py. here i am using 2.5.2 version
> Subject: [issue1999] Jython 2.5.2 is not working in HP and IBM platforms‏
> To: n.nareshkumar@hotmail.com
> From: report@bugs.jython.org
> Date: Thu, 27 Dec 2012 17:49:57 +0000
>
>
> naresh added the comment:
>
> Hi Jeff,
>
> Thanks for your response.
> I have exported the LD_LIBRARY_PATH to the java libjava.so files location i.e. /java/jdk1.6_64/jre/lib/ppc64/
> in our script we are calling the start jython function and that time it is creating the jython err file with below mentioned error message.
>
> Thanks,
> Naresh
>
> > Subject: [issue1999] Jython 2.5.2 is not working in HP and IBM platforms‏
> > To: n.nareshkumar@hotmail.com
> > From: report@bugs.jython.org
> > Date: Thu, 27 Dec 2012 15:31:02 +0000
> >
> >
> > Jeff Allen added the comment:
> >
> > Jython is not very sensitive to the OS: in many ways, Jython treats Java as the platform, rather than the OS. I believe it runs on AIX and HP Linux but haven't done that myself.
> >
> > The error message you quote is characteristic of not being able to run Java. Assuming you can run Jython straightforwardly at the command prompt, it may be that down in your test framework the LD_LIBRARY_PATH in effect when you launch Java (or the jython launch script) does not include the location of libjava.so. Or it may be JAVA_HOME that is at fault.
> >
> > At the moment it looks like your problem occurs before you get as far as Jython. Let us know whether furher investigation still points to Jython.
> >
> > ----------
> > nosy: +jeff.allen
> >
> > _______________________________________
> > Jython tracker <report@bugs.jython.org>
> > <http://bugs.jython.org/issue1999>
> > _______________________________________
>
> Added file: http://bugs.jython.org/file1317/unnamed
>
> _______________________________________
> Jython tracker <report@bugs.jython.org>
> <http://bugs.jython.org/issue1999>
> _______________________________________

This is definitely a message you get from Java when it can't start, rather than from Jython when it goes wrong. Google it: I found some stuff specific to HP-UX, and maybe it will mean something to you. I would guess jython.err is defined by your test to contain the stderr output of the jython launcher script.
If you have scope to do so, try running a script in the same circumstances that dumps you the critical variables. Maybe the test framework resets them.
Also, the jython launcher allows you to pass arguments to Java. The command:
jython -J-version
results in Java identifying its version and exiting, for example.
As for platform.py, I think only CPython needs most of that. Your platform *is* on there:
>>> import platform
>>> platform.system()
'Java'
:-)