[OSM-talk] Building the applet broken?

Petter Reinholdtsen pere at hungry.com
Sat Mar 18 20:22:10 GMT 2006


[Immanuel Scholz]
> Maybe your subversion archive is really messed up.. If you changed
> once something in the corresponding directory, Subversion will not
> delete it on update. Maybe you should start from a clean new
> checkout..?

Right, yes.  I had some old files hanging around.  After I removed
that directory, the build is much more successful.  Still one error,
fixed with this patch:

Index: src/org/openstreetmap/processing/GuiLauncher.java
===================================================================
--- src/org/openstreetmap/processing/GuiLauncher.java   (revision 900)
+++ src/org/openstreetmap/processing/GuiLauncher.java   (working copy)
@@ -40,7 +40,8 @@
                try {
                        thinlet.add(thinlet.parse(xmlFile));
                } catch (IOException e) {
-                       throw new IllegalArgumentException("IO error while reading "+xmlFile+".", e);
+                       //throw new IllegalArgumentException("IO error while reading "+xmlFile+".", e);
+                       throw new IllegalArgumentException("IO error while reading "+xmlFile+".");
                }
                dlg.setLayout(new GridBagLayout()); // GBL does respect preferredsize.
                dlg.add(thinlet);

The problem is that IllegalArgumentException(String, Exception) is an
unknown constructor in the version of Classpath I am using.

Running it with cacao give me a problem with the font loading.  It is
unable to find/load LucidaSansUnicode-11.vlw.  Not sure how to
properly work around that one, so I ended up using the well known
porting technique of commenting out the code using the font.  It did
not work.  Now the program crashes instead.  I'll poke the classpath
developers to try to work out this one.

The conclusion is that I am able to build the OSM java applet using
free java, and should get it to run as well once the bugs in classpath
or cacao/jamv/kaffe/whatnot get fixed.

There is also a minor issue that one of the directories needed by the
build isn't created by ant.  This patch fixes it.

Index: build.xml
===================================================================
--- build.xml   (revision 900)
+++ build.xml   (working copy)
@@ -10,6 +10,7 @@
   <target name="init">
     <tstamp/>
     <mkdir dir="${build}"/>
+    <mkdir dir="${build}/gui"/>
     <mkdir dir="${dist}"/>
     <mkdir dir="${dist}/api"/>
     <mkdir dir="${dist}/rc1/org"/>

I do not seem to have write access to svn (or at least I do not
remember the password), so I can't commit this myself.

Friendly,
-- 
Petter Reinholdtsen





More information about the talk mailing list