문제

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