📞 +91-7667918914 | ✉️ ijarcce@gmail.com
IJARCCE Logo
International Journal of Advanced Research in Computer and Communication Engineering A monthly Peer-reviewed & Refereed journal
ISSN Online 2278-1021ISSN Print 2319-5940Since 2012
IJARCCE adheres to the suggestive parameters outlined by the University Grants Commission (UGC) for peer-reviewed journals, upholding high standards of research quality, ethical publishing, and academic excellence.
← Back to VOLUME 12, ISSUE 6, JUNE 2023

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.

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