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?

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top