Re: [JPP-Devel] R: OJ 1.4 stops loading at sextante plugin

2010-10-29 Thread Giuseppe Aruta
Hi Ede,
---
1st test
OJ 29 Oct NB
Ubuntu 10.04
JRE 1.6
No sextante
No modification on OJ_linux.sh

Clicking on OJ_linux.sh OpenJUMP doasn't run.It gives this message
ava version 1.6.0_22
Java(TM) SE Runtime Environment (build 1.6.0_22-b04)
Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03, mixed mode)
Exception in thread main java.lang.NoClassDefFoundError: 
com/vividsolutions/jump/workbench/JUMPWorkbench
Caused by: java.lang.ClassNotFoundException: 
com.vividsolutions.jump.workbench.JUMPWorkbench
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Could not find the main class: com.vividsolutions.jump.workbench.JUMPWorkbench. 
 Program will exit.




2 test
I used an embedded JRE 1.5 (embedded on OJ/bin/jre folder)
No sextante
I modify this line
## uncomment and put the path to your jre here
#JAVA_HOME=/home/ed/jre1.6.0_21
to
## uncomment and put the path to your jre here
JAVA_HOME=../jre1.5 

I had this error

awk: BEGIN{if(  1.5)exit 1}
awk:   ^ syntax error
Your java version '' is insufficient to run openjump.
Please provide an at least version '1.5' java runtime.
/home/amministratore/Scaricati/openjump-core-1.4-SNAPSHOT-bin(4)/bin/oj_linux.sh:
 67: ../jre1.5/bin/java: not found

It seems that these lines do not localize jre machine
OJ_linux.sh of this NB doesn't work
__

I will do other test,
any suggestion?

Peppe



--- Ven 29/10/10, edgar.sol...@web.de edgar.sol...@web.de ha scritto:

 Da: edgar.sol...@web.de edgar.sol...@web.de
 Oggetto: Re: [JPP-Devel] R: OJ 1.4 stops loading at sextante plugin
 A: OpenJump develop and use jump-pilot-devel@lists.sourceforge.net
 Data: Venerdì 29 ottobre 2010, 19:47
 Could you try the nightly build? It
 seems like Vincent had success with it.
 
 ..ede
 
 On 29.10.2010 19:39, Giuseppe Aruta wrote:
 
  I want to check if it is the same with OJ+Sextante
 0.3.
 
 
  I did the test
  I download Sextante 0.3 here
  [1] http://forge.osor.eu/frs/download.php/425/sextante-0.3.zip
  [2] http://www.unex.es/eweb/sextantegis/sextante_openjump_bindings.zip
 
  and tried to run OJ1.4+Sextante 0.3 with Ubuntu 10.04
 
 ___
  a) With Java version 1.6.0_22
  Java(TM) SE Runtime Environment (build 1.6.0_22-b04)
  Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03,
 mixed mode)
 
  This is the message of error:
 
  java.lang.NullPointerException
      at
 es.unex.sextante.core.AlgorithmsAndResources.addAlgorithmsAndPropertiesFromFolder(AlgorithmsAndResources.java:106)
      at
 es.unex.sextante.core.Sextante.initialize(Sextante.java:43)
      at
 es.unex.sextante.openjump.extensions.SextanteToolboxPlugin.initialize(SextanteToolboxPlugin.java:32)
      at
 es.unex.sextante.openjump.extensions.SextanteToolboxExtension.configure(SextanteToolboxExtension.java:10)
      at
 com.vividsolutions.jump.workbench.plugin.PlugInManager.loadConfigurations(PlugInManager.java:92)
      at
 com.vividsolutions.jump.workbench.plugin.PlugInManager.load(PlugInManager.java:86)
      at
 com.vividsolutions.jump.workbench.JUMPWorkbench.main(JUMPWorkbench.java:296)
      at
 com.vividsolutions.jump.workbench.JUMPWorkbench.main(JUMPWorkbench.java:253)
 
  ---
  b) Java(TM) 2 Runtime Environment, Standard Edition
 (build 1.5.0_22-b03)
  Java HotSpot(TM) Client VM (build 1.5.0_22-b03, mixed
 mode, sharing)
  Loading
 es.unex.sextante.openjump.extensions.SextanteCommandLineExtension
  Loading
 es.unex.sextante.openjump.extensions.SextanteHistoryExtension
  Loading
 es.unex.sextante.openjump.extensions.SextanteModelerExtension
  Loading
 es.unex.sextante.openjump.extensions.SextanteResultsExtension
  Loading
 es.unex.sextante.openjump.extensions.SextanteToolboxExtension
  java.lang.NullPointerException
      at
 es.unex.sextante.core.AlgorithmsAndResources.addAlgorithmsAndPropertiesFromFolder(AlgorithmsAndResources.java:106)
      at
 es.unex.sextante.core.Sextante.initialize(Sextante.java:43)
      at
 es.unex.sextante.openjump.extensions.SextanteToolboxPlugin.initialize(SextanteToolboxPlugin.java:32)
      at
 es.unex.sextante.openjump.extensions.SextanteToolboxExtension.configure(SextanteToolboxExtension.java:10)
      at
 com.vividsolutions.jump.workbench.plugin.PlugInManager.loadConfigurations(PlugInManager.java:92)
      at
 com.vividsolutions.jump.workbench.plugin.PlugInManager.load(PlugInManager.java:86)
      at
 com.vividsolutions.jump.workbench.JUMPWorkbench.main(JUMPWorkbench.java:296)
      at
 com.vividsolutions.jump.workbench.JUMPWorkbench.main

[JPP-Devel] R: OJ 1.4 stops loading at sextante plugin

2010-10-28 Thread Giuseppe Aruta
I confirm the same errormessage for Ubuntu 10.04

Peppe

--- Gio 28/10/10, Pedro Doria Meunier pdo...@netmadeira.com ha scritto:

Da: Pedro Doria Meunier pdo...@netmadeira.com
Oggetto: [JPP-Devel] OJ 1.4 stops loading at sextante plugin
A: OpenJump develop and use jump-pilot-devel@lists.sourceforge.net
Data: Giovedì 28 ottobre 2010, 11:54



  


  Hi guys!



After a long time not saying a word... :]



Well I've dowloaded openjump14s.zip and here's what comes up in the
command line:



java.lang.NullPointerException

    at
es.unex.sextante.core.AlgorithmsAndResources.addAlgorithmsAndPropertiesFromFolder(AlgorithmsAndResources.java:140)

    at
es.unex.sextante.core.Sextante.initialize(Sextante.java:64)

    at
es.unex.sextante.openjump.extensions.SextanteToolboxPlugin.initialize(SextanteToolboxPlugin.java:32)

    at
es.unex.sextante.openjump.extensions.SextanteToolboxExtension.configure(SextanteToolboxExtension.java:10)

    at
com.vividsolutions.jump.workbench.plugin.PlugInManager.loadConfigurations(PlugInManager.java:92)

    at
com.vividsolutions.jump.workbench.plugin.PlugInManager.load(PlugInManager.java:86)

    at
com.vividsolutions.jump.workbench.JUMPWorkbench.main(JUMPWorkbench.java:296)

    at
com.vividsolutions.jump.workbench.JUMPWorkbench.main(JUMPWorkbench.java:253)



Using Fedora 13 and Java version 1.6.0_21.



BR,



-- 

  

  
 
Pedro


  Doria Meunier

MADEIRA GPS
  CEO

  GSM: +351 91 58 18 823

  +351 96 17 20 188

  Skype: pdoriam
  

  
AVISO DE
  CONFIDENCIALIDADE

  Esta mensagem de correio electrónico e qualquer dos seus
  ficheiros anexos, caso existam, são confidenciais e destinados
  apenas à(s) pessoa(s) ou entidade(s) acima referida(s),
  podendo conter informação confidencial, privilegiada, a qual
  não deverá ser divulgada, copiada, gravada ou distribuída nos
  termos da lei vigente. Se não é o destinatário da mensagem, ou
  se ela lhe foi enviada por engano, agradecemos que não faça
  uso ou divulgação da mesma. A distribuição ou utilização da
  informação nela contida é VEDADA. Se recebeu esta mensagem por
  engano, por favor avise-nos de imediato, por correio
  electrónico, para o endereço acima e apague este e-mail do seu
  sistema. Obrigado.

  CONFIDENTIALITY NOTICE

  This e-mail transmission and eventual attached files are
  intended only for the use of the use of the individual or
  entity named above and may contain information that is
  confidential, privileged and exempt from disclosure under
  applicable law. If you are not the intended recipient, you are
  hereby notified that any disclosure, copying, distribution or
  use of any of the information contained in this transmission
  is strictly VOIDED. If you have received this transmission in
  error, please immediately notify us by e-mail at the above
  address and delete this e-mail from your system. Thank you. 
 






  

-Segue allegato-

--
Nokia and ATT present the 2010 Calling All Innovators-North America contest
Create new apps  games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
-Segue allegato-

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



  

--
Nokia and ATT present the 2010 Calling All Innovators-North America contest
Create new apps  games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] R: OJ 1.4 stops loading at sextante plugin

2010-10-28 Thread Larry Becker
Oops!  Hope I didn't remove your justification for going to Argentina.  8-)

On Thu, Oct 28, 2010 at 2:40 PM, Larry Becker becker.la...@gmail.comwrote:

 Hi Stefan,

 Use Google translate:


 http://translate.google.com/translate?hl=ensl=estl=enu=http%3A%2F%2Fosgeo-org.1803224.n2.nabble.com%2FProblemas-instalacion-sextante-en-ubuntu-9-10-td4342122.html

 regards,

 Larry


 On Thu, Oct 28, 2010 at 1:54 PM, Stefan Steiniger sst...@geo.uzh.chwrote:

 btw. on MacOSX I have the same problems (win runs fine).

 someone who knows spanish can tell me if the gvSIG guys found a solution?


 http://osgeo-org.1803224.n2.nabble.com/Problemas-instalacion-sextante-en-ubuntu-9-10-td4342122.html

 (maybe a bit more googling)


 --
 Nokia and ATT present the 2010 Calling All Innovators-North America
 contest
 Create new apps  games for the Nokia N8 for consumers in  U.S. and Canada
 $10 million total in prizes - $4M cash, 500 devices, nearly $6M in
 marketing
 Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
 http://p.sf.net/sfu/nokia-dev2dev
 ___
 Jump-pilot-devel mailing list
 Jump-pilot-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel



--
Nokia and ATT present the 2010 Calling All Innovators-North America contest
Create new apps  games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] R: OJ 1.4 stops loading at sextante plugin

2010-10-28 Thread Michaël Michaud
Hi,

I have no linux box nor mac, but I can confirm that it works well on 
windows (only get a message from a plugin which is probably compiled 
with java 6 if I launch OJ with java5)

I had a look in Sextante binding code, and he most critcal part I have 
found is the method getting the directory where jar files are searched

es.unex.sextante.openjump.extensions.SextanteToolboxPlugIn

private String getJarsFolder() {
String sPath = System.getProperty(user.dir) + /lib/ext;
return sPath;
}


In this stackoverflow article, you may find an explanation :
http://stackoverflow.com/questions/1554488/java-system-getpropertyuser-dir-gives-wrong-result-in-ubuntu

Michaël



Le 28/10/2010 20:54, Stefan Steiniger a écrit :
 btw. on MacOSX I have the same problems (win runs fine).

 someone who knows spanish can tell me if the gvSIG guys found a solution?

 http://osgeo-org.1803224.n2.nabble.com/Problemas-instalacion-sextante-en-ubuntu-9-10-td4342122.html

 (maybe a bit more googling)

 --
 Nokia and ATT present the 2010 Calling All Innovators-North America contest
 Create new apps  games for the Nokia N8 for consumers in  U.S. and Canada
 $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
 Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
 http://p.sf.net/sfu/nokia-dev2dev
 ___
 Jump-pilot-devel mailing list
 Jump-pilot-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel




--
Nokia and ATT present the 2010 Calling All Innovators-North America contest
Create new apps  games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] R: OJ 1.4 stops loading at sextante plugin

2010-10-28 Thread edgar . soldin
If you are facing issues with loading library jars for your extensions I wrote 
a quite sophisticated Classloader that loads libraries from subfolders... have 
look at the cts/gps extensions

the it is a bit difficult to debug, but has the advantage that different 
extensions can bring the same library in a different version, as long as you 
don't have to cast object from one classloader to another

regards ede

On 28.10.2010 23:16, Michaël Michaud wrote:
 Hi,

 I have no linux box nor mac, but I can confirm that it works well on
 windows (only get a message from a plugin which is probably compiled
 with java 6 if I launch OJ with java5)

 I had a look in Sextante binding code, and he most critcal part I have
 found is the method getting the directory where jar files are searched

 es.unex.sextante.openjump.extensions.SextanteToolboxPlugIn

 private String getJarsFolder() {
   String sPath = System.getProperty(user.dir) + /lib/ext;
   return sPath;
 }


 In this stackoverflow article, you may find an explanation :
 http://stackoverflow.com/questions/1554488/java-system-getpropertyuser-dir-gives-wrong-result-in-ubuntu

 Michaël



 Le 28/10/2010 20:54, Stefan Steiniger a écrit :
 btw. on MacOSX I have the same problems (win runs fine).

 someone who knows spanish can tell me if the gvSIG guys found a solution?

 http://osgeo-org.1803224.n2.nabble.com/Problemas-instalacion-sextante-en-ubuntu-9-10-td4342122.html

 (maybe a bit more googling)

 --
 Nokia and ATT present the 2010 Calling All Innovators-North America contest
 Create new apps   games for the Nokia N8 for consumers in  U.S. and Canada
 $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
 Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
 http://p.sf.net/sfu/nokia-dev2dev
 ___
 Jump-pilot-devel mailing list
 Jump-pilot-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel




 --
 Nokia and ATT present the 2010 Calling All Innovators-North America contest
 Create new apps  games for the Nokia N8 for consumers in  U.S. and Canada
 $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
 Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
 http://p.sf.net/sfu/nokia-dev2dev
 ___
 Jump-pilot-devel mailing list
 Jump-pilot-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

--
Nokia and ATT present the 2010 Calling All Innovators-North America contest
Create new apps  games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel