<HTML><HEAD><TITLE>Re: [Gvsig_desarrolladores] Ayuda para crear el CAB</TITLE>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.6000.16981" name=GENERATOR></HEAD>
<BODY>
<DIV id=idOWAReplyText15733>
<DIV><FONT face="Times New Roman" color=#000000 size=3>Hola Eñaut,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3>Según ese log, en tu clase ComboXMLCod0.java has usado el método isEmpty() de la clase String, pero ese método solo está disponible en Java 1.6, así que estás usando Eclipse sobre un JRE/JDK 1.6, lo cual no es una buena opción para compilar gvSIG Mobile 0.3.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3>Deberías hacer esto:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3>- Busca en tu carpeta C</FONT><FONT face="Times New Roman" color=#000000 size=3>:\Archivos de programa\Java a</FONT><FONT face="Times New Roman" color=#000000 size=3> ver si tienes alguna subcarpeta cuyo nombre empiece por "jdk1.5...". Si no la tienes, entra en esta página:</FONT></DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3></FONT> </DIV>
<DIV><A href="http://java.sun.com/products/archive/">http://java.sun.com/products/archive/</A></DIV>
<DIV> </DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3>descárgate el elemento:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3>JDK-JRE 5.0 ----------- 5.0 update 21</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3>e instálalo en tu ordenador.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3>- En Eclipse, ve a la opción "Window - Preferences - Java - Installed JREs" y añade el que acabas de instalar ( C:\Archivos de programa\Java\jdk1.5... ).. Marcalo para que sea el que Eclipse utiliza.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3>- Después ve a la opción "Window - Preferences - Java - Compiler" y donde dice "Compiler compliance level", elige 1.4 y después marca "Use default compliance settings" si no estaba ya marcado. Seguramente te pedirá que refresques el workspace, dile que sí.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3>Ahora te debe aparecer un error al intentar usar el método isEmpty() en tu clase ComboXMLCod0, no? Puedes reemplazar str.isEmptty() por (str.length() == 0) o algo parecido.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3>Para que la aplicaión funcione bien en la PDA, debes usar solamente las clases y métodos que hay en esta documentación:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3><A href="http://java.sun.com/javame/reference/apis/jsr216">http://java.sun.com/javame/reference/apis/jsr216</A></FONT></DIV>
<DIV> </DIV>
<DIV>Por supuesto también puedes usar las clases y métodos de los JAR que tu añadas. <FONT face="Times New Roman" color=#000000 size=3>Como ves, la clase String no tiene un método isEmpty(), por eso te salía ese error.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3>- Otra cosa que debes hacer es eliminar la línea que dice:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3><SosServers>............</SosServers></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3>del archivo \resources\persistence\appsettings.xml</FONT></DIV>
<DIV> </DIV>
<DIV>Hoy solamente puesdo enviarte un mensaje más, a las 2 y media más o menos.</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3>Hasta luego,<BR></FONT></DIV></DIV>
<DIV id=idSignature25675>
<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 agirrearri<BR><B>Enviado el:</B> vie 12/03/2010 9:37<BR><B>Para:</B> gvsig_desarrolladores@listserv.gva.es<BR><B>Asunto:</B> Re: [Gvsig_desarrolladores] Ayuda para crear el CAB<BR></FONT><BR></DIV>
<DIV><BR>
<P><FONT size=2>Hola otra vez, se me a olvidado colgar los log-s.%-|<BR><BR>Como son loso tres (he ejecutado una sola vez) los subo separados.<BR><A href="http://n2.nabble.com/file/n4721078/x.txt">http://n2.nabble.com/file/n4721078/x.txt</A> x.txt<BR><A href="http://n2.nabble.com/file/n4721078/1268381893148.gvsig-mobile.log.console.txt">http://n2.nabble.com/file/n4721078/1268381893148.gvsig-mobile.log.console.txt</A><BR>1268381893148.gvsig-mobile.log.console.txt<BR><A href="http://n2.nabble.com/file/n4721078/1268381893148.gvsig-mobile.log.txt">http://n2.nabble.com/file/n4721078/1268381893148.gvsig-mobile.log.txt</A><BR>1268381893148.gvsig-mobile.log.txt<BR><BR>Graciaaas<BR>--<BR>View this message in context: <A href="http://n2.nabble.com/Ayuda-para-crear-el-CAB-por-favooooooor-no-lo-consigo-tp4707978p4721078.html">http://n2.nabble.com/Ayuda-para-crear-el-CAB-por-favooooooor-no-lo-consigo-tp4707978p4721078.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>