On 03.11.2010 22:43, Michaël Michaud wrote:
> Hi,
> 
> Just send a mail to Sextante project administrator.

read it, well done

> But I'm confused about where the problem is exactly now.
> You wrote using the home_dir is unclean. Why ? Is there a better 
> solution or is it the only way to go at the moment ?
> 
> What about the System.getProperty("user.dir"). I think we have to keep 
> it for windows user (or maybe to replace it by a piece of code using 
> classloader to find the working dir from one of the loaded class ?).

yes, something like that. There is no functionality by now to ask oj where it 
is located. Hence every extension has to deal with it on it's own. reflection 
is the way to go.

> 
> You say there is something different to fix in SextanteToolboxPlugin ? 
> Is it related ? How do you know it if Sextante can't be launched because 
> of the path problem ?

They should check for a Null Pointer before expecting the path, that was 
delivered, to list any files. Which it doesn't if it does not exist ;). That's 
all. But I don't know how they expect to deal with api errors like this. Maybe 
I should send a mail off list. Do they have a bug tracker?

> 
> Sorry for all these questions. I'd like to delay the moment I'll have to 
> install a second OS on my machine :-) .

Use virtual machines ;) .. Vmware or free virtualbox.

regards ede

> 
> Michaël
> 
> Le 03/11/2010 21:43, edgar.sol...@web.de a écrit :
>> welcome,
>>
>> essentially it is a two party problem. Oj binding delivering the wrong path 
>> and sextante code getting killed by a NPE, which could easily be caught or 
>> at least circumvented. This should be fixed in sextante. Could you 
>> communicate this? I don't want to join yet another mailing list ;)
>>
>> ..ede
>>
>>
>>
>> On 03.11.2010 21:28, Michaël Michaud wrote:
>>> Hi ede,
>>>
>>> Thanks a lot,
>>> I have send an email suggesting this was the faulty line one week ago,
>>> but I haven't been able to go further as I know about nothing about how
>>> java works on linux. Thanks for your patience.
>>>
>>> About openjump sextante bingdings, I know that Stefan has committed on
>>> Sextante project
>>> (http://forge.osor.eu/plugins/scmsvn/viewcvs.php/trunk/soft/bindings/openJUMP/?root=sextante).
>>> I'll ask Victor Olaya if he can grant us write access.
>>>
>>> Michaël
>>>
>>>
>>>
>>> Le 03/11/2010 20:19, edgar.sol...@web.de a écrit :
>>>> phew, that was something. As it turns out.
>>>>
>>>> es.unex.sextante.openjump.extensions.SextanteToolboxPlugin
>>>>
>>>> detects the path to the extension dir as follows
>>>>
>>>> String sPath = System.getProperty("user.dir") + "/lib/ext";
>>>>
>>>> 'user.dir' despite it's name holds the current working dir of the java vm. 
>>>> The old oj_linux.sh didn't switch to the oj home dir, but used pathes for 
>>>> all parameters. This gave problems with spaces in the path, so I decided 
>>>> to chdir to oj home, like we do under windows. Funny coincidence, this way 
>>>> the problem was solved in parallel to occurring.
>>>>
>>>> Still we should fix SextanteToolboxPlugin.java. Using the home_dir is 
>>>> unclean, there are better ways to reflect where a specific file is located 
>>>> in the filesystem. I'd patch it if I'd know where Stefan hosts the scm for 
>>>> the sextante binding. If it is on an scm at all. Anybody has a clue? I 
>>>> found the source in the 'ojsextantebinding_oct2010.jar' but I don't know 
>>>> if that is really the cutting edge code.
>>>>
>>>>
>>>> .. regards ede
>>>>
>>>> PS: Stefan, please check also the mail to the mailing list about the logo 
>>>> on sf.net  .
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Achieve Improved Network Security with IP and DNS Reputation.
>>>> Defend against bad network traffic, including botnets, malware,
>>>> phishing sites, and compromised hosts - saving your company time,
>>>> money, and embarrassment.   Learn More!
>>>> http://p.sf.net/sfu/hpdev2dev-nov
>>>> _______________________________________________
>>>> Jump-pilot-devel mailing list
>>>> Jump-pilot-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>>>>
>>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Achieve Improved Network Security with IP and DNS Reputation.
>>> Defend against bad network traffic, including botnets, malware,
>>> phishing sites, and compromised hosts - saving your company time,
>>> money, and embarrassment.   Learn More!
>>> http://p.sf.net/sfu/hpdev2dev-nov
>>> _______________________________________________
>>> Jump-pilot-devel mailing list
>>> Jump-pilot-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>>
>> ------------------------------------------------------------------------------
>> Achieve Improved Network Security with IP and DNS Reputation.
>> Defend against bad network traffic, including botnets, malware,
>> phishing sites, and compromised hosts - saving your company time,
>> money, and embarrassment.   Learn More!
>> http://p.sf.net/sfu/hpdev2dev-nov
>> _______________________________________________
>> Jump-pilot-devel mailing list
>> Jump-pilot-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>>
>>
> 
> 
> ------------------------------------------------------------------------------
> The Next 800 Companies to Lead America's Growth: New Video Whitepaper
> David G. Thomson, author of the best-selling book "Blueprint to a 
> Billion" shares his insights and actions to help propel your 
> business during the next growth cycle. Listen Now!
> http://p.sf.net/sfu/SAP-dev2dev
> _______________________________________________
> Jump-pilot-devel mailing list
> Jump-pilot-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a 
Billion" shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to