Py4J on Eclipse

52 views
Skip to first unread message

Naz Alan

unread,
Apr 6, 2022, 7:10:30 AM4/6/22
to Py4J Support and Comments
Hello,
i'm currently developing a python program and would like to access data from Java using Py4J. I would like to use Eclipse instead of NetBeans to do this. I had a success running the program using NetBeans but have difficulty using Eclipse. 

According to Py4J documentation, I need to install some plug-ins before I can run Py4J on Eclipse. Since i'm a complete begineer in Java and Eclipse, could anyone please tell me all the steps I have to do in order to install the plugins and run py4j on eclipse.

I'm trying to run a single additional function on Py4j, this is what the code looks like (on NetBeans): 

package py4j;
public class Py4j {

public int addition(int first, int second, int third) {
    return first + second + third;
  }
  
    public static void main(String[] args) {
     Py4j app = new Py4j();

    GatewayServer server = new GatewayServer(app);
    server.start();
    }
}

Any help would be much appreciated! Thank you so much.

Best Regards,
Naz

Jonah Graham

unread,
Apr 6, 2022, 7:34:38 AM4/6/22
to Py4J Support and Comments
Hi Naz


Please look at the Eclipse EASE project. It fully integrates py4j into Eclipse.


I did an in person tutorial on this a few years ago, the reference may still be useful to you. I updated the setup instructions of the tutorial about a year ago so hopefully that will work for you. 


Jonah 


--
You received this message because you are subscribed to the Google Groups "Py4J Support and Comments" group.
To unsubscribe from this group and stop receiving emails from it, send an email to py4j+uns...@py4j.org.
To view this discussion on the web visit https://groups.google.com/a/py4j.org/d/msgid/py4j/add6eadc-aa0f-4ae6-8b4f-f63402fa38aan%40py4j.org.
Reply all
Reply to author
Forward
0 new messages