diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2011-05-03 22:55:31 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2011-05-03 22:55:31 +0200 |
commit | 2be3b8bd883ce2df2f1a9edce6292ad749d96fd4 (patch) | |
tree | f2c43c4e854893edd816ddbf21e117e3dd537bb9 /bean | |
parent | c7708416213ecc8848dbd33e78e34a4dc514a2fd (diff) |
Change <file>.toURL() to <file>.toURI().toURL()
Diffstat (limited to 'bean')
-rw-r--r-- | bean/test/applet/oooapplet/OOoViewer.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bean/test/applet/oooapplet/OOoViewer.java b/bean/test/applet/oooapplet/OOoViewer.java index c7c96b6a0ab8..fbdcf714b0ca 100644 --- a/bean/test/applet/oooapplet/OOoViewer.java +++ b/bean/test/applet/oooapplet/OOoViewer.java @@ -53,7 +53,7 @@ public class OOoViewer extends Applet { System.setProperty("sun.awt.xembedserver", "true"); File f = new File(s); - URL url = f.toURL(); + URL url = f.toURI().toURL(); String officeURL = url.toString(); URL[] arURL = new URL[] { new URL(officeURL + "/program/classes/officebean.jar"), @@ -65,7 +65,7 @@ public class OOoViewer extends Applet { }; m_loader = new CustomURLClassLoader(arURL); File fileProg = new File(s + "/program"); - m_loader.addResourcePath(fileProg.toURL()); + m_loader.addResourcePath(fileProg.toURI().toURL()); } } catch (MalformedURLException e) { e.printStackTrace(); |