java - JarFile from inside a *.jar or inputstream to file? -


I have jars or war.

I am studying this jar programmatic, and when I get the jar inside the jar I want to read the programmatic again.

But the jarfile only provides, provides the inststream, which I can not go to the garfield (file file) constructor.

How to read a jar from a jar?

Edit: I was thinking of getting a file from classloader in some way or such

You can create a jar file in the file system, something like

  file tempFile = TempFile.createFile ("new jar", ".jar");  

After typing the stream into it, you can create your own jarfile (tempfile) and handle it ...

Forget about this The program is running as an unsigned applet / JNLP because you do not have the right to create files in the file system ...


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -