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.

Similar Messages

  • 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

  • When to use JAR files

    We are having a discussion at work about the proper usage of jar files. I am fairly opinionated and need to get some good feedback on when jar files make sense.
    Network:
    We have a unix based network as well as a windows based network. We can share samba mounted drives and allow windows access to the class files on the unix network. Most of our internal webservers are on the unix platform.
    We use java in applications, servlets, and JSP's. We have also designed an electronic technical manual that will be deployed via internet and cd rom.
    My first contention that jar files are not needed in the Servlet environment. The class files are virtually local and file storage is not an issue.
    My second contention is that applications running on windows machines would have better performance from local jar files, but the benefits are outweighed by the need to rebuild and reinstall the jar files to ensure the applications behaved the same on both systems.
    My third contention is that the technical manual on cd is a very good candidate for use of jars. We have a limited amount of space to store the files on a cd. We would probably use the jars to serve the information to ensure the behavior of the manual is the same whether the application was access via the CD or the internet.
    What am I missing? Is my understanding of JAR files out of whack with reality?

    Jar files (and their siblings i.e. Wars, Ears) make a
    good unit of deployment. It is much easier to keep
    track of a few jars than a bunch or classes.We have classes which are used in several applications. Ie, A bean queries our bill of material. It is used in an engineering, a manufacturing and a planning application. It can also be used in a jsp. If that bean changes, we would have to deploy three new jar files. If we run from one directory structure, a simple compile fixes all three applications.
    With the samba mounts, we can get to the directory from windows and most flavors of unix.
    We actually have two directory structures. One for production and one for test. Developers usually have another copy stashed somewhere for development purposes.
    I don't know where you get better performance. The
    jar needs to be unzipped which can only slow
    performance. Rebuilding a jar is easy (get Ant) and
    reinstalling a jar is easier than installing a buch of
    class files and resources (see above.) In addition,
    you can seal jars which gives you some level of
    protection (though superficial) and you can set up the
    jar so that it knows the main class.For the most part, these are internal applications, so security is not the top priority. Jars would be nice as they should generate less network traffic due to their smaller size.
    A jar is really just a zip file with a special
    structure. This is really a question of whether you
    need compression. If you can't fit everything onto a
    single CD then compression can help. A plain old zip
    file would work just as well.The compression is the main reason for the techpub application using the jar files. Space on the CD is a concern. Also, for internet access, bandwidth is also a concern. IE, less bits to shove down the wire.
    Like I said before jars are a convienient way to keep
    things organized. You can send out a program in a
    single unit that has everything it needs to run.I have an aversion to anything which requires an install on the users box. This probably comes from working with a bunch of unix hacks that have our system tuned to the nth degree. Much easier to deploy to one central location. No worries about whether or not someone turned their machine off before the nightly push, who has admin rights, etc. Map to the drive and you are off and running. One big performance hit is running the jvm from a shared drive. The JVM should be installed locally.

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

  • Error while using .jar file instead of class file.

    Hello friends,
    I created a java class which are referred and called from other jsp\xml and java files. I compiled this java class and everything is working properly. However, I do not want to use class files but want to use jar files instead. So, I created a jar file of this class file by using the command "jar -cvf jarfilename.jar".I kept the jar file in its respective folder .Also, I removed the class file from its path, just to see that the jar file will work automatically.
    Unfortunately, I am getting an error:
    java.lang.RuntimeException: Component.createComponent(...) Component class not found: <java class path>. I also tried giving the path of this jar file in the classpath. This also does not seem working.
    How to solve this problem?
    Thanks,
    Ranjith M.V
    Edited by: RanjithM.V on May 11, 2008 10:34 PM

    You probably populated the jar file incorrectly.
    A common mistake is to include the path that you had on the classpath, in the jar file.
    So a person will have a classpath like this: /foo/
    And a class in a package bar, like this:
    package bar;So that other classes would include the file like this:
    import bar.TheClass;And the class file is on the filesystem like this:
    .../foo/bar/TheClass.classThen they'll create the jar file including the foo directory, so if they list the jar's contents, they'll see the above (/foo/bar/TheClass.class). But this is wrong. It should start off so that the jar entries start with the top-level package names (like /bar/TheClass.class).
    Maybe you've done that.

  • Help using jar file!

    Help using jar file!
    Hello
    I have created a jar file by using
    jar cvmf Manifest.txt myjar.jar 1.class Mydirectory
    In 1.java file :I have used
    JEditorPane editor;
    editor.setPage(getClass().getResource("/Mydirectory/default.htm"));
    If I am only giving myjar.jar file to the client without Mydirectory then also it is working fine by showing default.htm in JeditorPane.
    But my problem is I want to use
    Runtime.getRuntime().exec("cmd /c start IEXPLORE"+targetstr) ;
    targetstr will be the filename with path of the default.htm
    If I am giving myjar.jar file with Mydirectory to the client it is working but I don't want to give Mydirectory to the client .
    What should I do?
    Is there any solution for this?
    Using another jar file which will include mydirectory can solve this problem?
    Is there any othe concept in java so that I wll be able to hide Mydirectory from client?
    Please help.

    It seems like you could extract the .htm file from the jar, either with Runtime.exec or using the Jar API classes.

  • Using .jar files

    I was able to use .jar files in Java programs that I write on my computer. I could write a program that used an import statement to bring in classes contained in a .jar file.
    One day, I was trying to incorporate a jar file folder directly into my windows operating system by using the environmental variable called CLASSPATH. Unfortunately, I made the mistake of screwing up my PATH variable. I fixed my PATH variable back up by adding the directory to the bin folder inside of the Java folder as is described commonly by the documentation for installing the Java SE on windows computer.
    Since that day, I have not been able to use .jar files using an import statement. My computer is unable to find the .jar files even if I specify the exact directory. Even the IDE(netbeans) that I use is unable to find and use .jar files. I have found that I can open up .jar files and pull the contents that I need out of said .jar files, but I have a project that does not allow me to open up the .jar files and extract the needed classes.
    I have googled this problem so much that I have read hundreds of posts about .jar files, and I cant find anyone in a situation that is similar to mine. If I take my files to another computer with Java SE installed, then my source code can access the .jar files just fine. For some reason, my work computer seems to hate using .jar files. I have no idea what could be the problem. There is no information in the java documentation on troubleshooting with this problem, and the most confusing part is that it worked perfectly fine until That one day
    Does anyone have any ideas?
    Specific technical details:
    I need to pull the Stopwatch.class file from a stdlib.jar file. In the past I had done this by using an import statement inside of my program:
    "import stdlib.Stopwatch; "
    Using this command to compile:
    "javac -cp .;(directory path to .jar file); source.java"
    This used to work. Now when using the javac command I get error messages
    1. Error points directly to import statement. Arrow directed at the period after stdlib.
    "cannot find symbol"
    2. Error message pointing to all instances of the class that I was attempting to import into my program.
    Thanks for reading
    Edited by: 955611 on Aug 28, 2012 7:22 PM

    I read your post. I want to compile this project by using the "-classpath" option in the javac command. After screwing up important system variables once, I do not want to continually have to play with system variable in order to compile projects. To quote from the website that you linked:
    Using the JDK tools' -classpath option
    The JDK tools java, jdb, javac, and javah have a -classpath option which replaces the path or paths specified by the CLASSPATH environment variable while the tool runs. This is the recommended option for changing class path settings, because each application can have the class path it needs without interfering with any other application.
    The runtime tool java has a -cp option, as well. This option is an abbreviation for -classpath.
    For very special cases, both java and javac have options that let you change the path they use to find their own class libraries. The vast majority of users will never to need to use those options, however.
    Clearly, the "-classpath" option in the javac is intended to replace the need to play with important system variables. I guess my post boils down to the question of "Why doesn't this command work for me?". I followed your suggestion by removing the bin directories and adding the stdlib.jar directory directly into the system variable itself. Here is the following output from my command prompt:
    Microsoft Windows XP [Version 5.1.2600]
    (C) Copyright 1985-2001 Microsoft Corp.
    C:\Documents and Settings\Lelo>E:
    E:\>cd Programs\Java
    E:\Programs\Java>javac testy.java
    testy.java:1: error: package stdlib does not exist
    import stdlib.Stopwatch;
    ^
    1 error
    E:\Programs\Java>echo %CLASSPATH%
    C:\Program Files\Java\jre6\lib\ext\QTJava.zip;E:\Programs\Java\stdlib.jar;
    E:\Programs\Java>javac -classpath .;E:\Programs\Java\stdlib.jar; testy.java
    testy.java:1: error: package stdlib does not exist
    import stdlib.Stopwatch;
    ^
    1 error
    E:\Programs\Java>
    I still received the same errors. It seems that even adding the directories into the system variable will not work for me.

  • Using JAR file in running application and POI !

    Hi all
    I am trying to use POI HSSF f(for the first time, So pls bear with me!)or creating excel file from my java Application. I am using the jar file :
    poi-2.0-RC2-20040102.jar. Not sure if its the correct one. So If I am wrong pls correct me.
    Now I am creating a bat file to compile my application:
    @echo off
    C:\jdk1.3.1_04\bin\javac -classpath C:\POI\poi-2.0-RC2-20040102.jar MyApp.java
    pauseIt compiles fine. Now If I try to use the jar file in run.bat for running my application, it says NoClassDef FoundError:MyApp. Here is my run.bat
    java -classpath C:\POI\poi-2.0-RC2-20040102.jar MyApp
    pauseI am not able to run my application with this run.bat file . If I change the content to:
    "java MyApp.java"
    It runs but give me error: NOClassDefFoundError:import org.apache.poi.hssf.usermodel.HSSFWorkbook
    Pls suggest me about how to use jar file in running my app and how to rresolve workbook finding problem.
    Reagrds

    Try this:
    java -classpath .;C:\POI\poi-2.0-RC2-20040102.jar MyApp
    pauseNote the "dot semi-colon" at the start of the CLASSPATH. That puts the current directory in the CLASSPATH, which is where MyApp.class lives. (No package, right?)
    See if that works better.

  • Performance issue if we use jar file instead of classes

    Hi,
    My application uses tomcat as web server.
    If i use calsses in webapps -> WEB-INF -> classes folder, i place classes in that ,
    In other case i use jar file and place that file in WEB-INF -> lib folder in the webapps directory.
    There is huge performance difference.
    While using classes performance is great while using jar file performance is very disappointed.
    I am using a file for encryption /decryption also.

    I can't really believe that classes vs jars makes a difference, but whatever.

  • How to use jar files without setting classpath

    Hi,
    I have a situvation, I can not set classpath, but i have to use jar files, how can I do that.

    URL[] urls = new URL[]{pathToJar, pathToAnotherJar, ...};
    URLClassLoader urlc = new URLClassLoader(urls);
    Now load classes within the jars loaded by the urlc classloader as needed. This is a limited approach, you can mostly use interfaces to work with classes loaded by the custom loader instance above and your existing classes.

  • Use jar file

    dear guys,
    can somebody tell me why would use jar file? how it would be use? i would like to get the idea of jar file
    thanks

    Are you familiar with zip files? A jar file is just a kind of zip (the jar utility will even read zip files as though they were jars).
    The most common use is to hold .class files generated from all the classes of a Java program so that you can run the program from that one file, rather than very large numbers of small class files. Libraries of classes are almost always stored as jars.
    Of course you can put other stuff in there too, like image files and the like.

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

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

Maybe you are looking for