farriss85: > I have searched the forum and have not found a solution to my problem. > What I am doing is setting the my canvas to have a default file that is in > the root directory. > I do a call to my > File f = new File("myFile.svg"); > canvas.setURI(f.toURI().toString()); > > This works find and loads the document correctly, but doesn't when I do a > "Clean and Build" and try to run the JAR file. At that time is says that it > can not find the directory or file "myFile.svg" and causes all kinds of > errors. I am assuming that this is a relative path issue... but I am not > sure what to do to get this to work. Does anyone have a solution to my > problem?
The root directory of your Windows drive (or Unix filesystem)? If so, put a slash in the pathname so that it will always refer to the root directory: File f = new File("/myfile.svg"); A relative pathname will be resolved against the current working directory. -- Cameron McCormack, http://mcc.id.au/ xmpp:[EMAIL PROTECTED] ▪ ICQ 26955922 ▪ MSN [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]