Reading content of the Jar itself?

Discussion in 'Plugin Development' started by blargh, Mar 15, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    blargh

    Im looking for a Solution how to get the Content of a Folder in the Jar? For example i want to read a File in the jar, without needing to create it on the Harddisk.
     
  2. Code:
    File f = YourMainClass.class.getResource("folder/in/jar/file.txt");
    something like that.
     
  3. Offline

    blargh

    So easy? Seriously... Will test that. Thanks anyway
     
Thread Status:
Not open for further replies.

Share This Page