Non-jar Resources in Java Web Start

I would like to know if non-jar resources can be specified in a JNLP file. Resources such as zip files or even directories are automatically loaded into the Java WebStart application in the same way as jar files.

Thanks in advance.

+4
source share
2 answers

The short answer is no. For security reasons, web start requires all resources to be in jar files (including native libraries).

+3
source

I am not familiar with WebStart / JNLP, but you can pack any file into a jar file and then access it as follows:

InputStream is = getClass( ).getResourceAsStream("/path/in/jar/file.png"); 
+1
source

Source: https://habr.com/ru/post/1344818/


All Articles