Re:Jython EasyEclipse PyDev (1 viewing) (1) Guests
Favoured: 0
|
|
|
TOPIC: Re:Jython EasyEclipse PyDev
|
Oouc (User)
Fresh Boarder
Posts: 4
|
|
Jython EasyEclipse PyDev 2 Years, 3 Months ago
|
Karma: 0  
|
|
Design to Unit Test; Graeme Rocher on the Grails Plugin Architecture; Using Python within Java from the latest TheServerSide.com gives this code. It doesn't work for me or an Eclipse Evangelist who is a code contributor to Eclipse. Can OM or anyone help me to set this up under OM using the EasyEclipse with PyDev of Oct 2007? I am runing Ubuntu 7.10.
import org.python.core.Py_object_; import org.python.core.PyException; import org.python.util.PythonInterpreter;
public class Interop { public static void main(String []args) throws PyException {
PythonInterpreter interp = new PythonInterpreter(); interp.exec(”firstNames=open(’/tmp/FirstNames.txt’,’r’)”); interp.exec(”lastNames=open(’/tmp/LastNames.txt’,’r’)”); interp.exec(”fNlines=firstNames.readlines()”); interp.exec(”lNlines=lastNames.readlines()”); interp.exec(”fullNames=[x+y for x in fNlines for y in lNlines]”); Py_object_ completeList = interp.get(”fullNames”);
System.out.println("Full names : "+ completeList); } }
|
|
|
|
|
|
|
The administrator has disabled public write access. |
quinn (User)
Fresh Boarder
Posts: 12
|
|
Re:Jython EasyEclipse PyDev 2 Years, 2 Months ago
|
Karma: 0  
|
|
Meister has an Eclipse plugin that can help with building your application. I believe our plugin will also work with EasyEclipse but that depends what version of Eclipse your EasyEclipse is _base_d on.
However, your main question appears to be with the piece of code that you submitted. What is your understanding of the problem you are having here and how would you like us to help?
Quinn
|
|
|
|
|
|
|
The administrator has disabled public write access. |
|
|
|
|
|