Home » Developer & Programmer » Forms » Import from java class into oracle form (Forms 10.1.2.0.2, Windows XP)
Import from java class into oracle form [message #451096] Mon, 12 April 2010 07:21 Go to next message
sinida1984
Messages: 83
Registered: September 2007
Location: India
Member
Hi

I am new to 10g forms. I need to add one validation in one form. The form is not getting run locally because of some imported java classes which was already there. From application server it works fine. When i run locally it gives ORA_JAVA.EXCEPTION_THROWN. Actually some trigger calls a procedure from this imported java class. Some path is specified in JNI.NEW_OBJECT(). That patg may not be in local system. If those files are included in our oracle home directory, will this problem get solved.?

Thanks
Sinida
Re: Import from java class into oracle form [message #451343 is a reply to message #451096] Wed, 14 April 2010 02:06 Go to previous messageGo to next message
sinida1984
Messages: 83
Registered: September 2007
Location: India
Member
Hi

The path i said means ..something like the below
FUNCTION new RETURN ORA_JAVA.JOBJECT IS
BEGIN
args := NULL;
RETURN (JNI.NEW_OBJECT('com/irel/blas/intl/nov/business/implddd', '()V', args));
END;

What is this 'com/irel/blas/intl/nov/business/implddd'..Does this needs to be in our local system to run the form locally? The oracle form is calling this procedure like implddd.new().
in which implddd is the package name and new is the function name inside that package.

Can anyone help me?
Re: Import from java class into oracle form [message #451695 is a reply to message #451343] Fri, 16 April 2010 03:34 Go to previous messageGo to next message
sinida1984
Messages: 83
Registered: September 2007
Location: India
Member
Hi

I have got the jar files which were missing. Let me put those in the path and try.

Sinida
Re: Import from java class into oracle form [message #451948 is a reply to message #451695] Mon, 19 April 2010 02:07 Go to previous messageGo to next message
meteo
Messages: 89
Registered: April 2010
Location: beirut
Member
Check this link http://baigsorcl.blogspot.com/2010/02/how-to-add-java-bean-by-writing-your.html
Re: Import from java class into oracle form [message #451978 is a reply to message #451948] Mon, 19 April 2010 06:44 Go to previous message
sinida1984
Messages: 83
Registered: September 2007
Location: India
Member
hi..

Thanks for the reply. I got some useful information from the link. Still I am unable to run the form locally. Because the jar file which i got may be needed to be put in correct directory and sign it.

Thanks
Sinida
Previous Topic: Age
Next Topic: Master -Detail Record relation problem
Goto Forum:
  


Current Time: Fri Sep 20 05:54:09 CDT 2024