Re: Regarding Jython support in IBM and HP platforms

Discussion in 'Python' started by Kev Dwyer, Dec 27, 2012.

  1. Kev Dwyer

    Kev Dwyer Guest

    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@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
    Kev Dwyer, Dec 27, 2012
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. David McNab
    Replies:
    0
    Views:
    481
    David McNab
    Apr 9, 2004
  2. Divya Prakash
    Replies:
    0
    Views:
    427
    Divya Prakash
    Dec 19, 2006
  3. Robert Wells
    Replies:
    4
    Views:
    635
    Default User
    Jun 24, 2008
  4. Qu0ll
    Replies:
    42
    Views:
    1,190
    Thufir Hawat
    Apr 13, 2009
  5. Naresh Kumar
    Replies:
    0
    Views:
    136
    Naresh Kumar
    Dec 26, 2012
Loading...

Share This Page