[Qt-jambi-interest] Problems starting Jambi app outside Eclipse
Robert Schlesier
news_robert at gmx.net
Wed Mar 19 19:24:26 CET 2008
Hello Adam,
thank you very much. I tried both solutions and they both work for me :)
Regards, Robert
On Tue, 18 Mar 2008 22:04:01 +0100, Adam Batkin <adam at batkin.net> wrote:
> It appears that Java ignores your -cp (or -classpath) command line
> arguments when you also specify -jar. In your case, only the jar
> application.jar is on the classpath, qtjambi.jar is ignored.
>
> The solution is either to package everything into a giant JAR (with
> relevant manifest so that you just do "java -jar giantjarfile.jar", OR
> don't use -jar and instead list everything explicitly on the classpath
> (and list the main class name on the command line):
> java -cp qtjambi.jar;application.jar com.foo.some.Application
>
> Hope this helps,
>
> -Adam Batkin
More information about the Qt-jambi-interest
mailing list