| [news.eclipse.newcomer] Re: Help with jar export and external library |
Paul Rubin wrote:
I don't suppose anybody has found a better way to get around Java ignoring -cp when running a jar?
I was not aware of that side-effect of using java "-jar" but in any case you don't have to resort to deploying an exploded JAR (.class files). You can still ship a JAR and a batch file, just instead of using "java -jar ..." you include your JAR on the -cp arg to java.exe or javaw.exe. The -jar shorthand is just a convenience method, you can ignore it when it doesn't meet your needs.
Thanks again, /Paul