JAVA implementation Class in Forms 9i
I have a Form where i'm using the progressbarJPC from de Oracle Forms90 demo's.
To get this work I have to modify the Formsweb.cfg with progressbar.jar. That works.
In developer there's an entrie implementation Class on the bean where i have to write "oracle.forms.demos.ProgressBarPJC"
Thats also working. Now my question.
I develop on W2000 and deploy on Linux with AS9i.
To getting forms work on Linux i have to compile the code again.
On linux there are no folders containing the OracleForms demo's.
How can ik deploy that kind of classes on Linux?
Do I have to compile the source again on linux in de folder forms90/java. What to do with the implementation class "oracle.forms.demos.ProgressBarPJC" ?
Hugo Perfors
Hugo,
the Forms module can be compiled without having to compile oracle.forms.demos.ProgressBarPJC. Just have the implementation class reference in teh Forms module and use the same jar file.
Frank
Similar Messages
-
Implementation class(in forms)
In the button properties-implementaion class is set to
oracle.apps.fnd.ui.Button
can anybody explain this and need to know whether i can create my own implemention class and attached it to the form and do give me the jar file for the class--oracle.apps.fnd.ui.Button.
thans in advanceHugo,
the Forms module can be compiled without having to compile oracle.forms.demos.ProgressBarPJC. Just have the implementation class reference in teh Forms module and use the same jar file.
Frank -
[PJC]implementation class 11g forms(rolloverbutton button)
Screen:http://ppt.cc/[email protected]
dowload demo :http://download.oracle.com/otndocs/demos/forms/11g/demos_11g.zip
PJC Step:
1.rolloverbutton.jar-copy--->C:\Oracle\Middleware\Oracle_FRHome1\forms\java
2.
C:\Oracle\Middleware\user_projects\domains\ClassicDomain\config\fmwconfig\servers\AdminServer\applications\formsapp_11.1.2\config
formsweb.cfg
[webutil]
WebUtilArchive=frmwebutil.jar,jacob.jar
WebUtilLogging=off
WebUtilLoggingDetail=normal
WebUtilErrorMode=Alert
WebUtilDispatchMonitorInterval=5
WebUtilTrustInternal=true
WebUtilMaxTransferSize=16384
baseHTML=webutilbase.htm
baseHTMLjpi=webutiljpi.htm
archive=frmall.jar,rolloverbutton.jar
archive_jini=frmall_jinit.jar,rolloverbutton.jar
lookAndFeel=oracle
complie no error
But icon not display,what???
Edited by: 928060 on 2012/4/26 下午 9:01
Edited by: 928060 on 2012/4/27 上午 7:07
Edited by: 928060 on 2012/4/28 下午 7:051. \forms\server\formsweb.cfg
archive_jini=frmall_jinit.jar,FormsProperties.jar
2. regedit
HKEY_LOCAL_MACHINE => FORMS_BUILDER_CLASSPATH
C:\DevSuiteHome_1\forms\java\frmbld.jar;C:\DevSuiteHome_1\jlib\importer.jar;
C:\DevSuiteHome_1\jlib\debugger.jar;C:\DevSuiteHome_1\jlib\utj.jar;
C:\DevSuiteHome_1\jlib\dfc.jar;C:\DevSuiteHome_1\jlib\help4.jar;
C:\DevSuiteHome_1\jlib\oracle_ice.jar;C:\DevSuiteHome_1\jlib\jewt4.jar;
C:\DevSuiteHome_1\jlib\ewt3.jar;C:\DevSuiteHome_1\jlib\share.jar;
C:\DevSuiteHome_1\forms\java\frmwebutil.jar;C:\DevSuiteHome_1\forms\java\frmall.jar;
C:\DevSuiteHome_1\forms\java\FormsProperties.jar; -
Integrate java class with forms
dear friends,
i use forms9i under windows2000,
i try to implement a java class for a bean area.
i have some classes who oracle demo provide.
I DO the following :
save HTMLTextArea.class in <oracle_home>/forms90/java
and property palette of bean i write the class name in implementation class property HTMLTextArea
and also set the Forms60_Builder_Classpath varibale in registry(c:\ora9ids\forms90\java\HTMLTextArea so when i run this form then received an error
" java.lang.NoClassDefFoundError: HTMLTextArea (wrong name: oracle/forms/demos/HTMLTextArea).
plz solve this problem.I presume that you have to create the full path oracle/forms/demos/HTMLTextArea.class in the forms90/java folder...else,if you save there the java class without the full path (wich corespondds to the package oracle.forms.demos),the server won't find it..
However,this is bad practice,to keep the class file on the server...create a jar file with this class,and add it the archive_jini tag in formsweb.cfg file..place the jar file in forms90/java folder -
How to run the imported java class in form
Help!!!!!
Pls help me to run the imported java class in forms.
Package is created in forms while imported one class called
singlexml.class and that package has one procedure and one
function.
I just wanted to run that class.I mean the new package.
Thanks
AnilHi,
It is because the converter works on byte code and it only supports a subset of the Java language (see the JC specifications). It is kind of like compiling you code on Java 6 and trying to run it on Java 5. The JCDK outlines the required compiler version.
Cheers,
Shane -
Java error importing class on forms
Hi friends:
I build a java program to save blob files into oracle database table.
The program compile and execute fine in JDeveloper 10g.
I get the class file and put in temporal directory and now I am trying to import these class file with Forms Builder 10g.
How can I do that?
thank you.
Abdel Miranda
Panamause the Java Importer of Oracle Forms Builder.
PROGRAM - IMPORT JAVA CLASSES
be sure, that the CLASSPATH is correct, so that forms can find your classes -
Using java classes with Forms 6i
Hello everyone,
I want to use some Java.io functionality in Forms 6i but I'm not sure how to go about doing this. How can I access java classes from a forms application?
Thanks,
WesUse th Java Importer - information on otn.oracle.com/products/forms or in the on line help.
Regards
Grant Ronald
Forms Product Management -
Accessing Java Classes from Forms
Is is possible to access a Java class from Forms? I have been
creating an Active X control that returns a Java object, and from
that I can call methods on that object, but I would really like
to do that without having and Active X control in the mix. Any
suggestions?
nullOracle Developer Team wrote:
: Robert Nocera (guest) wrote:
: : Oracle Developer Team wrote:
: : : hey robert -
: : : Developer 6.0 provides this ability for web deployment.
You
: : can
: : : insert your own custom Java components into your
application
: : and
: : : they will appear in the application when it is run via the
: web.
: : : If you look at the documentation for 6.0, there are a few
: : : section son Pluggable Java Components and JavaBeans that
: : : describes what is provided and how you use the interfaces
: and
: : : classes we provide.
: : : A whitepaper on this topic will be posted to the OTN
: shortly,
: : as
: : : well as some samples that illustrate how to go about doing
: it.
: : : cheers!
: : : -Oracle Developer Team-
: : Thanks for the quick response. Is there any way to access
: those
: : classes without being in a web deployment. That's probably
: not
: : totally out of the question, but what we had in mind was
: adding
: : some Java Functionality (actually connectictivity to some
EJBs
: : that we have) to existing forms. Currently there forms are
: not
: : deployed in a "web" environment and are just run from the
: forms
: : runtime engine.
: : -Rob
: hey again robert -
: there's no easy way (yet!) to call out from forms runtime
: process to a Java application.
: We've played around some with creating an ORA_FFI interface to
: JNI and then wrappering this with PL/SQL code. We've been able
: to make calling into an EJB running in 8i from a forms runtime
: work using this approach.
: Let me know if this is of interest to you and I can post the
: stuff we've currently got. It's no more than a simple demo and
: is not complete. It requires quite a bit of manual coding on
: the PL/SQL side since the interface emulates JNI (FindClass,
: GetMethodID, CallMethodID, etc.).
: cheers!
: -the Oracle Developer Team-
I'd be interested in this ORA_FFI doc you've been playing with.
Would you please email it to me or post it.
null -
What is the Java default ORB implementation class?
I have a web application deployed on the Sun Java System Application Server 8. This application will also act as a CORBA client by invoking remote methods on another CORBA server.
Our first approach was to use the ORB provided by the Sun App Server. But whenever the code reaches the point to initialize the ORB:
orb = ORB.init(as, null); we encountered such exceptions:
[#|2005-02-03T00:38:43.912-0600|WARNING|sun-appserver-pe8.0.0_01|javax.enterpris
e.resource.corba._DEFAULT_.rpc.transport|_ThreadID=14;|"IOP00710209: (INTERNAL)
Unable to create listener thread on the specific port"
org.omg.CORBA.INTERNAL: vmcid: SUN minor code: 209 completed: No
at com.sun.corba.ee.impl.logging.ORBUtilSystemException.createListenerFa
iled(ORBUtilSystemException.java:3142)
at com.sun.corba.ee.impl.logging.ORBUtilSystemException.createListenerFa
iled(ORBUtilSystemException.java:3160) When we deployed the same app on Tomcat, it worked fine. We later reasoned the exception was happening on the Sun App Server because perhaps it was trying to initialize another ORB with the same properties as the one initialized by the Sun App Server, and thus was trying to create another listener on a port already in use.
On tomcat, the ORB used was the default ORB provided by Java. Thus, we thought we would try 'overriding' the ORB properties for the Sun App Server by specifiying this in the ORB.init() method:
String as[] = null;
Properties orbProperties = new Properties();
orbProperties.put("org.omg.CORBA.ORBClass","com.sun.corba.se.internal.iiop.ORB");
orbProperties.put("org.omg.CORBA.ORBSingletonClass","com.sun.corba.se.internal.iiop.ORB");
orb = ORB.init(as, orbProperties);But when executing this, we get the exception as follows:
Caused by: org.omg.CORBA.INITIALIZE: can't instantiate custom socket factory: co
m.sun.enterprise.iiop.IIOPSSLSocketFactory vmcid: 0x0 minor code: 0 completed
: No
at com.sun.corba.se.internal.corba.ORB.parseProperties(ORB.java:1250)
at com.sun.corba.se.internal.POA.POAORB.parseProperties(POAORB.java:267)
at com.sun.corba.se.internal.Interceptors.PIORB.parseProperties(PIORB.ja
va:341)
at com.sun.corba.se.internal.corba.ORB.set_parameters(ORB.java:460)
at com.sun.corba.se.internal.POA.POAORB.set_parameters(POAORB.java:153)
at com.sun.corba.se.internal.Interceptors.PIORB.set_parameters(PIORB.jav
a:333)
at org.omg.CORBA.ORB.init(ORB.java:337)
at com.covansys.ipceuc.corbalogic.SessionManager.<clinit>(SessionManager
.java:159) Some Sun sites mentioned that com.sun.CORBA.iiop.ORB is the Java ORB implementation. When trying to use this, we got a ClassNotFoundException.
Also tried the following classes:
com.sun.corba.se.internal.corba.ORB
com.sun.corba.se.internal.core.ORB
com.sun.corba.se.internal.org.omg.ORBAll of them reported exceptions as follows:
Caused by: org.omg.CORBA.INITIALIZE: can't instantiate default ORB implementati
n org.omg.CORBA.ORB vmcid: 0x0 minor code: 0 completed: No
at org.omg.CORBA.ORB.create_impl(ORB.java:297)
at org.omg.CORBA.ORB.init(ORB.java:336)
at com.covansys.ipceuc.corbalogic.SessionManager.<clinit>(SessionManage
.java:158)
... 55 more
Caused by: java.lang.InstantiationException
at sun.reflect.InstantiationExceptionConstructorAccessorImpl.newInstanc
(InstantiationExceptionConstructorAccessorImpl.java:30)
at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at java.lang.Class.newInstance0(Class.java:308)
at java.lang.Class.newInstance(Class.java:261)
at org.omg.CORBA.ORB.create_impl(ORB.java:295)
... 57 more
|#] Anyone know what the Java ORB implementation class is, or whether this is possible at all?
Thanks in advance.Hello
The defaults for JDK 1.4.2 (at least) are shown it the code below:
Properties p = new Properties ();
p.put ("org.omg.CORBA.ORBSingletonClass",
"com.sun.corba.se.internal.corba.ORBSingleton");
p.put ("org.omg.CORBA.ORBClass",
"com.sun.corba.se.internal.Interceptors.PIORB");
p.put ("javax.rmi.CORBA.UtilClass",
"com.sun.corba.se.internal.POA.ShutdownUtilDelegate");
p.put ("javax.rmi.CORBA.PortableRemoteObjectClass",
"com.sun.corba.se.internal.javax.rmi.PortableRemoteObject");
System.setProperties (p);Of course you can use this code to set these defaults back. Be careful, if you do this inside Weblogic, for instance, it will likely abend.
[]'s
Marcond -
How to call Java class from Forms 6i?
Hi friends,
I need to call a Java class from my Forms 6i application.
(It runs under WIndows XP. It's a client/server application and I have only the client and the Form builder installed on my PC)
I don't know almost anything about Java's world so your help would be very useful for me.
Could you tell me exactly what i have to do?
I've read in metalink several Notes, but they supposed that the Java architecture is already installed in the computer.... I only have the default installation of Developer 6i... so I would need to know:
- How to install/configure the neccesary to execute Java classes without problem
- How to invoke the .class from Forms 6i.
Thanks a lot
Jose.And also this one:
Problem Description
Installed Forms 6i Rel 2 on a MS Windows machine. When trying to Import the Java
Classes getting the errors
PDE-UJI0001 Failed to create the JVM
Solution Description
You need to to install JDK 1.2.2 to run the Java Importer. And set the PATH's
and classpath's correctly.
Explanation
1. Download and install the JDK 1.2.2.
Possibly available at: http://java.sun.com/products/archive/
2. Assuming the JDK 1.2.2 is installed in c:\jdk1.2.2 directory and the JRE in
C:\PROGRA~1\JAVASOFT\JRE\1.2 directory; ORACLE_HOME=C:\Dev6iR2.
Set the PATH to
set PATH=c:\jdk1.2.2\bin;C:\PROGRA~1\JAVASOFT\JRE\1.2\bin;C:\PROGRA~1\JAVASOFT\JRE\1.2\bin\classic;%PATH%
( If you are using ias9i then the JDK 1.2.2 comes with the ias installtion ,
in this case please set the PATH to
D:\ias9i\Apache\jdk\bin;D:\ias9i\Apache\jdk\jre\bin;D:\ias9i\Apache\jdk\jre\bin\classic;%PATH% )
3. Set the CLASSPATH to set CLASSPATH=%CLASSPATH%;C:\Dev6iR2\TOOLS\COMMON60\JAVA\IMPORTER.JAR;.
(If you do not set the CLASSPATH correctly you will get the error
PDE-UJI002 Unable to find the required java importer classes)
4. Now run the Forms Builder by using the command.
C:\Dev6iR2\bin\ifbld60.exe
Now the Java Importer Should Run fine.
Francois -
Invoking Java classes from Forms
We are running an AIX Forms server, and we would like to be able to execute a java class with two command-line parameters (ex. "java myClass.class param1 param2"). Is the "java" run-time executable available on AIX? I'm assuming it would be part of the JRE installed with Oracle 8.1.6, but where might I find it, and can it be called with the HOST() command?
Thanks,
JonathanI think if you have forms server installed you will have a java runtime there on the disk somewhere.
Regarding activating the java check out the "java importer" tool that comes with patch 4 of developer 6i.
null -
Hi there
I have recently installed App Server 10.1.2.0 on a new machine.
Copied all my forms to an appropriate directory. Set up formsweb.cfg to allow them to run and have attempted to run them.
Unfortunately I get stuck at the Loading Java Applet screen, and in the status bar at the bottom it says :
load: class oracle.forms.engine.Main not found
I have taken a look at the Java Console, and the 2 things that jump out at me are that it appears to be looking for a forms90 directory, which seems odd since I am using App Server 10.1.2.0.2 and Forms Builder 10.1.2.0.2 meaning it should be looking in a forms directory not forms90 directory shouldnt it ?
And also, it mentions class with no proxy, so on looking around the forums it has been suggested that put the proxy details into jinitiator, which I have done, but this has made no difference either.
Can anyone suggest anything else please ?
Java Console log follows.
Thanks a lot
Scott
Oracle JInitiator: Version 1.3.1.9
Using JRE version 1.3.1.9 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\hilliers
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
q: hide console
s: dump system properties
t: dump thread list
x: clear classloader cache
0-5: set trace level to <n>
Unregistered modality listener
Removed trace listener: sun.plugin.ocx.ActiveXAppletViewer[oracle.forms.engine.Main,0,0,914x613,layout=java.awt.BorderLayout]
Sending events to applet. STOP
Sending events to applet. DESTROY
Sending events to applet. DISPOSE
Sending events to applet. QUIT
Finding information...
Releasing classloader: sun.plugin.ClassLoaderInfo@d9850, refcount=0
Caching classloader: sun.plugin.ClassLoaderInfo@d9850
Current classloader cache size: 1
Done...
Registered modality listener
Referencing classloader: sun.plugin.ClassLoaderInfo@d9850, refcount=1
Added trace listener: sun.plugin.ocx.ActiveXAppletViewer[oracle.forms.engine.Main,0,0,914x613,invalid,layout=java.awt.BorderLayout]
Sending events to applet. LOAD
Sending events to applet. INIT
Sending events to applet. START
Determine if the applet requests to install any HTML page
HTML Installation finished.
Opening http://appserver008/forms90/java/oracle/forms/engine/Main.class
Connecting http://appserver008/forms90/java/oracle/forms/engine/Main.class with no proxy
Opening http://appserver008/forms90/java/oracle/forms/engine/Main.class
Connecting http://appserver008/forms90/java/oracle/forms/engine/Main.class with no proxy
load: class oracle.forms.engine.Main not found.
java.lang.ClassNotFoundException: java.io.IOException: open HTTP connection failed.
at sun.applet.AppletClassLoader.getBytes(Unknown Source)
at sun.applet.AppletClassLoader.access$100(Unknown Source)
at sun.applet.AppletClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at sun.plugin.security.PluginClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadCode(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)You're a star, thanks.
In my haste I had cut too much out of my old formsweb.cfg file and not realised I'd done it.
Thanks Francois. -
Hi All
Has anyone ever imported java class in forms and then run those forms successfully on web ??????
Plz help ... its urgent ..... i m successfully running the forms after importing java code in client/server mode but unable to run on web.
I have set the wrapper.classpath in jserv.properties file of apache but the form is unable to locate the java class.
where to set the classpath then ????You have installer the JDK 1.2 (This software located in a Sun Microsystems Web Site), and you have a configure the your PATH:
PATH=%PATH%;< path your JDK installed >;
If you have Designer 6i installed in your machine, then your Enviromento Variable PATH = PATH=< path your JDK installed >;%PATH%;
After configure the PATH, you have a create another Enviroment Variable CLASSPATH with:
Example:
CLASSPATH=C:\oracle\designer\TOOLS\COMMON60\JAVA\IMPORTER.JAR;c:\jdk1.2.2;
Test your Forms 6i. -
Importing java class from forms 6i
Dear people
I want to import very simple java class from forms 6i, i went to programs then i choose import java classes, then it gives me error message PDE-UJ1001 failed to create the jvm.
please tell me how to solve the problem.
Yasser+... not a Java question. Post moved from the New To Java to the Forms forum.+
-
Overriding implementation class property using forms personalization
Hi,
Is it possible to set the implementation class property of a button using forms personalization ? Am looking to change the look and feel with out having to modify the Form itself.
Is this possible?
Thanks!questions to Personalization are best asked in the ebs-forum
General EBS Discussion
Maybe you are looking for
-
How can I see the icloud keychain information on my iphone?
I want to verify that that iphone has the keychain information stored from my mac.
-
IBooks error - "dictionary not available for this language"
I am using English on my iPad, and reading a book in English using iBooks. I know the dictionary used to work, but now it does not. I suspect it happened when the iBooks app was updated recently. Does anyone have a fix?
-
How can I play my ipad through my TEAC speaker
I have a 2/3 year old single TEAC speaker with no airplay functionality. How can I play my ipad through this speaker, preferably without wires Thanks
-
Cannot update BIOS, winflash.exe crashes
I downloaded the BIOS update tool to update to 1.19, but it crashes immediately when it launches winflash.exe. I am plugged into the AC adapter and have a full battery. I'm on an x220 running Windows 7 Professional x64. Any help you have would be muc
-
How do I authenticate Update Notices?
A web acquaintence who I will call Lew recently suffered a hijacking which required a reformat and reinstallation of Windows. He believes that the worm was delivered in the form of malware masquerading as an Adobe Reader update. Lew described th