i am working on a project that uses a jnlp file. in there there are resources specified like this:
[code]
<resources>
<jar href="noterik-apu.jar" main="true" download="eager"/>
<jar href="springfield-tools.jar" download="eager"/>
<jar href="commons-httpclient-3.1.jar" />
<jar href="commons-cli-1.2.jar" />
<jar href="org.apache.commons.codec.jar" />
<jar href="org.apache.commons.httpclient.jar" />
<jar href="org.apache.commons.logging.jar" />
<jar href="swing-worker-1.1.jar" />
<jar href="log4j-1.2.16.jar" />
<jar href="dom4j-1.6.1.jar" />
<jar href="jaxen-1.1.1.jar" />
<j2se version="1.6+" href="http://java.sun.com/products/autodl/j2se"/>
</resources>
[/code]
the ant build file does not include those jar files in the build .jar. how can i add those jars in the cli so that it doesn't give me "Exception in thread "main" java.lang.NoClassDefFoundError:" ? i have tried "-cp file1.jar:file2.jar:etc.jar" but i read on the internet that you can't use -cp with -jar.. how can i make it work?
thanks in advance!