File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to specify a path of a certain file?

 
Bigwood Liu
Ranch Hand
Posts: 240
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have some gif files as icons, But how can I specify the path to the file?
I put all the icons in a folder named icons, it is in suncertify folder.
I tried this way,
it can work under windows OS, but I don't know if it can still work under other OS.
Need your help, thank you.
Regards,
Damu
 
Philippe Maquet
Bartender
Posts: 1872
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Damu,
If you've tested that code (using "/" as separator in the path name) on Windows, it should be OK on other platforms too IMO.
Does getResource() javadoc say something about the path name format ? (I have no doc with me for two days ).
Best,
Phil.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic