This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Java in General and the fly likes Calling java API from Pro*C prog... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Calling java API from Pro*C prog..." Watch "Calling java API from Pro*C prog..." New topic

Calling java API from Pro*C prog...

vasu devan
Ranch Hand

Joined: Apr 18, 2002
Posts: 37
Hi All,
AS I need to call a java API from a Pro*C program and get the reurn value from the java API and perform the other functionality in Pro*C.
Is it possible to perform this kind of approach.
If it is so, then how will I go about doing that.
Please do suggest me some approach.
Thanks in Advance
Sean MacLean
Ranch Hand

Joined: Nov 07, 2000
Posts: 621
Thanks for participating here at the Ranch. However, the name you are using does not comply with the naming convention described at . We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name (not fictitious monikers). Please log in with a new name which meets the requirements.
Michael Bronshteyn
Ranch Hand

Joined: Mar 26, 2002
Posts: 85
You can call Java API from C code using JNI. If your Pro*C precompiles Oracle code into C, you can put your JNI code there. I don't think you are going to have a problem with that, because Pro*C is only looking for database code. Still, while I used to call Java API from C, I never did it from Pro*C.

I agree. Here's the link:
subject: Calling java API from Pro*C prog...
It's not a secret anymore!