質問

In java, a jar/zip file is identicall to an directory.

I'll like to get a file from a jar/zip file as if were a directory.

Any one know where to look for.

役に立ちましたか?

解決

Is this what you seek for?

InputStream in = this.getClass().getClassLoader()
  .getResourceAsStream("SomeTextFile.txt");

How to really read text file from classpath in Java

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top