← Back to VOLUME 12, ISSUE 6, JUNE 2023
This work is licensed under a Creative Commons Attribution 4.0 International License.
Using Py4J for Java-Python Communication
N M Nishant, Dr. G S Mamatha
DOI: 10.17148/IJARCCE.2023.12610
Abstract:
When trying to access Java classes from a Python script, one of the main problems is that the required Java modules may not be present in Python. This means that the Python script cannot natively interact with the Java code. One solution to this problem is to use Py4J. Py4J establishes a bridge between Python and Java, allowing Python to access Java classes and methods. Py4J is a Python module that enables Python programs to communicate with Java applications. One of the main benefits of using Py4J is that it allows access to Java classes and libraries that are not natively available in Python. The Py4J module establishes a bridge between Python and Java, allowing Python code to call Java methods and access Java objects. This can be particularly useful in situations where a Java library provides functionality that is not available in Python or when it is more convenient to use a Java library that is already available. This study mainly focuses on the potential use cases and the advantages it has over the conventional methods.Keywords:
java, python, modules, classes, objects, libraries.π 42 views
How to Cite:
[1] N M Nishant, Dr. G S Mamatha, βUsing Py4J for Java-Python Communication,β International Journal of Advanced Research in Computer and Communication Engineering (IJARCCE), DOI: 10.17148/IJARCCE.2023.12610
