<h2>How to run sample programs</h2>
-<p>JDK 1.3 or later is needed.
+<p>JDK 1.4 or later is needed.
<h3>0. If you have Apache Ant</h3>
File f = new File(filename);
if (f.exists())
try {
- return f.getCanonicalFile().toURL();
+ return f.getCanonicalFile().toURI().toURL();
}
catch (MalformedURLException e) {}
catch (IOException e) {}
try {
jarfile = new JarFile(pathname);
jarfileURL = new File(pathname).getCanonicalFile()
- .toURL().toString();
+ .toURI().toURL().toString();
return;
}
catch (IOException e) {}