Hi all,

i'm studing informatics and just doing my diploma. I just want to use 
the plucker paser from within a java application by using Jython. My 
code is the following:

-------------------------------------------------------

import org.python.util.PythonInterpreter;
import org.python.core.*;
import java.io.*;
import java.util.*;

public class PTest{
    public static void main(String []args) throws PyException,IOException
    {
    String 
filename="/home/stefan/Diplomarbeit/Java/Test/plucker/Test2/PyPlucker/Spider.py";
    String argus="-H 
file:///home/stefan/Diplomarbeit/Java/plucker/1015240778720786317146747134883_palm.html
 
-M 1 --bpp=0 -N test -P . -f plucker_test";
   
    String s[]=new String[0];

    FileWriter out=new FileWriter(new File("out.txt"));
    FileWriter err=new FileWriter(new File("err.txt"));

    Properties prop=new Properties();
    FileInputStream fis=new FileInputStream(new File (filename));
    PythonInterpreter interp = new PythonInterpreter();

    interp.initialize(System.getProperties(),prop,s);

    interp.setOut(System.out);
    interp.setErr(System.err);

    interp.execfile(fis,argus);
    fis.close();
    out.close();
    err.close();
    }
}

-------------------------------------------------------

The Code can be compiled and executed without any Problem. But after the 
execution it seems like nothing has happend. I get no error-message or 
something like this. If I use a little Python programm instead of 
Spider.py the whole thing works just fine and after execution it seems 
like there is no problem and the code has been executed. Does anyone 
know, where the Problem might be?

I  would be thankfull about every hint,
Stefan

Reply via email to