Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Calling native C++ method from Oracle Java stored procedure via J NI

Re: Calling native C++ method from Oracle Java stored procedure via J NI

From: Jesper Madsen <Jesper_Madsen_at_saxotech.com>
Date: Mon, 24 Sep 2001 11:05:19 +0200
Message-ID: <B7D4C3EF.551B%Jesper_Madsen@saxotech.com>


in article c879cafd.0109201715.394c9d26_at_posting.google.com, Bradley at bradley_liu_at_hotmail.com wrote on 21/09/01 3:15:

> Does anyone have experience with making JNI call from Oracle Java
> stored procedure to a DLL written in C++? One of the application we
> need to get data from only supports C/C++ API, and we need to find a
> way to access data available in that application within Oracle 8I
> database.
>
> I tried Java stored procedure calling C++ method in a DLL via JNI, but
> I got UnsatisfiedLinkError:
> 9/20/01 4:03 PM Execution failed: ORA-29532: Java call terminated by
> uncaught Java exception: java.lang.UnsatisfiedLinkError
>
> My Java stored procedure is valid, and I've also verified that the DLL
> is callable from a stand-alone Java application. Does anyone know why
> this DLL is not callable within Oracle JVM?
>
> Thanks,
> Bradley

Do you have

    extern "C"{
    ...
    }

    around your exported routines? And can you load the routines from a C++ application? In other words, have you checked your exports from else where... Received on Mon Sep 24 2001 - 04:05:19 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US