Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Python (http://www.velocityreviews.com/forums/f43-python.html)
-   -   Re: Regarding Jython support in IBM and HP platforms (http://www.velocityreviews.com/forums/t955866-re-regarding-jython-support-in-ibm-and-hp-platforms.html)

Kev Dwyer 12-27-2012 06:03 PM

Re: Regarding Jython support in IBM and HP platforms
 
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/cmd...ment-variables).

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

My JAVA_HOME:

kev@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@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



All times are GMT. The time now is 04:11 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.