Re: [Py4j-users] Getting started with Py4j
Status: Beta
Brought to you by:
barthe
From: Bernardo C. <ber...@ho...> - 2015-06-28 17:53:05
|
Hi Barthélémy, i have changed the classpath and it works. Thank you,Regards,Bernardo From: bar...@in... Date: Sun, 28 Jun 2015 09:35:28 +0000 To: py4...@li... Subject: Re: [Py4j-users] Getting started with Py4j Hi Bernardo, I should probably put this in the documentation, but you can try this approach: cd $HOME mkdir -p tutorial/py4j/examples cd tutorial # copy the py4j.jar here # copy Stack.java to py4j/examples # copy StackEntryPoint.java to py4j/examples # you are still in ~/tutorial javac -cp py4j.jar py4j/*/*.java # you should see .class files now in py4j/examples # you are still in ~/tutorial java -cp py4j.jar:. py4j.examples.StackEntryPoint HTH, Barthélémy On Thu, Jun 25, 2015 at 9:34 AM Bernardo Caseiro <ber...@ho...> wrote: Thanks for answer! My source files are on desktop/py4j-0.8.2.1. I execute the command javac in terminal to compile the java file. i didn't set the classpath how should i do it? i can use eclipse if is easier. Regards,Bernardo From: bar...@in... Date: Wed, 24 Jun 2015 23:30:52 +0000 To: py4...@li... Subject: Re: [Py4j-users] Getting started with Py4j Hi Bernardo, Thanks for trying Py4J! we will need more information to help you: how are your source files organized on your disk? what exact command are you running? Did you set the classpath? The tutorial assumes some knowledge of Java and it is usually easier to compile Java programs from an IDE such as Eclipse or IntelliJ. Regards, Barthélémy On Wed, Jun 24, 2015 at 12:54 PM Bernardo Caseiro <ber...@ho...> wrote: Hello, I'm new using Py4j, and i try to do the tuturial from the home page. I'm using the command line on ubuntu but i can't compile the StackEntryPoint to see the message Gateway Server Started. it occurs this error: error: cannot find symbol import py4j.GatewayServer; What should i do? Thank's in advance, Bernardo ------------------------------------------------------------------------------ Monitor 25 network devices or servers for free with OpManager! OpManager is web-based network management software that monitors network devices and physical & virtual servers, alerts via email & sms for fault. Monitor 25 devices for free with no restriction. Download now http://ad.doubleclick.net/ddm/clk/292181274;119417398;o_______________________________________________ Py4j-users mailing list Py4...@li... https://lists.sourceforge.net/lists/listinfo/py4j-users ------------------------------------------------------------------------------ Monitor 25 network devices or servers for free with OpManager! OpManager is web-based network management software that monitors network devices and physical & virtual servers, alerts via email & sms for fault. Monitor 25 devices for free with no restriction. Download now http://ad.doubleclick.net/ddm/clk/292181274;119417398;o _______________________________________________ Py4j-users mailing list Py4...@li... https://lists.sourceforge.net/lists/listinfo/py4j-users ------------------------------------------------------------------------------ Monitor 25 network devices or servers for free with OpManager! OpManager is web-based network management software that monitors network devices and physical & virtual servers, alerts via email & sms for fault. Monitor 25 devices for free with no restriction. Download now http://ad.doubleclick.net/ddm/clk/292181274;119417398;o_______________________________________________ Py4j-users mailing list Py4...@li... https://lists.sourceforge.net/lists/listinfo/py4j-users ------------------------------------------------------------------------------ Monitor 25 network devices or servers for free with OpManager! OpManager is web-based network management software that monitors network devices and physical & virtual servers, alerts via email & sms for fault. Monitor 25 devices for free with no restriction. Download now http://ad.doubleclick.net/ddm/clk/292181274;119417398;o _______________________________________________ Py4j-users mailing list Py4...@li... https://lists.sourceforge.net/lists/listinfo/py4j-users |