Question

I have a JNLP file and want to load resources from a folder. I have quite a few jars and do not want to specifically define each and every one of them. I have tried changing the path to the below but does not work.

<resources>
    <j2se version="1.0+" />
    <jar href="lib/*.jar" />
</resources>

Any advice?

Was it helpful?

Solution

You have to specify each jar individually.

According to the spec

jar - Specifies a JAR file that is part of the application's classpath.

href - contains an url of the jar file.

So I think it is not possible to use wildcards. Especially it doesn't make sense if you want to use one of the other attributes like version, main, download, size etc.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top