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/test | |
parent | Kill BrOffice NSIS artwork (diff) | |
download | core-2be3b8bd883ce2df2f1a9edce6292ad749d96fd4.tar.gz core-2be3b8bd883ce2df2f1a9edce6292ad749d96fd4.zip |
Change <file>.toURL() to <file>.toURI().toURL()
Diffstat (limited to 'bean/test')
-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(); |