<HTML><HEAD><TITLE>Re: [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=idOWAReplyText88350>
<DIV><FONT face="Times New Roman" color=#000000 size=3>
<DIV><FONT face="Times New Roman" color=#000000 size=3>Hola, acabo de pensar que el archivo .lnk probablemente no aceptará parámetros, así que si eliges la opción del método estático, prueba así:</FONT></DIV></FONT></DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3></FONT>&nbsp;</DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3>ProcessUtils.startOrForeground( "XXXX", "<A>\\phoneme\\personal\\bin\\cvm.exe</A>", "-Xmx32m -cp <A>\\programs\\myjar.jar</A> org.package.IniClass param1 param2");</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>O bien con J9. ¿Cuá usas?</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3>La "XXXX" es porque el método buscará una ventana del sistema que contenga "XXXX" y si no la encuentra, ejecutará el programa indicado con los parámetros indicados, así pues ponemos "XXXX" para estar seguros de que no lo encuentra.<BR><BR></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><BR></FONT><FONT face="Courier New" size=2><FONT face="Times New Roman" size=3>Juan Lucas Domínguez Rubio<BR></FONT>---</FONT></DIV></DIV>
<DIV id=idSignature41985>
<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> lun 14/03/2011 16:34<BR><B>Para:</B> gvsig_desarrolladores@listserv.gva.es<BR><B>Asunto:</B> Re: [Gvsig_desarrolladores] Ejecutar jar desde form de gvSIG<BR></FONT><BR></DIV>
<DIV>
<P><FONT size=2>Muchísimas gracias Juan!<BR><BR>Voy a probar y ahí les cuento cómo me va!<BR><BR>Saludos!<BR><BR>--<BR>View this message in context: <A href="http://osgeo-org.1803224.n2.nabble.com/Ejecutar-jar-desde-form-de-gvSIG-tp6162028p6169453.html">http://osgeo-org.1803224.n2.nabble.com/Ejecutar-jar-desde-form-de-gvSIG-tp6162028p6169453.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>