Re: [eclipse-clp-users] Problem: OutOfProcessEclipse and Java

From: Martin Wegner <martinator.de_at_...114...>
Date: Sat, 31 May 2008 15:09:35 +0200
OK with version 129 the bug with /lib/lib is fixed and the symbolic link 
workaround is no more necessary, cool :)

Greetings!

Martin

Martin Wegner schrieb:
> Hello,
>
> now it works here is my workaround:
>
> Go into the lib directory from eclipse prolog and create a symbolic link:
>
> ln -s ~/lib ~/lib/lib
>
> This is necessary because eclipse prolog wants a lib/lib/x86_64 
> directory, don't now why...
>
> compile with:
>
> javac -sourcepath ./src -classpath ./lib/eclipse.jar -d ./bin 
> ./src/eclipse.java
>
> start with:
>
> tcsh:
> setenv LD_LIBRARY_PATH "~/lib/x86_64_linux"
>
> bash/sh:
> export LD_LIBRARY_PATH="~/GGP/lib/x86_64_linux"
>
> java -classpath ./bin:./lib/eclipse.jar eclipse
>
> Greetings!
>
> Martin
>
> Joachim Schimpf (Independent Contractor) schrieb:
>> Martin Wegner wrote:
>>  
>>> Hello,
>>>
>>> sorry to say that, but when I run the code I posted before under 
>>> linux I got this error message :(
>>>
>>> "Exception in thread "main" java.lang.NumberFormatException: null
>>>         at java.lang.Integer.parseInt(Integer.java:415)
>>>         at java.lang.Integer.parseInt(Integer.java:497)
>>>         at 
>>> com.parctechnologies.eclipse.OutOfProcessEclipse.<init>(OutOfProcessEclipse.java:82) 
>>>
>>>         at eclipse.main(eclipse.java:18)"
>>>
>>> Greetings!
>>>
>>> Martin
>>>
>>> Problem example code:
>>>
>>> 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());
>>>        }
>>>    }
>>> }
>>>     
>>
>>
>> When using OutOfProcessEclipse, you need to:
>>
>> - either invoke RUNME to create a bin/x86_64_linux/eclipse executable
>>
>> - or include lib/x86_64_linux in LD_LIBRARY_PATH when running your code:
>>
>>      % javac -classpath lib/eclipse.jar eclipse.java
>>      % LD_LIBRARY_PATH=lib/x86_64_linux:$LD_LIBRARY_PATH java
>>     -classpath lib/eclipse.jar:. eclipse
>>
>>
>> -- 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 31 2008 - 06:09:44 CEST

This archive was generated by hypermail 2.3.0 : Wed Sep 25 2024 - 15:13:20 CEST