Hello, thank you for your answer but setting the eclipse prolog path is not a solution and made no difference. When I set a wrong path I got an error message that it can't find eclipse prolog and when I set the right path I got the old error message I told you in my last e-mail :( I used the setEclipseDir method. It seems that it is a eclipse prolog bug :( Greetings! Martin Joachim Schimpf (Independent Contractor) schrieb: > Martin Wegner wrote: > >> Hello, >> >> we are three students from the University Potsdam Germany and work on >> a program implemented in Java. We use eclipse prolog and until yet we >> are very happy with eclipse prolog. But now we want to use >> OutOfProcessEclipse and this don't work for us :( >> >> We use the eclipse_rt.tgz package and have the lib directory in our >> program directory. This works fine unless we use >> OutOfProcessEclipse... Our problem do not appear when we install >> eclipse prolog on our computer (Windows), but this is not a solution, >> because our program must run on a linux machine and we don't want >> that it is necessary to install anything to run our program. >> >> This is the way we did before without any problems: >> >> import java.io.*; >> import com.parctechnologies.eclipse.*; >> public class eclipse { >> public static void main(String[] args) { >> EmbeddedEclipse eclipse; >> EclipseEngineOptions options = new EclipseEngineOptions(new >> File("")); >> try { >> eclipse = EmbeddedEclipse.getInstance(options); >> } >> catch(IOException e) { >> System.err.println("Error: " + e.toString()); >> System.err.println("Error: " + e.getMessage()); >> } >> catch(EclipseException e) { >> System.err.println("Error: " + e.toString()); >> System.err.println("Error: " + e.getMessage()); >> } >> } >> } >> >> And this code for OutOfProcessEclipse don't work: >> >> import java.io.*; >> import com.parctechnologies.eclipse.*; >> public class eclipse { >> public static void main(String[] args) { >> OutOfProcessEclipse eclipse; >> EclipseEngineOptions options = new EclipseEngineOptions(new >> File("")); >> try { >> eclipse = new OutOfProcessEclipse(options); >> } >> catch(IOException e) { >> System.err.println("Error: " + e.toString()); >> System.err.println("Error: " + e.getMessage()); >> } >> catch(EclipseException e) { >> System.err.println("Error: " + e.toString()); >> System.err.println("Error: " + e.getMessage()); >> } >> } >> } >> >> I got this error message: >> >> Exception in thread "main" java.lang.NumberFormatException: For input >> string: "No such file or directory in >> pcompile('//C/Eclipse/lib/kernel.pl', 2, sepia_kernel)" >> at java.lang.NumberFormatException.forInputString(Unknown Source) >> at java.lang.Integer.parseInt(Unknown Source) >> at java.lang.Integer.parseInt(Unknown Source) >> at >> com.parctechnologies.eclipse.OutOfProcessEclipse.<init>(OutOfProcessEclipse.java:82) >> >> at eclipse.main(eclipse.java:18) >> >> We are so sad and hope that you have a good solution for us :) >> >> Thank you! >> >> Greetings! >> >> Martin >> > You should specify here the directory where ECLiPSe can find its /lib directory, > i.e. set the eclipseDir property, see > http://www.eclipse-clp.org/doc/javadoc/JavaEclipseInterface/index.html > > If you install Eclipse on the machine, this directory name is taken from > the registry, that's why it works in that case. > > > -- Joachim > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > ECLiPSe-CLP-Users mailing list > ECLiPSe-CLP-Users_at_lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/eclipse-clp-users > >Received on Sat May 24 2008 - 11:50:13 CEST
This archive was generated by hypermail 2.2.0 : Thu Feb 02 2012 - 02:31:58 CET