Set Environment for java based tools thru python script

replysonika at gmail.com replysonika at gmail.com
Mon Oct 13 20:07:16 EDT 2008


Hello,

I run a Java app with subprocess from Python script. This python
script is called from another Python Wrapper.


    python = subprocess.Popen(["toolname.sh", "-args", arg1, arg2],
                              stdout=subprocess.PIPE,
stderr=subprocess.PIPE)

I can run it manually from the command line. But fails when I execute
the wrapper Python script

How do I source the java environment from the wrapper. It fails with
the following message.

...16605 Segmentation fault      $JAVA_HOME/bin/java $JAVA_OPTIONS -
classpath $CLASSPATH xxxxxxxxxxxxxxxxxxxxxx "$@"....

Any Hints?

Thanks,
Sonika



More information about the Python-list mailing list