This hit on Google looks helpful:

  http://stackoverflow.com/questions/3652554/calling-java-from-python

I gave a talk at Boeing back in 2007 about Sage, and they use Java a
lot (or so someone told me), so I demoed one of the Python libraries
for linking the JVM (Java) with Python there.   My experience was that
it was very flaky at the time...

Anyway, tell the person asking the question to instead ask the
question in the context of Python, not Sage.

For the record, I think Sage itself makes zero use of Java, except
for the JMol 3d graphics thing, which involves no linking.

On Tue, Mar 17, 2015 at 6:50 PM, kcrisman <kcris...@gmail.com> wrote:
> Short version: is there a way to get Sage to interface with a *Java* program
> not via pexpect, but a library interface?  (Perhaps Jython?)  See
> http://trac.sagemath.org/ticket/17902 for some background, in particular
> http://trac.sagemath.org/ticket/17902#comment:7
>
> "I have been reading over Chapter 6 of W. Stein's "Sage for power users" and
> possibly the best strategy for calling CGSUite might be option (4): Create a
> C/C++ library interface and link the other program into Python itself, using
> Cython.  But of course in the case of CGSuite, this would be "Create a Java
> library interface ..."  So I want to ask here what capabilities of this kind
> (calling Java) Sage has?  Can Sage use Jython, for example?"
>
> --
> You received this message because you are subscribed to the Google Groups
> "sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sage-devel+unsubscr...@googlegroups.com.
> To post to this group, send email to sage-devel@googlegroups.com.
> Visit this group at http://groups.google.com/group/sage-devel.
> For more options, visit https://groups.google.com/d/optout.



-- 
William (http://wstein.org)

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to