Peppe,

there was already a workaround to run sextante binding in eclipse, that you 
seem to have deactivated. Stefan added it in the past, it's output was 

starting Sextante initialization >>
Sextante jar folder: E:\proj_oj-core_svn-4.4/lib/ext/sextante
Sextante not initialized!
Check for problems with Sextante initialization, path for libs and resources: 
E:\proj_oj-core_svn-4.4/lib/ext/sextante
Check if image 'terminal.png' exist
Sextante help path folder: E:\proj_oj-core_svn-4.4/lib/ext/sextante_help
Check also for Sextante help classes path: 
E:\proj_oj-core_svn-4.4/lib/ext/sextante_help
=> Will do 2nd try with OJ-IDE-Dev settings: 
=> looking for algorithms and image in: 
E:\proj_oj-core_svn-4.4/lib/plus/sextante
Success initializing Sextante at 2nd trial!

check if you can find that routine an reenable that and you should be fine.. ede

On 05.12.2016 11:07, Giuseppe Aruta wrote:
> Hi Ede
> 
> (SextanteToolboxPlugin.java:68) the NPE is on the line vconnected to the
> method Sextante.initialize(String folder) and it is responsable to
> inizialize Sextante. It has to point to the folder where Sextante files are
> located, in this case* lib/ext/*<Sextante> for a fresh OJ instalation.
> 
> The NPE, I think, comes when you start OJ from SVN (I am not familiar with
> running from Eclipse, sorry for my... uncertain syntax).
> in SVN tree  all the <extra> plugins, included Sextante files folder, are
> located into  *lib/plus* folder.
> 
> The solution I propone is to rewrite the  method that checks for sextante
> folder (on SextanteToolboxPlugin.class)
>  from:
> 
>  private String getJarsFolder() {
>         String  sPath =
> System.getProperty("user.dir").concat(File.separator)
>                     .concat("lib").concat(File.separator).concat("ext")
>                     .concat(File.separator).concat("sextante");
> 
>         LOGGER.info("Sextante jar folder: " + sPath);
>         return sPath;
> 
>     }
> 
> to:
>  private String getJarsFolder() {
>         String sPath;
>         try {
>             sPath = System.getProperty("user.dir").concat(File.separator)
>                     .concat("lib").concat(File.separator).concat("ext")
>                     .concat(File.separator).concat("sextante");
>         } catch (Exception e) {
>             sPath = System.getProperty("user.dir").concat(File.separator)
>                     .concat("lib").concat(File.separator).concat("plus")
>                     .concat(File.separator).concat("sextante");
>         }
>         LOGGER.info("Sextante jar folder: " + sPath);
>         return sPath;
>     }
> 
> and you can check if there is still a NPE exception. I only wonder if this
> will break some functions on Sextante (right now help and Raster calculator
> seem not to be affected)
> 
> What do you think?
> Peppe
> 
> 2016-12-04 21:39 GMT+01:00 Giuseppe Aruta <giuseppe.ar...@gmail.com>:
> 
>> Hi Ede
>> I will give a look tomorrow
>> Peppe
>>
>> Il 04/Dic/2016 19:48, <edgar.sol...@web.de> ha scritto:
>>
>>> hey Peppe,
>>>
>>> running OJ from eclipse gives me a NPE during startup now
>>>
>>> java.lang.NullPointerException
>>>         at es.unex.sextante.core.AlgorithmsAndResources.addAlgorithmsAn
>>> dPropertiesFromFolder(AlgorithmsAndResources.java:143)
>>>         at es.unex.sextante.core.Sextante.initialize(Sextante.java:67)
>>>         at es.unex.sextante.openjump.extensions.SextanteToolboxPlugin.i
>>> nitialize(SextanteToolboxPlugin.java:68)
>>>         at es.unex.sextante.openjump.extensions.SextanteExtension.confi
>>> gure(SextanteExtension.java:49)
>>>         at com.vividsolutions.jump.workbench.plugin.PlugInManager.loadC
>>> onfigurations(PlugInManager.java:212)
>>>         at com.vividsolutions.jump.workbench.plugin.PlugInManager.load(
>>> PlugInManager.java:192)
>>>         at com.vividsolutions.jump.workbench.JUMPWorkbench.main(JUMPWor
>>> kbench.java:468)
>>>         at com.vividsolutions.jump.workbench.JUMPWorkbench.main(JUMPWor
>>> kbench.java:397)
>>>
>>> as it is your construction site, any idea? ..ede
>>>
>>> On 04.12.2016 19:41, Michaël Michaud wrote:
>>>> Hi Peppe,
>>>>
>>>> You did a great work with Sextante. Getting the whole documentation from
>>>> the menu is amazing.
>>>>
>>>> Hope it will encorage OpenJUMP users to play with it ;-)
>>>>
>>>> Michaël
>>>>
>>>>
>>>> ------------------------------------------------------------
>>> ------------------
>>>> Check out the vibrant tech community on one of the world's most
>>>> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
>>>> _______________________________________________
>>>> Jump-pilot-devel mailing list
>>>> Jump-pilot-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>>>>
>>>
>>> ------------------------------------------------------------
>>> ------------------
>>> Check out the vibrant tech community on one of the world's most
>>> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
>>> _______________________________________________
>>> Jump-pilot-devel mailing list
>>> Jump-pilot-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>>>
>>
> 
> 
> 
> ------------------------------------------------------------------------------
> 
> 
> 
> _______________________________________________
> Jump-pilot-devel mailing list
> Jump-pilot-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
> 

------------------------------------------------------------------------------
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to