• Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

JAVA application directory independent resources

Addanc

More time posting than coding
Thanks received
3
Say I have a directory full of ICONs etc; how in a JAVA application do I access this directory of resources in a platform and directory independent manner?
 
Have a look at the Sun Java Tutorial - that should be enough to get you started.

The system properties (accessible via System.getProperties()) contain things like file and path separators for the runtime environment, but you'll probably find that the methods of the various classes in java.io can do all the heavy lifting for you.

If you want to get really fancy, you could always have a play with java.nio.* :nerd
 

Advertisers

Back
Top