Index: src/org/openstreetmap/josm/gui/layer/markerlayer/Marker.java
===================================================================
--- src/org/openstreetmap/josm/gui/layer/markerlayer/Marker.java	(revision 222)
+++ src/org/openstreetmap/josm/gui/layer/markerlayer/Marker.java	(revision 223)
@@ -6,4 +6,6 @@
 import java.awt.event.ActionListener;
 import java.io.File;
+import java.net.MalformedURLException;
+import java.net.URL;
 import java.util.HashMap;
 import java.util.LinkedList;
@@ -17,6 +19,4 @@
 import org.openstreetmap.josm.gui.MapView;
 import org.openstreetmap.josm.tools.ImageProvider;
-
-import com.sun.org.apache.xerces.internal.util.URI;
 
 /**
@@ -75,5 +75,5 @@
 
 				// Try a relative file:// url, if the link is not in an URL-compatible form
-				if (relativePath != null && link != null && !URI.isWellFormedAddress(link))
+				if (relativePath != null && link != null && !isWellFormedAddress(link))
 					link = new File(relativePath, link).toURI().toString();
 
@@ -87,4 +87,13 @@
 					return WebMarker.create(ll, link);
 			}
+
+			private boolean isWellFormedAddress(String link) {
+				try {
+					new URL(link);
+					return true;
+				} catch (MalformedURLException x) {
+					return false;
+				}
+            }
 		});
 	}
