This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

import .so files

 
Ann
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
Is it possible to import .so files into jython ?
For our project we are using jython on a Linux Redhat configuration.
We want to import a module which imports a .so-file into jython.
Is this possible or is there an other way to call python from java.
We also tried to import the .so file in PYTHON and it worked, but Jython gave an error.
 
Ann
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We already solved the problem ourselves.
Instead of using jython, we just called python using the Runtime.exec() method.
Can anyone explain what exactly is the use of jython if it's just as simple as this to run python-code from java.
We thought the purpose of jython was to make python and java interact with eachother.
 
Peyton McCullough
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are other uses for it besides embedding.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic