Merged with cldc-branch
[cacao.git] / tests / network / urltest.java
index 38dde2a2061834beb44db4a621fced7076de1114..7d35f1b7f3fd6184c21fa2a9dd0e805dd2220d0a 100644 (file)
@@ -84,9 +84,13 @@ public class urltest {
        {
            Object handler;
 
-           for (int i = 0; i < classes.length; ++i)
-               Class.forName(classes[i]).newInstance();
-
+           for (int i = 0; i < classes.length; ++i) {
+               try {
+                       Class.forName(classes[i]).newInstance();
+               } catch (Exception e) {
+                       System.out.println("Exception ("+e.toString()+") while trying to create an instance of: "+classes[i]);
+               }
+           }
            URL url = new URL("http://www.schani.net/");
 
            System.out.println("url " + url.toString());