Thank you

On Mon, Mar 5, 2018 at 6:14 AM, Nick Burch <[email protected]> wrote:

> On Sat, 3 Mar 2018, Jean-Nicolas Boulay Desjardins wrote:
>
>> I am using this command:
>>
>> java -classpath /home/$USER/Projects/Lab/tika/classes/ -jar
>> ./tika-app/target/tika-app-1.17.jar
>>
>
> Java ignores -classpath if you also specify -jar
>
> In /home/$USER/Projects/Lab/tika/classes/ I have:
>> sqlite-jdbc-3.19.3.jar
>>
>
> Java only reads classes from a directory on a classpath by default, not
> jars, so the jar in here will be ignored
>
>
> So, you need to stop using -jar if you want -classpath to be used, and to
> tell Java to load your other jars by either giving a wildcard on the
> classpath line or explicitly specifying all of them
>
> Nick
>

Reply via email to