• Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
  • 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

Collapse
X
  •  
  • Filter
  • Time
  • Show
Clear All
new posts

    JAVA application directory independent resources

    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?

    #2
    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.*

    Comment

    Working...
    X