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

Similar Messages

  • Deploy Icon Using  .Jar files?

    Hi !
    i have created the .jar file using following command..
    D:\myapp\icon> jar -cvf myappicon.jar *.gif
    then 'Copy' this myappicon.jar file to the D:\frs\forms90\java directory
    then i open formsweb.cfg and edit this as following..
    [myApp]
    …
    archive_jini=f90all_jini.jar,myAppIcons.jar
    imagebase=codebase
    Then i set icon name property some button to "save" and some button to "save.gif"
    Then i start the form by giving the following URL in the Browser
    http:\\mymachine.com:7778/forms90/f90servlet?config=myapp
    then the browser show this message
    java.lang.classNotFoundException:oracle.forms.engine.Main
    Now what i should do or what are the error or what i missed??
    Do i need to make changes in registry.dat file???
    How to define default.icons.iconpath in registry.dat file give example plz??
    Please guide me
    thanks
    Rana Adnan

    Rana,
    please - no duplicate questions. Please help to keep this forum clean.
    thanks
    Frank
    Ps.: I provided an answer in the first question I found with this topic.

  • Create a custom dock/application icon for .jar files built in eclipse

    I've spent the better part of the afternoon trying to figure out how to apply a custom icon to jar file that I created in eclipse. I am presently using eclipse v3.5 on Mac OS X 10.6.2 and have yet to find a way to change the java coffee cup logo in the document icon for my jar files created in eclipse. Is there some way I can call a specific Apple class in Eclipse to change the dock/application icon of my .jar file?
    I found this link that uses a class that seems to be specific to XCode to change the icon of the .jar file.
    What I mean by change the icon of the jar file, I mean change the icon used in the dock, and also the icon used when the "command+tab" switcher pops up. Presently, I have the black console icon with the text "exec" in the upperleft.
    If anyone has any good links on this topic or even better knows the code I need insert into my program I would be highly greatful.
    cheers
    -ipatch

    See http://www.centerkey.com/mac/java/

  • How do I deploy an external JAR file

    Hello,
    How do I deploy an external JAR file?
    I am grateful for every hint.

    Hi Manuel,
      If you read my blog mentioned in the beginning of the thread, you will note that such solution is not supported in our engine due to number of reasons.
      Please, read the blog and use application library shared among these two applications. You will achieve the same effect. Please note that the using application will need run and deploy-time dependencies to the shared library.
      You should not add files to any of the folders manually or manipulate engine's classpath in such situations.
    Best Regards,
    Georgi

  • IO Error while deploying application client jar file ???????

    Hi,
    In my .ear file, one application-client jar(which contains all helper classes which are used in whole application) file is there. While deploying .ear file, all ejb are getting deployed well, while deploying application client jar file(Global.jar file here) it is giving the following message:
    IO Error deploying Global.jar: D:\oracle9ias\oc4j_extended\j2ee\home\applications\trainiumear\Global.jar
    Here is application-client.xml of Global.jar file:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE application PUBLIC '-//Sun Microsystems, Inc.//DTD J2EE Application 1.2//EN' 'http://java.sun.com/j2ee/dtds/application-client_1_2.dtd'>
    <application-client>
    <display-name>TrainiumClientApp</display-name>
    <description>Application description</description>
    </application-client>
    My Environment: Oracle9iAS (9.0.3.0.0), Windows-NT
    Please let me know Why i am getting 'IO Error' , where i may done wrong ?
    Thanks in Advance
    Srinivas

    Srinivas,
    Before we continue, PLEASE tell me if you've looked through the available
    documentation, code samples, "how-to" documents, etc., for OC4J. It
    seems to me that you're mixing things up a bit. I use the "deploy"
    command to deploy my EARs, example (partial):
    java -jar admin.jar ormi://<host> admin <password> -deploy ...
    And my EAR file is not in the "application-deployments" directory
    when I issue that command.
    Perhaps you could also show me the contents of your "application.xml"
    file for this application you are having trouble with.
    But I repeat, please tell me if you have already looked at the
    available documents regarding OC4J!
    Thanks,
    Avi.

  • Forms - Icons without jar file

    Hi!
    I´m trying con configure my standalone weblogic (10.3.6), running in development mode,
    to find my forms 11 applications icons without use a jar file.
    So, at formsweb.cfg i changed imageBase to documentBase and at Registry.dat i set
    default.icons.iconpath=/img/ 
    default.icons.iconextension=gif 
    Now I´m trying to map /img/ to may local directory (/img/ -> C:\repo\img)
    I tried to change httpd.conf and didn´t work. When I access http://localhost:7001/img/myimage.gif, it returns 404.
    Alias /img/ "C:\repo\img\" 
    <Directory "C:\repo\img"> 
        AllowOverride None 
        Order allow,deny 
        Allow from all 
    </Directory> 
    Then, i tried to change forms.conf
    AliasMatch /img/(..*) "C:\repo\img\$1" 
    But No change at all.
    Does anyone know how to create a alias in weblogic in development mode?

    If you chose the "Development" install type you will not have OHS although you might have its config file (httpd.conf).  Further, creating an Alias in WLS is a little more painful than doing it in OHS.  My recommendation is that you keep it simple for testing.  You can use an existing Alias and extend it.  For example consider the Forms \java directory (e.g.
    C:\Oracle\Middleware\Oracle_FRHome1\forms\java)
    Simply add a sub-directory to it and store your images there.  In the form, simply reference the complete image name without a path.  For example:  myimage.jpg.  Then in the Registry.dat include the virtual path to the images.  So, here are the steps.
    1.  Create a sub-directory C:\Oracle\Middleware\Oracle_FRHome1\forms\java\images
    2.  Copy your images to this directory
    3.  In the form, refer to the images by name only.  If your images use a different extension from what is stored in Registry.dat, include the extension in the form.  If the extension is the same then ommit it.
    4.  In Registry.dat, set default.icons.iconpath=/forms/java/images/  (be sure to include the trailing slash)
    5.  On the client machine, close all open browsers and open the Java Control Panel.  Clear the jar cache ("Temporary Internet Files")
    Your done.  Because the form does not have a hard coded path to the images, you can easily move the forms to production without worrying about the need to change the code to handle the image location.
    Oh, one last thing.... If you are using a newer JRE version you will get a securty warning suggesting that there may be unsafe code being executed.  It will then ask if you want to Block or Don't Block.  This dialog is the result of retrieving your image from a source other than the applet jar.  You will need to select Don't Block in order for it to work correctly.  This is another reason why we (Oracle) recommend using signed jar files.
    Message was edited by: Michael Ferrante (Oracle)

  • Icons in JAR file did not appear on runing web form

    Hi
    I am testing web application built using Forms6i with path 9. I configured the form server to run as a servlet and I put all the icons used in the application in JAR file I name it ICONS.JAR, I put this file in \FORMS60\JAVA\ directory.
    I made the following configurations:
    In Apache listner configuration file httpd.conf :
    Alias /forms60java/ "D:\orant\forms60\java\/"
    In forms confuguration file formsweb.cfg:
    imageBase=CodeBase
    archive=icons.jar
    serverApp=Default
    in registry.dat file:
    default.icons.iconpath=
    default.icons.iconextension=gif
    In base HTML file:
    <PARAM NAME="imageBase" VALUE="%imageBase%">
    <PARAM NAME="serverApp" VALUE="%serverApp%">
    <PARAM NAME="CODEBASE" VALUE="/forms60java/"
    The forms are run with nao problem except that the icons do not appear. I see java console on the client machine, and I see that ICONS.JAR was downloaded and saved in jar cache.
    In Apache access log file I see that there is an attempt to load the icons from the path <server_name>/forms60java/icon_name.gif but not from the archived JAR file.
    What could be goes wrong or missing?

    Hi Amin,
    Maybe the icons.jar file doesn't contain the files (try opening it with WinZip or some other tool and verify the files are indeed there).
    Maybe some case sensitivity issues are at play?
    Or the GIF files are the wrong size so maybe you're only seeing the transparent upper left corner of alle the icons displayed on your iconic buttons or whatever.
    Just a couple of wild shots (cause it doesn't appear you're having errors - but check all your log files including error_log)
    Regards,
    Jesper

  • Storing Icons in JAR Files

    As per the optimization best practices for web deployed forms , Image Icons( which are GIF images) on the buttons can be placed in a JAR file so that it can be cached by the client side JVM . Can anybody help me out and tell me the steps of how to do it. Thanx in advance.

    Sorry, you're correct it does need to be on the "archive_jini=" as well!
    If your using rollover images, I found the best way to get these working was just to include them in the Rolloverbutton.jar file. I did this by loading the rolloverbutton project into JDeveloper, adding the icons into the project and re-deploying. There are some good notes at http://otn.oracle.com/formsupgrade to explain how to generate JPCs.
    If your using standard Forms Iconic buttons...
    Once your form has loaded, double click the Java Console Icon in the system tray, you should see lines that state;
    Loading http://<myserver>/forms90/java/f90all_jinit.jar
    Loading http://<myserver>/forms90/java/calendar.jar
    Loading http://<myserver>/forms90/java/rolloverbutton.jar
    Loading http://<myserver>/forms90/java/gs.jar
    If these are loading ok, in the Java console hit the 5 key. Then re-load the form so that images are reloaded and check for lines that state;
    "Loaded image" It should state "Loaded Image Jar:http://<myserver>/forms90/java/gs.jar!<image>.gif."
    If it gives a different URL, then the imagebase must be set incorrectly.

  • 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..

  • 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

  • Icons in .jar files...

    Hi ,
    I have configured successfully and see some icons on buttons. Next day , i took the .jar file , copied it in \java folder and i have configured appropriately the formsweb.cfg file - calling this .jar file among others- according to my system (where the icons are displayed as wanted)...
    But the icons are not appeared in the 'destination' computer.....
    What may be the problem....????
    Should i have to make an archive (jar file) in the 'destination' computer ... as i have done on my own...?????
    NOTE: both computers run on Windows XP , and Dev10g have been installed....The only difference is that the one has Oracle10gXE... whereas the other Oracle10gEE
    Many thanks,
    Simon

    Note that the filenames within the JAR are case sensitive. So, if the files in the JAR have lowercase names, make sure the property in Forms also uses a lowercase name. Also remove the extension (if any) from the icon property in Forms.
    If that's all ok and it still does not work, have a look at http://www.oracle.com/technology/products/forms/pdf/webicons.pdf. Looking at your question it seems you've done what the white paper says, but you never now what you might pick up from reading it (again).

  • Iconic (gif) jar files

    Just curious, how does forms know the name of the jar file in the codebase directory to search when loading icon (gifs). Or does it search every jar file in that directory?
    thx,
    r.b.

    > how does forms know the name of the jar file in the
    codebase directory to search when loading icon (gifs).
    You add the jar file to the archive_jini parameter. The gif in the jar file has a path. (If there's no path, then it's just /.) Your serverApp file (registry.dat) has the path where the icons reside.
    So if your registry.dat file has, say, /myicons as the path, then your jar file, called appicons.jar contains the icons in the path /myicons.
    You specify appicons.jar in the archive_jini parameter. That way it gets downloaded to the client.
    Now the client has the jar, which has the icons. And client has the path. Voila!
    > and what happens when it doesn't find a specific gif
    in the jar file?
    Don't do that. :)
    Seriously, I don't know what happens. I suspect the Form runs fine but there's no image where the icon should be.
    You may get an error in the java console, I'm not sure.
    Regards
    Robin Zimmermann
    Forms Product Management

  • Icons in Jar file on Web

    We have our application specific gif file in a jar file, and have placed this jar file in the virtual directory specified in our registry.dat file. The JInitiator console claims it finds the jar file and appears to be using other classes contained in the jar file but is NOT using the gifs we have included. If we unjar the gifs into the directory where the jar file resides the toolbar icons appear correctly.
    What are we doing wrong? Do we need to include the jar file location in our classpath? We are running this using 9iAS with appache as our application ser and JInit 1.1.8.10 and Headstart 6.5.
    We are running this on HP-UX B.11.00U and have managed to get the icons working under NT using appache/forms server configuration but not under unix with 9iAS. Any suggestions?

    Hi Michelle,
    when you included your gif files in the jar file, did you make sure that the gif files are not in a subdirectory. To check this open the file using winzip and see if all gif files are in the top level directory. If this is the case empty the jcache directory to make sure the jar file is indeed fetched after you changed the file.
    Also beware that the name of your button image property is case sensitive. So if you have the icon property set to MyButton the gif file should also be called MyButton.gif. This can be verified in the Java Console of the jinitiator by looking at the gif file that it tries to fetch for your iconic button.
    I hope this helps you a bit further.
    Kind Regards,
    Frank van der Borden
    Oracle Support Services
    Netherlands

  • Icon for Jar File?

    Is it possible to include an Icon in a Jar file
    that will be displayed for the jar file instead
    of a default Icon give to it by Windows 2000? If
    so, how is it done?
    Thanks

    no it's not possible as the JAR file does not know anything about the operating system. this is windows dependend. if you want a custom icon for one jar file, create a shortcut to the jar and adjust the icon of this shortcut.

  • Loading icons from jar file

    Hello,
    i am trying to load ALL imagefiles from my jar file. i do the following:
    Class clazz = Class.forName("com.xxx.IconSelectionDialog");
    String me = clazz.getName().replace(".", "/") + ".class";
    dirURL = clazz.getClassLoader().getResource(me);
    if (dirURL.getProtocol().equals("jar")) {
    String jarPath = dirURL.getPath().substring(6, dirURL.getPath().indexOf("!")); //strip out only the JAR file
    JarFile jar = new JarFile(jarPath );
    Enumeration<JarEntry> entries = jar.entries(); //gives ALL entries in jar
    while (entries.hasMoreElements()) {
    JarEntry nextEntry = entries.nextElement();
    String jarEntryName = nextEntry.getName();
    this works fine with my debug local jws installation. when i try to run it online starting i get an error:
    java.io.FileNotFoundException: xentis.jar (Das System kann die angegebene Datei nicht finden)
         at java.util.zip.ZipFile.open(Native Method)
         at java.util.zip.ZipFile.<init>(ZipFile.java:114)
         at java.util.jar.JarFile.<init>(JarFile.java:133)
         at java.util.jar.JarFile.<init>(JarFile.java:70)
    how can i load ALL icons from a jar (without knowing the filename) ?
    is there a generic way to iterate over all entries of a jarfile ?
    thank you
    michael

    Look at "Loading Images Using getResource" on this page
    http://java.sun.com/docs/books/tutorial/uiswing/components/icon.html
    It should provide some ideas.

Maybe you are looking for

  • Video Filter does not work.

    Hello. I have been using Final Cut Pro 4 for a while and it worked fine before. But recently, any function of Video Filter does not work. I apply them to the clip, but the image does not show any changes on Canvas. Is the software's problem? Thanks i

  • How to write a numeric value to a plc register using a radio button

    I'm want display a HOA (HAND/OFF/AUTO) on my screen. Lookout is connected to a Allen Bradley PLC. I am trying to write to a "N" register. I want to write a zero to open all (eg) N7:10 bits, writing a one (1) will close a contact N7:10/0 and writing a

  • Error While Creating Shopping Cart in Portal.

    Hi, Users are facing some issue while creating the shopping cart in Portal. This issue they are not facing every time.. Some times it is working fine and some times it is not. The Error which was logged in the Default trace file is as below: java.lan

  • Can't open a reader extended pdf in IE

    I have a form that was originally a word document and then converted to a pdf.  I used Acrobat X Pro to create form fields and then saved it as a reader extended pdf with enabled additional features.  I uploaded it to my web server and it opens fine

  • Crystal Report XI R2 export to PDF

    Hi All I am working on Crystal Reports XI R2 version. CASE1: The report is working fine when report is ran in Infoview.When the same report is exported to PDF version then lot of empty spaces is being added in between every page. Can any one let me k