I have a problem to import a java class into oracle forms11g.For this I have created a demo jar file(htmlbutton.jar) in this there is class which i want to get imported into oracle form.I have tried to edit ClassPath in default.env file but no solution I got, there is no package or class is shown in import java classes window in oracle form builder 11g.
I dont know what I am missing here.
Please someone give a basic tutorial to import a java class into oracle forms.
Maybe there is a confusion here. HtmlButton is probably some Swing Java Bean that cannot be imported at server side with the Java Importer Forms Builder feature.
The java Importer is able to import Java code that will be executed at server side, so without any "screen" representation.
Maybe you could clarify your need.
There are two possible integrations of java into forms:
-server-side integration. This is functionality executed in the "backgound" without any GUI (e.g. a webservice-call). This is done using the java-importer.
-client-side-integration. This functionality "extends" the GUI of a forms-application (e.g having a special button). This integration s not done by the java-importers, but with a couple of things:
+the java-class has to be based on a specific Forms-Java-class (.eg. VBean, VButton, VTextField, depending on your itemtype)
+the name of the java-class has to be put in the property "implementation class" of your forms-item which should "inherit" the new behaviour.
+the jar with the javacode has to be in the property "archive" in the appropiate section of your default.env
Have a look here http://forms.pjc.bean.over-blog.com/ especially the article "How to build my first javabean"