Subject Re: [Firebird-Java] Re: Compiling Type2 driver
Author Luca Lafranchi
Hi Ryan

>
> Which JDK version does JAVA_HOME point too(or is overwise being used) ?
>

I'm now home, and here I am using j2sdk1.4.2

> If you actually look inside cpptasks.jar - Can you see the class
> 'net.sf.antcontrib.cpptasks.CCTask'
> and is the size of cpptasks.jar 195K ? (Just I'm wondering if maybe this
> could be corrupted somehow.)
>

File appears not corrupted, and class is present.

What is really weird is following: if I DON'T put cpptasks.jar into
jre\lib\ext, then ant outputs this

"init:

compile-native:
[taskdef] Could not load definitions from resource cpptasks.tasks. It
could not be found.
[typedef] Could not load definitions from resource cpptasks.types. It
could not be found.
Overriding previous definition of reference to jaybird.compiler
Overriding previous definition of reference to jaybird.linker
Overriding previous definition of reference to jaybird.compiler
Overriding previous definition of reference to jaybird.linker

init:

set_platform_properties:

prepare_mingw:

prepare_msvc:

BUILD FAILED
file:D:/programming/opensource_projects/client-java/build_native.xml:185:
Could not create task or type of type: compiler.

Ant could not find the task or a class this task relies upon.

Total time: 1 second
"

otherwise it's

"
init:

compile-native:

BUILD FAILED
file:D:/programming/opensource_projects/client-java/build_native.xml:31:
taskdef class net.sf.antcontrib.cpptasks.CCTask cannot be found

Total time: 1 second
"

From the log above I see that if cpptasks.jar is not found, then
"taskdef" and "typedef" cannot be evaluated and the build fails, but
then I don't understand why ant finds "cpptasks.task" and
"cpptasks.types" (which are also in the jar) and not the class defined
in "cpptasks.task".

Ciao
Luca