0

I have a couple of python modules in an existing Python project that I wish to make use of in my Java app.

I found an article and followed the steps mentioned there. In particular, I need to import the java interface:

package jyinterface.interfaces;

public interface EmployeeType {
    .
    .
}

into the module:

from jyinterface.interfaces import EmployeeType

class Employee(EmployeeType)

:

I have a question - With this method, does this means that I cannot use this module in my existing python project after making the changes, even with a Jython or Python interpreter?

1 Answer 1

1

You can use it with Jython but not with CPython, the standard implementation.

How ever, there is an effort to provide full access to java class libraries when you use CPython.

Sign up to request clarification or add additional context in comments.

1 Comment

I have tried to use my python module as a standalone with Jython, but I'm encountering a importError with the line "from jyinterface.interfaces import EmployeeType"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.