<HTML><HEAD><TITLE>[Gvsig_desarrolladores] Ejecutar jar desde form de gvSIG</TITLE>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.6000.17095" name=GENERATOR></HEAD>
<BODY>
<DIV id=idOWAReplyText57434>
<DIV><FONT face="Times New Roman" color=#000000 size=3>Hola,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3>la manera habitual de iniciar otra aplicación desde Java es esto:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3><A href="http://www.rgagnon.com/javadetails/java-0014.html">http://www.rgagnon.com/javadetails/java-0014.html</A></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3>Lo deberías poner en la clase GenericForm o CustomForm, por ejemplo.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3>También hay un método que te puede servir en la clase es.prodevelop.gvsig.mobile.common.ProcessUtils:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3>startOrForeground(<string>, <exe_file>, <parameters>);</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3>Si creas un archivo inicio.lnk para lanzar tu aplicación, creo que esto puede funcionar:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3>startOrForeground("XXX", "<A>\\Program</A> Files\\Aplicacion\\inicio.lnk", "Mis parametros");</FONT></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3></FONT> </DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3>Saludos,</FONT></DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3></FONT> </DIV></DIV>
<DIV id=idSignature2193>
<DIV><FONT face="Courier New" size=2><FONT face="Times New Roman" size=3>Juan Lucas Domínguez Rubio<BR></FONT>---</FONT></DIV>
<DIV><FONT face="Courier New" size=2><FONT face="Courier New" size=2><FONT face="Courier New" size=2>Prodevelop SL, Valencia (España)</FONT></DIV>
<DIV>
<DIV><FONT face="Courier New" size=2>Tlf.: 96.351.06.12 -- Fax: 96.351.09.68<BR></FONT><A href="http://www.prodevelop.es/"><FONT face="Courier New" size=2>http://www.prodevelop.es</FONT></A><BR><FONT face="Courier New" size=2>---</FONT></DIV></FONT></DIV></FONT></DIV>
<DIV><BR>
<HR>
<FONT face=Tahoma size=2><B>De:</B> gvsig_desarrolladores-bounces@listserv.gva.es en nombre de mrojas<BR><B>Enviado el:</B> vie 11/03/2011 17:30<BR><B>Para:</B> gvsig_desarrolladores@listserv.gva.es<BR><B>Asunto:</B> [Gvsig_desarrolladores] Ejecutar jar desde form de gvSIG<BR></FONT><BR></DIV>
<DIV>
<P><FONT size=2>Hola a todos!<BR><BR>Me gustaría saber si existe una forma de ejecutar o abrir una aplicación de<BR>java o un .jar con ciertos parámetros al hacer clic sobre un punto<BR>específico en mi mapa. Es decir, que el formulario de información que se<BR>muestra al hacer clic sobre un punto de mi mapa tenga un botón que abra y<BR>ejecute mi .jar con un campo del formulario como parámetro.<BR><BR>Instalé gvSIG 0.3.0 para PhoneME y PhoneME Advanced - Personal Profile para<BR>Windows Mobile 6.5.<BR><BR>Muchísimas gracias de antemano! :)<BR><BR>--<BR>View this message in context: <A href="http://osgeo-org.1803224.n2.nabble.com/Ejecutar-jar-desde-form-de-gvSIG-tp6162028p6162028.html">http://osgeo-org.1803224.n2.nabble.com/Ejecutar-jar-desde-form-de-gvSIG-tp6162028p6162028.html</A><BR>Sent from the gvSIG desarrolladores mailing list archive at Nabble.com.<BR>_______________________________________________<BR>gvSIG_desarrolladores mailing list<BR>gvSIG_desarrolladores@listserv.gva.es<BR><A href="http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_desarrolladores">http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_desarrolladores</A><BR></FONT></P></DIV></BODY></HTML>