Subject | Re: [Firebird-Java] Re: Jaybird deploy problem: ”No suitable driver” |
---|---|
Author | Mark Rotteveel |
Post date | 2010-04-27T11:26:27Z |
On 27-4-2010 12:47, lbhifi wrote:
want to check if you actually have all Firebird classes (and
dependencies). Could you describe the exact layout of the jar file?
Note that it is usually better to keep external libraries in their own
jar files, and reference them using the Class-Path entry in the manifest.
Roman, when using java -jar the environment variable CLASSPATH is
ignored. Only the Class-Path entry in the manifest is used. Putting jars
in the ext folder of the JRE(!) works, but is usually not advisable as
it introduces unclear dependencies (and can cause problems when moving
to a different system, upgrading java, etc).
--
Mark Rotteveel
> --- In Firebird-Java@yahoogroups.com, Roman Rokytskyy<roman@...> wrote:If all classes are in your jar, then it should usually work. You might
>>
>> Is jaybird-full-2.1.6.jar in the CLASSPATH or in the ext path of your JDK?
>>
>> Roman
>>
>
> No!
>
> This may be a stupid question, but when I include everything in the deployed jar, does java still need this classpath?
> I mean, when I open the jar with winzip, I can se all the org.firebird... classes. They are right there in the deployed jar file.
>
> If so, what should the classpath be?
want to check if you actually have all Firebird classes (and
dependencies). Could you describe the exact layout of the jar file?
Note that it is usually better to keep external libraries in their own
jar files, and reference them using the Class-Path entry in the manifest.
Roman, when using java -jar the environment variable CLASSPATH is
ignored. Only the Class-Path entry in the manifest is used. Putting jars
in the ext folder of the JRE(!) works, but is usually not advisable as
it introduces unclear dependencies (and can cause problems when moving
to a different system, upgrading java, etc).
--
Mark Rotteveel