<HTML><HEAD><TITLE></TITLE>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.6000.17023" name=GENERATOR></HEAD>
<BODY text=#000000 bgcolor=#ffffff>
<DIV id=idOWAReplyText46199>
<DIV><FONT face="Times New Roman" color=#000000 size=3>Hello, Marcel:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>1) You can set the logger appendeers (output) using external .properties files (as you have done) or from the Java code. These lines in Launcher.java are the ones that set the appenders:</DIV>
<DIV>&nbsp;</DIV>
<DIV>PatternLayout l = new PatternLayout("%5p [%t] - %m%n");<BR>FileAppender fa = new FileAppender(l, outlogpath, false);<BR>Logger.getRootLogger().setLevel(Level.ALL);<BR>Logger.getRootLogger().addAppender(fa);<BR></DIV>
<DIV>Perhaps there's some problem there? Anyway, The .properties file is a better way, I think. Change the Level.ALL to another value (Level.DEBUG, Level.ERROR) to get less logger lines (therefore the app will be a bit faster)</DIV>
<DIV>&nbsp;</DIV>
<DIV>2) The message :</DIV>
<DIV>&nbsp;</DIV>
<DIV>"Cannot find translation for Unknown"</DIV>
<DIV>&nbsp;</DIV>
<DIV>is unimportant. It&nbsp;happens because we forgot to add that word to the appGvsigMobile_*.properties files. You can add a line like this:</DIV>
<DIV>&nbsp;</DIV>
<DIV>
<DIV>Unknown=Unknown&nbsp;&nbsp; &nbsp;(file resources\languages\appGvsigMobile_en.properties)
<DIV>Unknown=Inconnu&nbsp;&nbsp; &nbsp;(file resources\languages\appGvsigMobile_fr.properties)</DIV>
<DIV>(etc.)</DIV></DIV></DIV>
<DIV>&nbsp;</DIV>
<DIV>The other messages are OK. This will be the log file for that execution:</DIV>
<DIV>C:\Users\F4c0r\workspace\gvSIG\log\1271019132919.gvsig-mobile.log.txt</DIV>
<DIV>&nbsp;</DIV>
<DIV>You can read it and maybe will help you find the problems if something does not work.</DIV>
<DIV>&nbsp;</DIV>
<DIV>3) We don't care much&nbsp;about warnings. Most of them are caused by unused variables, but you have discovered two warnings that should be corrcted:</DIV>
<DIV>&nbsp;</DIV>
<DIV>- You should write "this.ct = ct;" instead of "ct = ct;" in FLyrDefault.java</DIV>
<DIV>- And change the method writeElement(GPEElement element) in ExportGpeWriter.java. The right code is:</DIV>
<DIV>&nbsp;</DIV>
<DIV>===============</DIV>
<DIV>&nbsp;private void writeElement(GPEElement element) {<BR>&nbsp;&nbsp;getWriterHandler().startElement(element.getNameOrig(),<BR>&nbsp;&nbsp;&nbsp;&nbsp;element.getValue(), null);<BR>&nbsp;&nbsp;if (element.isComplex()) {<BR>&nbsp;&nbsp;&nbsp;for (int j = 0; j &lt; element.getNumElements(); j++) {<BR>&nbsp;&nbsp;&nbsp;&nbsp;GPEElement subelem = element.getSubElement(j);<BR>&nbsp;&nbsp;&nbsp;&nbsp;writeElement(subelem);<BR>&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;}<BR>&nbsp;&nbsp;getWriterHandler().endElement();<BR>&nbsp;}</DIV>
<DIV>
<DIV>
<DIV>===============</DIV>
<DIV>&nbsp;</DIV>
<DIV>But that method is rarely used (only when you export&nbsp;some special GML files)</DIV>
<DIV>&nbsp;</DIV>
<DIV>So everything else is working? Have you opened any ECW files? What happens with the GPS?</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>Regards,</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face="Courier New" size=2><FONT face="Times New Roman" size=3>Juan Lucas Domínguez Rubio<BR></FONT>---</FONT></DIV></DIV></DIV></DIV>
<DIV id=idSignature67825>
<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> Schoolmeesters [mailto:schoolmeesters@gmx.de]<BR><B>Enviado el:</B> dom 11/04/2010 23:34<BR><B>Para:</B> Juan Lucas Dominguez Rubio<BR><B>Asunto:</B> gvSig mobile<BR></FONT><BR></DIV>
<DIV>Hello again,<BR><BR>and thank you for the answers. Libraries found (I haven't used Win_X86, but WM5_ARM) and build.number changed, too.<BR><BR><BR>But, I got some new questions after that...<BR><BR>1) I still got log4j warn messages:<BR>
<BLOCKQUOTE>log4j:WARN No appenders could be found for logger (Messages).<BR>log4j:WARN Please initialize the log4j system properly.<BR><BR></BLOCKQUOTE>To fix it, I've created a "log4j.properties" file as it is described here: <A class=moz-txt-link-freetext href="http://snippets.dzone.com/posts/show/3248">http://snippets.dzone.com/posts/show/3248</A><BR><BR>Why do I have to do so or is there any other possibility to fix that initialization problem?<BR><BR><BR>2) Now, the <B>"Console"</B> is telling me following lines:<BR>
<BLOCKQUOTE>Forcing initialization of Utils...<BR>Forcing load of ECW DLL...<BR>Forcing load of SHP DLL...<BR>App params:<BR>Param: 0 : m=J9<BR>Param: 1 : s=480x600<BR>Param: 2 : l=de<BR>Param: 3 : p=C:\Users\F4c0r\workspace\gvSIG<BR>[2010-04-11 22:52:12,914] WARN&nbsp;&nbsp;&nbsp;&nbsp; 0[main] - org.gvsig.i18n.Messages.getText(Messages.java:130) - org.gvsig.i18n.Messages -- Cannot find translation for Unknown<BR>[2010-04-11 22:52:12,918] WARN&nbsp;&nbsp;&nbsp;&nbsp; 4[main] - org.gvsig.i18n.Messages.getText(Messages.java:130) - org.gvsig.i18n.Messages -- Cannot find translation for Unknown<BR>VM specified: J9<BR>Log file: C:\Users\F4c0r\workspace\gvSIG\log\1271019132919.gvsig-mobile.log.txt<BR>[2010-04-11 22:52:12,920] WARN&nbsp;&nbsp;&nbsp;&nbsp; 6[main] - es.prodevelop.gvsig.mobile.app.GvsigMobileApp.execute(GvsigMobileApp.java:172) - OS NAME: Windows Vista<BR>[2010-04-11 22:52:12,920] WARN&nbsp;&nbsp;&nbsp;&nbsp; 6[main] - es.prodevelop.gvsig.mobile.app.GvsigMobileApp.execute(GvsigMobileApp.java:173) - VM: J9<BR>[2010-04-11 22:52:12,924] WARN&nbsp;&nbsp;&nbsp; 10[main] - es.prodevelop.gvsig.mobile.app.GvsigMobileApp.execute(GvsigMobileApp.java:206) - Add pan tool: true<BR></BLOCKQUOTE>Does everybody have those warn messages? <BR><BR><BR>3) Now under "<B>Problems</B>" there are still <U>100 warnings</U>, no errors.<BR><BR>e.g. <BR>
<BLOCKQUOTE><U>Description&nbsp;&nbsp;&nbsp; Resource&nbsp;&nbsp;&nbsp; Path&nbsp;&nbsp;&nbsp; Location&nbsp;&nbsp;&nbsp; Type</U><BR><I><B>20 times</B></I><BR><I>Dead code</I>&nbsp;&nbsp;&nbsp; AreaOp.java&nbsp;&nbsp;&nbsp; /boot/src/sun/awt/geom&nbsp;&nbsp;&nbsp; line 160&nbsp;&nbsp;&nbsp; Java Problem<BR>...<BR><I>Null pointer access</I>: The variable elements can only be null at this location&nbsp;&nbsp;&nbsp; ExportGpeWriter.java&nbsp;&nbsp;&nbsp; /libFmapGpeMobile/src/es/prodevelop/gvsig/mobile/gpe/writer&nbsp;&nbsp;&nbsp; line 376&nbsp;&nbsp;&nbsp; Java Problem<BR>...<BR><I>The assignment to variable ct has no effect&nbsp;</I>&nbsp;&nbsp; FLyrDefault.java&nbsp;&nbsp;&nbsp; /libFMap/src/es/prodevelop/gvsig/mobile/fmap/layer&nbsp;&nbsp;&nbsp; line 503&nbsp;&nbsp;&nbsp; Java Problem<BR>...<BR><I>The constructor Date(String) is deprecated</I>&nbsp;&nbsp;&nbsp; GenericForm.java&nbsp;&nbsp;&nbsp; /customForms/src/org/gvsig/forms/view&nbsp;&nbsp;&nbsp; line 296&nbsp;&nbsp;&nbsp; Java Problem<BR>...<BR><I><B>about 75 times</B></I><BR>The constructor DistanceAreaListener() is never used locally&nbsp;&nbsp;&nbsp; DistanceAreaListener.java&nbsp;&nbsp;&nbsp; /appGvsigMobile/src/es/prodevelop/gvsig/mobile/gui/tool/listener&nbsp;&nbsp;&nbsp; line 114&nbsp;&nbsp;&nbsp; Java Problem<BR><BR></BLOCKQUOTE>You know those warnings? Can I fix them or do I have to cope with them. The program will work however?<BR><BR><BR>I just would like to get the mobile version started without any errors or warnings ;-) <BR><BR><BR>Regards,<BR><BR>Marcel Schoolmeesters<BR><BR><BR><BR><BR>Juan Lucas Dominguez Rubio schrieb: 
<BLOCKQUOTE>
<DIV id=idOWAReplyText87975>
<DIV><FONT face="Times New Roman" color=#000000 size=3>Hello:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>- The compliance level must be 1.4 because the Java Virtual Machines&nbsp;available for PDA and smartphones only accept JAR files that were compiled with level 1.4 or less. If you add a JAR file compiled with level &gt; 1.4 to the folder resources/jars, it will not work on a PDA or smartphone. In that case, you should find the source code for that JAR file and inlcude it in your workspace and compile it after removing or rerplacing the Java code that is not 1.4-compatible.</DIV>
<DIV>&nbsp;</DIV>
<DIV>- The problem with CrossingsForPath happens when you use&nbsp;JRE/JDK 1.6 in Eclipse (even if you use level 1.4). This is our fault, because that method is public but is not part of the API, so it should not be used in the code. You have two options: use the method called pointCrossingsForPath instead of crossingsForPath (which does the same) or install JRE/JDK 1.5 in your computer and let Eclipse use it.</DIV>
<DIV>&nbsp;</DIV>
<DIV>- You still have a problem with DLLs. Make sure that the folder resources\lib\Win_X86 exists in your workspace (I can't see it in your screenshot) and contains several DLL files and that the VM arguments (in 'Run configurations') look like this:</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -Xmx256M -Djava.library.path="${workspace_loc}/resources/lib/Win_X86</DIV>
<DIV>&nbsp;</DIV>
<DIV>To see if DLLs were loaded correctly, try to load a ECW file. You have a small one here:</DIV>
<DIV>&nbsp;</DIV>
<DIV><A href="http://www.prodevelop.es/files/fm/public/downloads/images/oxford_1675_ecw.zip">http://www.prodevelop.es/files/fm/public/downloads/images/oxford_1675_ecw.zip</A></DIV>
<DIV>&nbsp;</DIV>
<DIV>(unzip it first)</DIV>
<DIV>&nbsp;</DIV>
<DIV>- We forgot to update the file appGvsigMobile\build.number, that's where the application reads the current version and build number. SImply change it to "<SPAN>version.id=0.3" or "<SPAN>version.id=- Marcel's&nbsp;version", etc.</SPAN></SPAN></DIV>
<DIV><SPAN><SPAN></SPAN></SPAN>&nbsp;</DIV>
<DIV><SPAN><SPAN>Regards,</SPAN></SPAN></DIV>
<DIV>&nbsp;</DIV>
<DIV><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=idSignature24465>
<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></FONT></FONT></DIV>
<DIV>
<DIV><FONT face="Courier New" size=2><FONT face="Courier New" size=2><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></FONT></FONT></DIV></DIV></DIV>
<DIV><BR></DIV>
<DIV>
<HR>
</DIV>
<DIV><FONT face=Tahoma size=2><B>De:</B> Marcel Schoolmeesters [<A class=moz-txt-link-freetext href="mailto:schoolmeesters@gmx.de">mailto:schoolmeesters@gmx.de</A>]<BR><B>Enviado el:</B> dom 21/03/2010 13:02<BR><B>Para:</B> Juan Lucas Dominguez Rubio<BR><B>Asunto:</B> Re: gvSig src<BR></FONT></DIV>
<DIV>Hello,<BR><BR>it was my fault. Don't know why I did not see that I did not checkout the "resources" folder...although the error said "resources missing" - thank you for the screenshots.<BR><BR>The build.xml works now...<BR><BR>Btw, why the compliance level must be set to 1.4?<BR><BR>If the run of the app work, too, I'll let you know...will test it later.<BR><BR>---<BR></DIV>
<DIV>Project can be started now...<BR><BR>Just one error left in libFMap:<BR><BR>
<UL>
<LI>The method CrossingsForPath(PathIterator, double, double) is undefined for the type Curve </LI></UL><BR>you don't get that error?<BR><BR>However, I can proceed....<BR><BR>The console tells me after running the app:<BR>
<BLOCKQUOTE><I>Forcing initialization of Utils...<BR>Forcing load of ECW DLL...<BR>Forcing load of SHP DLL...<BR>Unable to load Ermapper libraries!<BR>Unable to load SHP libraries!<BR>App params:<BR>Param: 0 : m=J9<BR>Param: 1 : s=480x600<BR>Param: 2 : l=en<BR>Param: 3 : p=C:\Users\f4c0r\workspace\gvSIG<BR>log4j:WARN No appenders could be found for logger (Messages).<BR>log4j:WARN Please initialize the log4j system properly.<BR>VM specified: J9<BR>Log file: C:\Users\f4c0r\workspace\gvSIG\log\1269172005415.gvsig-mobile.log.txt</I><BR></BLOCKQUOTE>The title of the app still is gvSIG Mobile 0.2.0....<BR><BR><BR>Well, however, then I can start trying to understand the code better and try to adjust what I have to adjust :)<BR><BR>thank you again<BR><BR>Marcel<BR><BR><BR>Marcel Schoolmeesters schrieb: 
<BLOCKQUOTE>Hello,<BR><BR>it was my fault. Don't know why I did not see that I did not checkout the "resources" folder...although the error said "resources missing" - thank you for the screenshots.<BR><BR>The build.xml works now...<BR><BR>Btw, why the compliance level must be set to 1.4?<BR><BR>If the run of the app work, too, I'll let you know...will test it later.<BR><BR><BR>Regards,<BR><BR>Marcel Schoolmeesters<BR><BR><BR>Juan Lucas Dominguez Rubio schrieb: 
<BLOCKQUOTE>
<DIV id=idOWAReplyText79220>
<DIV><FONT face="Times New Roman" color=#000000 size=3>Hello,</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>I have just build the workspace again from scratch, and it worked:</DIV>
<DIV>&nbsp;</DIV>
<DIV>SVN URL:</DIV>
<DIV><A href="http://subversion.gvsig.org/gvSIG-mobile">http://subversion.gvsig.org/gvSIG-mobile</A></DIV>
<DIV>&nbsp;</DIV>
<DIV>Folder:</DIV>
<DIV>/pilots/branches/pilot2</DIV>
<DIV>&nbsp;</DIV>
<DIV>See attached screenshot (&nbsp;gvsig_mobile_0_3_workspace.jpg ).</DIV>
<DIV>&nbsp;</DIV>
<DIV>Your workspace does not look like that?</DIV>
<DIV>Can you send me some screenshots of your workspace?</DIV>
<DIV>&nbsp;</DIV>
<DIV>Regards,</DIV>
<DIV><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=idSignature74171>
<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></FONT></FONT></DIV>
<DIV>
<DIV><FONT face="Courier New" size=2><FONT face="Courier New" size=2><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></FONT></FONT></DIV></DIV></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV><BR>
<HR size=4>
<BR>
<CENTER><BR></CENTER></BLOCKQUOTE><BR><BR>
<HR size=4>
<BR>
<CENTER><BR></CENTER></BLOCKQUOTE><BR></DIV></BLOCKQUOTE><BR></DIV></BODY></HTML>