Home » Developer & Programmer » Forms » Calling Java class from Form10G PLSQL (Calling Java class main methodo from Form10G PLSQL)
Calling Java class from Form10G PLSQL [message #273703] Thu, 11 October 2007 07:40 Go to next message
Messages: 3
Registered: September 2007
Junior Member

I got a main methodo em my java class, like this:

public static void main(String[] args)

I imported the class to form, and run the java class this way:

ExemploForm.main_2122('My Text');

but i'm getting the following mistakes:

wrong number or types od arguments in call to "MAIN_2122"

I don't know how to create a array in Form 10G to call this Java Methodo.

Is there any example to set the Form 10G array and run my the Java Methodo?


Re: Calling Java class from Form10G PLSQL [message #273841 is a reply to message #273703] Thu, 11 October 2007 21:25 Go to previous message
Messages: 138
Registered: April 2007
Senior Member
Hi there,

Please can you Post the IMPORTED Java Class/Function that you got in Forms. This should have converted into PL/SQL from Java. The Datatype mapping between Java and PL/SQL is as per the link below:

http://www.oracle.com/webapps/online-help/reports/10.1.2/state/content/navId.3/navSetId._/vtTopicFile.htmlhelp_rwbuild_hs%7Crwj_imp%7 Cjimp_ajavatoplsqltypemaps~html/

So my guess is that you have to use ORA_JAVA.JARRAY instead of Ora_java.jobject.

If I am not mistaken, this Java function will become a PL/SQL procedure that takes in an Ora_java.JARRAY paramter (Array of String) and not a String as you are trying to pass in.

Please try this and let us know if you got it resolved.

Previous Topic: check box
Next Topic: Front End in plsql
Goto Forum:

Current Time: Sun Oct 23 05:26:40 CDT 2016

Total time taken to generate the page: 0.07591 seconds