marcussilfver@gmail.com wrote:
>> I have application code that runs fine when executed from inside
>> Eclipse IDE.
[quoted text clipped - 12 lines]
>> Where should I put the x.jar for the JRE to find when executing
>> myApp.jar?
> To the classpath
>
> java -cp .;/path/to/the/x.jar;/possible/other/jars -jar myApp.jar
There's no point in putting a -cp option there if you use -jar. The classpath
will be completely ignored due to the -jar option.
<http://java.sun.com/javase/6/docs/technotes/tools/solaris/java.html>
> When you use this option [-jar], the JAR file is the source of all user classes,
> and other user class path settings are ignored.
The answer is the Class-Path manifest attribute
<http://java.sun.com/j2se/1.5.0/docs/guide/jar/jar.html#Manifest%20Specification>
Place the library JAR in the same directory as the application JAR, or a
subdirectory, and reference it from the manifest of the application JAR.

Signature
Lew
marcussilfver@gmail.com - 26 Mar 2008 15:44 GMT
> marcussilf...@gmail.com wrote:
> >> I have application code that runs fine when executed from inside
[quoted text clipped - 35 lines]
>
> - Visa citerad text -
thanks everyone answering. I got it working now!
regards
Marcus