Attaching .jar file to Forms

First of all, I would like to extend many thanks to those who solve so many problems for many of us on this forum with your wisdom. Maybe some day I will learn enough to return these many favors. My problem, is it possible (and how is it done) to call a .jar file from within Forms? Any help would be greatly appreciated. Thanks again.

you don't call a jar file you call a class in a jar file.
It depends on where you want the java to run.
If you want to use java to enhance the forms UI then you need to change the HTML that invokes your form on the web to include the jar file with the new component you created.
If you want to invoke Java on the server side then you should add the jar to the classpath on the server and use the java importer to wrap the class you want to activate.

Similar Messages

  • How can i attach a file in Form 10g

    Hi all
    I have searched in otn about attaching a file in forms but no proper solution i got.
    Actually I want to attach a file in Forms 10G . How can I do that anyone can help me??
    Thanks

    Which one of the various solutions did you try, and what error did you get?
    http://www.google.com/search?q=send+email+attachment+oracle
    Note that when sending mails from the database the email attachment file needs to reside on the filesystem of the database (or any location the database server has access to).
    Did you configure your mailserver properly? Or do you want to send a E-Mail via a Mailprogram from the client? And last but not least: what database version on which platform do you use? Questions over questions...
    cheers

  • Add jar file to forms application standard java library

    Overall Problem
    I created a jar file using JDeveloper to be loaded as a bean in forms builder. But the jar file ended up being really large because I had to add some standard libraries that JDeveloper knew about but Forms didn't to this jar file, it takes forever to load in my forms application.
    Background
    Jdeveloper has a drop down list of standard libraries that aren't commonly used that a developer can have included/referenced into their java project.
    Oracle Forms Library
    One of the standard libraries in JDeveloper that can be referenced when compiling a project is the Oracle Forms library. I have to reference this library in my compilation of my java project in JDeveloper because some of the java code in this project requires the Oracle Forms library. When the jar file is created in JDeveloper the Oracle Forms Library isn't actuaally physically located anywhere in the jar file that is produced for deployment. But the jar file runs perfectly in my forms application. Forms builder and the forms application server seems to already know about the Oracle Forms library.
    Java Media Framework Library
    There is another standard library listed in JDevelopers drop down list that I recently chose to use in my Java Application, the Java Media Framework library. But my forms application couldn't find any of the Java Media Framework classes when it launched the jar file that was deployed from JDeveloper. Obviously the classes wern't physically located in the jar file I created, because I figured that the forms application server/forms builder would already know about about this standard library that JDeveloper knew about.
    Not very effective Solution
    So I physically put/included the whole Java Media Framework Library into my jar file and then my form launched fine. But it now takes forever to load. How can I add the Java Media Frame work library jar files as one of the standard libraries that the forms builder and application server already sees (Like the Oracle Forms Library) without having to put the library in the forms/java folder and wait for the this jar file to download to the user's cache?
    Side note: The Java Media Framework Library is allowing the ability to launch video from my form. Very useful tool!!! So it would be good if forms had this already added as a standard library like it is in JDeveloper. But I only see the ability to reference this library in DS 10gR2 for JDeveloper.
    Thanks,
    Michelle

    Yes I have successfully been able to run a javabean application that uses the Java Media Framework methods within a forms module. The video seems to play and interact normally in the forms environment (launched from a DS or the AS).
    Basic Requirements
    Develop the java application functionality look and feel, including adding funtionality calls to the JMF library where needed.
    Develop an Oracle Forms Interface wrapper that will be the initial class called from the bean area, to hande any communication between the bean and the form.
    Configure the deployment of the jar to physically include all the needed classes from the JMF library.
    Sign the jar file and make sure it is placed in the forms/java folder and referenced in the appropriate forms configuration files.
    Depending on the type of video that the will be played certain .dll files might need to be added to the users system folder. Using H264 (.mov) should work fine without any extra .dlls.
    Thanks,
    Michelle
    Message was edited by:
    mpoore

  • Deploying icons as jar file in Forms 9i

    We (Cancer Research UK) don't quite understand what is happening -
    We followed the guidelines in the white paper "Oracle 9IAs Forms Services - How to Deploy Icons"
    to deploy the images in a jar file:
    Altered the formsweb.cfg file to contain
    archive_jini=f90_jinit.jar, our_images.jar
    imagebase=codebase
    Seemed to work, jar file downloaded to browser (IE 6 ) ok , web deployed form shows toolbar icons, great..
    However, when we removed an existing entry in orion-web.xml which maps our application/icon directory
    or remove the *.gif files from this directory, our web deployed form no longer shows the icon images.
    Does it still need these to be present on the server, if we direct it to use cached images ?
    We are test running just the Application server components installed with the IDs 9.0.2 on a Windows 2000 server.

    Hi Steve,
    I have the exact same problem. The jar is downloaded and everything is 100% best practises, but there is no way I can make the damn system use the files in the JAR file. No matter if imagebase=codebase: it will only use files on the server, and if I remove the gif files they don't show up.
    I think there must be a glitch in the system somewhere. I don't completely understand this part of it: the codebase is mapped to /forms90/java - but how does that add up when you put your files in c:\my_gifs (as detailed in Best Practices section of the Deploying Icons paper). How does the server know where to look when codebase are two different places - I'm thinking it can't for some reason.
    My Apache/Apache/logs/error_log clearly states that files (real files) are not found in c:\my_gifs if I remove them from the file system. The JAR is downloaded, but the server doesn't use it.
    However, most people have all their gif files in the same folder as their images.jar file, so they don't ever discover that the server ignores the jar and uses the files instead.
    Regards,
    Jesper Vad Kristensen
    Aarhus, Denmark

  • Unsigned jacob.jar file causing forms loading slow

    Dear All,
    Oracle version : 10.1.2.0.2
    OS: Windows 2003
    Client IE version : IE 8
    JRE version : JRE 1.6 update 21
    JRE security setting : Mixed code (sandboxed vs. trusted) security verification - Disabled
    We are getting the unsigned jar file error for jacob.jar, but it is running fine in many other places and giving unsigned jar file error for other jar files.
    Loaded image: jar:http://192.168.100.88:7778/forms/java/frmall.jar!/oracle/forms/icons/frame.gif
    Trace level set to 5: all ... completed.
    cache: Reading Signers from 0 http://192.168.100.88:7778/forms/java/jacob.jar | C:\Users\samm.AGS-STORE-005\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\48\dc408b0-3aabe349.idx
    network: No certificate info for unsigned JAR file: http://192.168.100.88:7778/forms/java/jacob.jar
    network: No certificate info for unsigned JAR file: http://192.168.100.88:7778/forms/java/jacob.jar
    network: Connecting http://192.168.100.88:7778/forms/lservlet;jsessionid=c0a8645830d6885b096494a44406bb10e869f532355e.e38LbhmPbxyKci0La3qPa3iNa38Re6fznA5Pp7ftolbGmkTy with proxy=DIRECT
    I have seen sites to sign the jar files, but is it possible to overcome this error without signing. Since this error is taking 10-20 secs more to load the form.
    Please help.
    Thanks and Regards,
    Anand.

    HI,
    You need to sign both frmwebutil.jar and jacob.jar first the clear JAR cache ion end-user computer,so that new signed JAR files are downloaded to end-user machines..

  • Attaching help file to forms 6i

    hi, how can we attach help file to d2k forms. can we pop a particular content int hat file when the user presses F1 key.
    thankz in advance
    sanki

    There are different ways:
    1) To use .hlp files (Win help).
    host('c:\winnt\help\Regedit.hlp',no_screen);
    2). To use .chm (robo help).
    host('hh c:\winnt\help\iexplore.chm');
    3). To use .HLP with win_api_shell.winhelp.
    win_api_shell.winhelp('c:\winnt\system32\Odbcjet.hlp', '', win_api.help_finder);
    In order to use win_api_shell.winhelp procedure, you need to attach the D2KWUTIL.PLL to your form.

  • Attach a file with forms (developer suite 10g)

    Hi, can some one help me with these problem, i wants to attach a file , i wants to know how to doit with Developer Suite 10g
    Thanks

    you understand meNot really.
    attach a file to a specific profile of a client in the application that we develop What exactly do you mean with "specific profile"? Is that a feature of your application? Or are developing custom forms in the eBusiness-suite?

  • Attach jar files

    I want to use JDBC in a project and I need to import two jar files.
    import oracle.jdbc.pool.OracleDataSource;
    import oracle.jdbc.*;
    In the help section I can't find out how to attach the location of these two files in my project.
    WBR

    go to project properties->libraries and add the "Oracle JDBC" library to your project.

  • How to call a jar file from oracle forms (6i)

    Hi,
    I'm working with oracle 6i. I want to know that how to call a .jar file from forms menu. when I use HOST('<path>\test.jar') it is working in 'Client Server' any way. but the problem is I use application server in order to run my form. so my form is in the server and I run the form via clients web browser. in that case above solution will not work. if any body knows how to overcome this problem please reply.
    thanks.
    duminda

    I created a bean area and set the class name as implementation class. within that java bean class I called to a bat file which consists of the execution command of the jar file ( because i don't know how to call .jar file from my bean class directly).
    then i tried to run it in application server. its still not running.
    can you tell me what i have to do within my bean class? or can you suggest any solution?
    thank you.

  • Forms 9.2  jar file with 9.04 forms

    hi .
    can we use forms 9 i jar file in forms 10g(9.04 )

    Hello,
    Could you, please, be more precise in your question.
    Francois

  • How can  I access my java class file in a .jar file ...PLz Help anyone!!

    Hi Folks,
    I am new in Java programming, have a .jar file that contains .java files that I want no access and use from another .java file. These files in the .jar file basically form a library thus have no main-method. However I can not declare an instance of the library (in the .jar file) and use it within my program.
    Plz help ...I have tried all I know in vain.
    Thanks.

    temba wrote:
    Hi Folks,
    I am new in Java programming, have a .jar file that contains .java files that I want no access and use from another .java file. These files in the .jar file basically form a library thus have no main-method. However I can not declare an instance of the library (in the .jar file) and use it within my program. You are making little sense. You can't instantiate .java files.
    Plz help ...I have tried all I know in vain.
    Thanks.Could you post WHAT you have tried and also post what error messages you received?

  • Error while using FJTable.jar & SwingButton.jar files in a same form

    Hi Experts,
    I am using forms 10.1.2 with Java Plug-in 1.6.0_02
    I have downloaded FJTable.jar & SwingButton.jar files from http://forms.pjc.bean.over-blog.com site. When I am using both files in one form, it shows error :
    java.lang.SecurityException: class "oracle.forms.fd.SwingButton"'s signer information does not match signer information of other classes in the same packageā€
    If anybody has any idea about this please help me
    Thanks
    Kalpesh

    Hello,
    You cannot run one form that contains more than one Beans that have not the same signature.
    Sign both the JAR files and everything is going to be OK ;D
    Francois

  • Unable to submit form without attachment if file upload fails

    Hi All,
    I have a form, in which I have a input file component.
    Scenario 1 - If i don't attach anything and submit the form, it is successful.
    Scenario 2 - If I attach a file of size less than 2 MB and then submit, it is successful.
    Scenario 3 - If I attach a file of size greater than 2 MB and then submit, ADF gives an error message saying " File is large" which is expected.
    3.1 - In the scenario 3, after file upload fails, I want to submit the form without attaching any file. But the form isn't submitted and the warning message always pops up.
    3.2 - If I upload file of size less than 2MB again and then submit, it is successful.
    Please help me in resolving the issue.
    Thanks,
    Harini.

    Try clearing the error messages
    <af:resource type="javascript">
    function clearMessagesForComponent(evt){
    AdfPage.PAGE.clearAllMessages();
    evt.cancel();
    </af:resource>Now all yo uneed to do is to call this javascript method e.g. using a <af:clientListener method="clearMessagesForComponent" type="focus"/>on a button or any other field.
    Timo

  • URGENT ! Forms (jar file vs directory and classes)

    Hi,
    Our java developper has made an applet that we have to integrate with Forms.
    I said that I need a jar file that I will put in the forms90/java directory.
    The java developper want's to deploy instead of a jar file the whole directory and sub directory and all classes under the forms90/java.
    My question is, are both deployement giving the same result in term of performance on the client side when downloading the classes or the jar file.
    I always tought that jar file was better in performance.
    What is the best way to deploy our applet?
    Thanks for quick answer.
    Jean-Yves

    If you choose jar file client JVM will probably cache your jar. This will increase speed of application loading.
    Another benefit is that when you use jar file there is lazy/on demand loading option available (in my experience on demand loading doesn't work out of the box - jar file and all referenced jar files must be indexed). In other words: users that don't use forms that use your applet will not download that jar file (I have used this for FormsGraph example and some custom java application) and they don't have to download all of the jars your jar file references.

  • Can I create a fillable PDF that allows the user to attach a file to the submitted form?

    There are suggestions in the Help documentation and on this site that indicate it is possible to attach files to a fillable PDF form that is being submitted. But I do not see any instructions for adding this functionality to a form. I am using Acrobat 9 Pro to create my form. I have a Submit button with an Action/Menu Item/Submit a form option, and the URL link for the submission is a local coldfusion file with a #FDF suffix. The export format is HTML. The form also contains a hidden EMAILTO field, with an Options/DefaultValue option identifying the recipient's email address. (I'm guessing the local cfm file uses this field.) There is also a hidden URL field in the form, and its Options/DefaultValue specifies the URL of the fillable form itself. (Perhaps the local cfm file uses this field too.)
    How can I add functionality to this form, using Adobe/PDF, to allow the user who submits the form to attach a file to the submission?

    You have to first configure a text field so it can be used for file selection. You do this on the Options tab of the field properties dialog. In order to select the corresponding check box, make sure only the "Scroll long text" option is selected.
    You then can set up a button that has the following JavaScript attached to the Mouse Up event:
    // Mouse Up script for button
    getField("upload_text_field").browseForFileToSubmit();
    Replace "upload_text_field" with the actual name of the file selection text field.

Maybe you are looking for

  • Service Requests not resolving

    Good Morning TechNet Experts, I have been having an issue with service requests and I'm one week away from deployment. Basically, I had no need for a "Review" activity, we implement service requests the same way we implement incidents. An analyst ope

  • IPod classic won't connect to iTunes after erase in disk utility

    I think my hard drive is failing on my 120gb classic and so I decided to wipe it and start from scratch. Admittedly I rushed into the process and wiped it in disk utility without doing much research. Now it doesn't show up in iTunes but it is showing

  • File / Folder size... How do Finder gets it?

    Hi there! While checking some of my hardrives for sucessfull shell script execution backups, i noticed that Finder took a loooot of time to provide the info about the Folder / File size on the Information window, while a simple ls -l could provide on

  • Problem with a method

    I have a problem with the getRGB(int x, int y) method of the BufferedImage class : I've load an image in it : 1:// b is my bufferedimage clas and myimage is an image 2:b.getGraphics().drawImage(myimage, 0, 0, this); 3:// g is the graphics object of m

  • HASH MISMATCH. Yes, I know there are 100 threads about this!

    Hello, Well, as I read on the forums, this problem seems to be common, and it doesn't have a clear solution. So, I don't care if they say they don't know. There IS a big problem, and they are not giving very helpful answers. Recently I was feeling no