Regarding Jython support in IBM and HP platforms

Kev Dwyer kevin.p.dwyer at gmail.com
Thu Dec 27 19:03:28 CET 2012


Naresh Kumar wrote:

> 
> 
> 
> Hello,
> 
> 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. so could you
> please provide me the info like what are all platforms it
> supports(jython)? If not when do you guys are supporting on HP and IBM
> because java is pretty much support on all platforms and machine
> independent, so jython is similar like java.
> 
> Thanks in advance,
> Naresh


Hello,

Jython is an implementation of the Python language in Java, so it will run 
on any platform that can run a JVM.

>From the information that you have provided, it seems that Jython cannot 
find libjava.so.

The Jython docs suggest that Jython's behaviour can be influenced by the 
value of the environmental variable JAVA_HOME 
(http://www.jython.org/docs/using/cmdline.html#environment-variables).

Have you checked that $JAVA_HOME is set to a suitable value for the user 
that is running Jython?

My JAVA_HOME:

kev at pluto ~/Download  echo $JAVA_HOME                                                                                                     
/usr/lib64/jvm/java  

If I download the jython 2.5.3 jar and run a simple test script I get:

kev at pluto ~/Download  java -jar jython.jar jtest.py                                                                                       
*sys-package-mgr*: processing new jar, '/home/kev/Download/jython.jar'                                                                    
*sys-package-mgr*: processing new jar, '/usr/lib64/jvm/java-1.6.0-
openjdk-1.6.0/jre/lib/resources.jar'                                    
*sys-package-mgr*: processing new jar, '/usr/lib64/jvm/java-1.6.0-
openjdk-1.6.0/jre/lib/rt.jar'                                           
*sys-package-mgr*: processing new jar, '/usr/lib64/jvm/java-1.6.0-
openjdk-1.6.0/jre/lib/jsse.jar'                                         
*sys-package-mgr*: processing new jar, '/usr/lib64/jvm/java-1.6.0-
openjdk-1.6.0/jre/lib/jce.jar'                                          
*sys-package-mgr*: processing new jar, '/usr/lib64/jvm/java-1.6.0-
openjdk-1.6.0/jre/lib/charsets.jar'                                     
*sys-package-mgr*: processing new jar, '/usr/lib64/jvm/java-1.6.0-
openjdk-1.6.0/jre/lib/rhino.jar'                                        
*sys-package-mgr*: processing new jar, '/usr/lib64/jvm/java-1.6.0-
openjdk-1.6.0/jre/lib/ext/pulse-java.jar'                               
*sys-package-mgr*: processing new jar, '/usr/lib64/jvm/java-1.6.0-
openjdk-1.6.0/jre/lib/ext/gnome-java-bridge.jar'                        
*sys-package-mgr*: processing new jar, '/usr/lib64/jvm/java-1.6.0-
openjdk-1.6.0/jre/lib/ext/sunpkcs11.jar'                                
*sys-package-mgr*: processing new jar, '/usr/lib64/jvm/java-1.6.0-
openjdk-1.6.0/jre/lib/ext/localedata.jar'                               
*sys-package-mgr*: processing new jar, '/usr/lib64/jvm/java-1.6.0-
openjdk-1.6.0/jre/lib/ext/dnsns.jar'                                    
*sys-package-mgr*: processing new jar, '/usr/lib64/jvm/java-1.6.0-
openjdk-1.6.0/jre/lib/ext/swt.jar'                                      
*sys-package-mgr*: processing new jar, '/usr/lib64/jvm/java-1.6.0-
openjdk-1.6.0/jre/lib/ext/sunjce_provider.jar'                          
Hello Jython world!  

So I think you need to check your environment.

Cheers,

Kevin




More information about the Python-list mailing list