How resource files(.rc) are implemented in java

I want to know how resource files are implemented in java. I am using a window98 as OS.
Thank you
Abu_ramla

I wonder if this might help:
ResourceBundle rbd = ResourceBundle.getBundle("Filename");
to get a property out of the resourceBundle use:
String varname = (String) prb.getObject("propName");
As allways, check the API
Hope this helps
Elouiza

Similar Messages

  • How Keyboard & Mouse Events are handled in java?

    Hi
    How Keyboard & Mouse Events are handled in java?
    Kindly brief, how a key typed in the keyboard is sensed and it is entered in JTextField?
    or
    Pls. give me some links.
    Am going to send the events from external device (like keyboard) to OS and from that I need to capture that event in Java Swing?
    Pls. drop in a bit. So that it will be helpfull to me.
    Thanks in advance,
    bee

    Actualy am very much aware of using KeyListener and MouseListener. I am in need of internal details,
    how typing a key in keyboard is captured by KeyListener? How the event is passed to java swing and and it is fired to keylistener.
    Pls. help me.
    Thanks
    bee

  • How get files that are in Windows directory from a job is running in AS400

    Hi Experts,
    Please help me with this, I have a background job that call FTP_CONNECT for connect to a FTP directory, when i run manually the program this works very good; but when is runing like job it isn't works; SAP is in AS400 and the FTP directory is in Windows, also i tried use the CL_GUI_FRONTEND_SERVICES for access to the directory but it isn't works like job.
    The big question is How i can get files that are in the Windows directory from a job that is running in AS400.
    Is anyone can help me? Thanks for your kindly support in advance.
    Best Regards,
    Darwin Panchi

    It's impossible to access Windows directories running through job. To do this, the files must be transfered to Unix.
    Not true.  You can mount a Windows server folder location in the SAP AS400 directory landscape and access it from SAP programs in the foreground or the background.  You can also hit a Windows client or server location with FTP as well. 
    For Darwin, if the Windows location belongs to your domain, have your Basis team map it to your SAP app server folder landscape so you can access it directly or as Este suggested, try the background destination SAPFTPA for the FTP approach.

  • How is the upload/download file content area implemented

    Hello all,
    I have read that one content area4s purpose is to allow users to store documents. How is it implemented? I mean,
    How can a user upload/download doc to a specific folder? Should this functionality be implemented by us or does
    Oracle Portal provide any mechanism for doing this?
    Thansk a lot

    Beatriz,
    You can specify privileges on the folder based on users/groups. I am not sure I understand "I need to restrict its access just only to add element-"
    Are you trying to ensure that people can upload docs, but not make any style changes ? Right now, if you can add a document
    , then you can also delete it.
    Also, I have listed a few links below that you might find helpful.
    http://portalstudio.oracle.com/servlet/page?_pageid=832&_dad=ops&_schema=OPSTUDIO
    http://www.amazon.com/exec/obidos/ASIN/0072222492/qid=1023990826/sr=8-3/ref=sr_8_3/002-0139635-0918453
    http://www.amazon.com/exec/obidos/ASIN/0130600377/qid=1023990826/sr=8-2/ref=sr_8_2/002-0139635-0918453
    hth
    HEllo again,
    I have found that one way to do that upload is through 'add element' -->file item in the content area.
    We have a group-defined structure and I need to restrict its access just only to add element--> Is it possible?If so, how?
    What are the privileges I have to set to allow a user to add elements in a content area? At this moment we have:
    * In the content area access tab : user X-->Administer
    *iN THE page's content area, acces tab-->Manage
    If this userX connects and tries to edit the content area--> add element, the item list shows no value it4s in empty. What
    else steps should I follow.
    I would thank any idea

  • How to register own Transport implementation inside java

    Hi,
    My application is running on a shared host where I do not have admin rights.
    I have written my own implementation of the SMTP Transport.
    In order to be able to use it, it appears that I have to register it in
    $JAVA_HOME/jre/lib/javamail.providers
    with the line
    protocol=smtp_my; type=transport; class=com.my.app.mail.SMTPTransportMy; vendor=Me;
    this, is however not possible in all environments I want to run my app.
    Is there a way to do it inside java similar to the MailcapCommandMap approach?
    Any hints would be highly appreciated!
    Ralf
    https://www.privasphere.com/e.do?email=hauser(at)acm.org
    Just for reference how it is done there!
    MailcapCommandMap mc = (MailcapCommandMap) CommandMap
    .getDefaultCommandMap();
    mc .addMailcap("text/enriched;;x-java-content-handler=com.sun.mail.handlers.text_plain");
    //.addMailcap("text/*;;x-java-content-handler=com.sun.mail.handlers.text_plain");
    CommandMap.setDefaultCommandMap(mc);

    I don't understand what you mean by register a bean inside another bean.

  • How to break a line in resource files?

    I want to read a paragraph from a resource file and show them in Java JTextArea. But the text was shown in one line. How can I break the line?
    For example: This is the resource file:
    about=ABC \n DEFGHT
    I want to break the line after "ABC", but it doesn't work. The text read to Java application is:
    ABC DEFGHT
    They are in one line and the "\n" is lost?

    you can use ascii characters for space instead of using "\n"

  • How to add resource files to a new folder to a project in JDeveloper 11g

    Currently, new folder can only be created when creating an item within JDeveloper via setting the destination folder.
    I have some resource files that are binary files and created outside JDeveloper.
    How can I add those resource files to a specific folder under an existing project so that we can do versioning control on those files using SVN within JDeveloper?
    Or I have to manage the versioning control of those files outside JDeveloper?

    Go to project properties - >Project content - > resources and add the directory.

  • Language pack resource files in SharePoint 2010 and 2013

    Hi,
    We are translating the Language pack for SharePoint 2013 in Albanian language.
    Comparing to SharePoint 2010 resource files, there are less of them in SharePoint 2013 but they are bigger in size. Are they merged and in that case which of them are merged? Any other info relating to this issue would help
    me a lot.
    Thanks,

    Hi,
    Although the 2010 and 2013 are different versions, most of the files contain the same words. I just thought that maybe someone knows if and if yes, which of the files are joined together in 2013 since there are less files in 2013 but bigger in size. All
    this because that Albanian LP doesn't exist and we have to translate another LP. 
    If someone has had experience in translating Language Packs in SharePoint 2010 or 2013, any information would help me a lot.
    Thank you

  • How to read a Properties Resource File in KM with Web Dynpro Java

    Hello all,
    I would like to store a resource file in KM and have my web dynpro application read that file at runtime.  Is this possible?  Any examples of how to achieve this?
    I hoping to be able to modify this resource file in KM to easily change certain behaviors in my webdynpro application.

    Thanks Naga Raju Meesala.
    How come all these methods are deprecated...getEP5User
    Also, since I am building a weddynpro DC, what is the proper way to include these jar files as Used DCs?
    Now proceed in the same way with the variable PORTAL_HOME and add the following .jar files:
    u2022 \lib\prtapi.jar The portal runtime APIs
    u2022 \portalapps\com.sap.portal.usermanagement\lib\com.sap.security.api.ep5.jar The user management APIs of the Enterprise Portal 5.0 are deprecated, but still in use in SAP NetWeaver 04
    u2022 \portalapps\com.sap.netweaver.bc.rf\lib\bc.rf.framework_api.jar KM Repository Framework APIs
    u2022 \portalapps\com.sap.netweaver.bc.rf.service\lib\bc.rf.global.service.urlgenerator_api.jar Repository Framework Utility: URL Generator
    u2022 \portalapps\com.sap.netweaver.bc.sf\lib\bc.sf.framework_api.jar Repository Framework: Repository Services
    u2022 \portalapps\com.sap.netweaver.bc.util\lib\bc.util.public_api.jar Repository Framework Utilities

  • How to Get Resource value which are referred in code behind file using IResourceProvider

    Hi Everyone,
    Currently I'm working on moving the Resource file from "App_GlobalResources" to Database by using IResourceProvider. I created a CustomResourceProvider project using ResourceProviderFactory and able to get the resource values from DB which
    are used in aspx page.
    But i'm not able to get the values which are referring from code behind file.
    Ex: Label1.Text = Resources.Common.Car; // This is still coming from resx file.
    Can any one please let me know how to get the value from DB instead of resx file which are referred in cs file.
    Appreciate your help. 
    The below code uses the ResourceProviderFactory which calls this method and gets it from DB. Please let me know if you need any more info.
    public class DBResourceProviderFactory : ResourceProviderFactory
            public override IResourceProvider CreateGlobalResourceProvider(string classKey)
                return new DBResourceProvider(classKey);
            public override IResourceProvider CreateLocalResourceProvider(string virtualPath)
                 // we should always get a path from the runtime
                string classKey = virtualPath;
                if (!string.IsNullOrEmpty(virtualPath))
                    virtualPath = virtualPath.Remove(0, 1);
                    classKey = virtualPath.Remove(0, virtualPath.IndexOf('/') + 1);
                return new DBResourceProvider(classKey);
    Regards, Ravi Neelam.

    Hi Ravi Neelam.
    >>Currently I'm working on moving the Resource file from "App_GlobalResources" to Database by using IResourceProvider.
    Based on this message, your issue related to web application, questions related to Asp.Net should be posted in
    Asp.Net forum.
    Please reopen a new thread in that forum. You will get more efficient response.
    Regards,
    Kristin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How can I open help file (HTML or .chm) from Java Web Start (new to JAVA)

    Hi All,
    Im trying to open the help file of my application.
    When trying to access the help file from the GUI (pressing F1 for launching the help file), I'm geting the an error, something like:
    "Can't show help URL: jar:file:C:\Documents and Settings\%USER%\Application Data\Sun\Java\Deployment\javaws\cache\http\Dlocalhost\P7001\DMwebstart\RMjar-name!/com/resources/helpFiles/MyHelpFile.html"
    It seems that the file which is packed in a jar, was downloaded to the Java Web Start cache directory:
    C:\Documents and Settings\%USER%\Application Data\Sun\Java\Deployment\javaws\cache\http\Dlocalhost\P7001\DMwebstart
    The code which is activated when launching the help file is:
    try
                ResourceBundle resourceBundle = DoubleResourceBundle.getBundle("Resource", "ResourceImpl");
                RuntimeUtil.launchFile(new File(resourceBundle.getString("help.file")));
            } catch (IOException e)
                // TODO Auto-generated catch block
                e.printStackTrace();
            }where the property "help.file" is in some property file in the resource bundle named "Resource", and looks like this :
    help.file="com/trax/docs/help/global/MyHelpFile.html"
    The function "RuntimeUtil.launchFile" knows how to launch any file in its default application, and indeed it does launches the html, when giving it an absolute path to the file on my PC, as "C:\Helpfiles\MyHelpFile.html" as such:
    RuntimeUtil.launchFile("C:\Helpfiles\MyHelpFile.html");My question is :
    The application is going to be deployed on a Customer PC. How can I access the html file from the code, with a relative path and not its absolute path on the customer pc, which I can't know?
    I found these restrictions regarding web start:
    (copied from "http://rachel.sourceforge.net/"):
    *Rule 1: Java Archives only. No loose files.* All your resources have to be packaged in Java Archives (jar) if you want to have
    them delivered to the user's machine and kept up-to-date automatically by Java Web Start.
    *Rule 2: No file paths.* You can't use absolute or relative file paths to locate your
    jars holding your resources (e.g. <code>jar:file:///c:/java/jws/.cache/resources.jar</code>).
    Absolute file paths won't work because you never know where Java Web Start
    will put your jar on the user's machine. Relative file paths won't work because Java Web Start
    mangles the names of your jars (e.g. <code>venus.jar</code> becomes <code>RMvenus.jar</code>)
    and every JNLP client implementation has the right to mangle your names
    in a different way and you, therefore, can't predict the name with
    which your jar will be rechristend and end up on the user's machine in
    the application cache.Seems complex or impossible, to perform a simple task like opening a file.
    Please advise (I'm new to Java and Web Start).
    BTW, I'm working with IntelliJ IDEA 5.0.
    Thanks,
    Zedik.
    {font:Tahoma}{size:26pt}
    {size}{font}

    the follwing method i have used to open html file ...
    so to access html file i am shipping resources folder with jar file ..
    private void openHtmlPages(String pageName) {
         String cmd[] = new String[2];
         String browser = null;
         File file = null;
         if(System.getProperty("os.name").indexOf("Linux")>-1) {
              file = new File("/usr/bin/mozilla");
              if(!file.exists() ) {
              }else     {
                   browser = "mozilla";
         }else {
              browser = "<path of iexplore>";
         cmd[0] = browser;
         File files = new File("");
         String metaData = "/resources/Help/Files/"+pageName+".html"; // folder inside jar file
         java.net.URL url = this.getClass().getResource(metaData);
         String fileName = url.getFile();
         fileName = fileName.replaceAll("file:/","");
         fileName = fileName.replaceAll("%2520"," ");
         fileName = fileName.replaceAll("%20"," ");
         fileName = fileName.replaceAll("jarfilename.jar!"," ").trim();
         cmd[1] = fileName;     
         try{
              Process p = Runtime.getRuntime().exec(cmd);
         }catch(java.io.IOException io){
                   //Ignore
    can anyone give me the solution..???
    Regards
    Ganesan S

  • Applet question, how to download resource files from server

    hi,
    i am new at applet world.
    i have an applet that reads some resource, data and configuration files. so i need to download these files from server to client. i did some resarch and could not find how to download files from server in an applet application.
    how can i do this task?
    thank you for your answers.

    You may want to distinguish between 'resources' and data/configuration files.
    'Resources' are non-class files that are part of your application, i.e without them the application would simply not work, just like class files.
    Those are typically images, sounds or resource bundles (GUI elements translated to different languages) that nobody except you, the developer, would touch (when releasing an upgrade or a patch).
    Those should just go into the applet jar or additional jars named in the applet tag.
    Data/configuration files, that may be changed by others than the developers, should be made available through HTTP, just like the applet jar itself. The applet will have (read) access to them using java.net.URLConnection.

  • How to read the java class file to convert it in java.

    hello all,
    i m developing the java application which generated the java code from the java 'class file' .
    Can anybody please help me, Is any java support for reading the class file? or how to know the class file format?
    I know the application javad, jad, javap which is doing the same thing.
    thanks for reply,
    - Jayd

    do you mean decompiling? there are tons of java decompilers available out there, what exactly are you trying to do here?

  • How to fix: "Unable to find Adobe PDF resource files?"

    Acrobat 10 Pro: When creating PDF file, I get the message "Unable to find Adobe PDF resource files".  How do I fix this?

    Usually Acrobat is looking for the settings files as I recall. The problem is typically that they are located in a folder to which you as a user do not have access. You can open Distiller and see if you have access to the settings files there. You may either need to set the access to the folder where the files are located, or copy them to a new location and activate them in Distiller. Then go to the printer properties and select your default settings. At least this is what I would try.

  • How to raplace resource files in jar file by other files?

    Can I replace resource files (ex: some jpeg file which is in the jar file) when midlet execute on the phone. Is it possible?
    Usualy, we use getResourceAsStream(filename) to get resource data as stream.
    Is there some API function like 'setResource(filenmae,stream)' ??
    Assume that I have a javaME application which displays some image in the jar file.
    It is different from general image viewr program because it can display only
    image file in the jar file (it means image file is resource file of java applcation).
    In other words, when application executes, It shows always same image at first.
    but I want that user can change image displayed if user wnat to do. I want to embed
    authoring function into application. So user can replace resource file by other image files on the phone.
    How to do that?

    I already told you, you CAN'T replace resources in a jar file.
    [http://forums.sun.com/thread.jspa?threadID=5334325]
    Look into using rms to save content on a mobile device.
    Now do you have anything else you want to ask?
    db
    edit And it's also rude to repost the question here without posting a response on the other topic you started.
    Edited by: Darryl.Burke

Maybe you are looking for

  • Help please with SWFObject2

    Hi, posted this also in Flash Design forum with no replies. Sorry if this too long. I'm fairly new to Flash. Hope someone can help. After days of reading, I understand, I think, the 3 steps of SWFObject 2; know where to put the swf script in the swf

  • CS5 photoshop proof table naming display

    in CS5 photoshop, any customized and saved Prooftable no longer displays the proof table name in the file header when said proof table is active... NOW only the Profile used within the proof table is displayed. Where we work we have a variety of proo

  • Pricing procedure - profit margin not coming

    Hi SD experts, I have some problem with my pricing procedure The u201CProfit Marginu201D is not getting displayed /calculated in my sale order, please note that I have maintained Calculation type as u201C11u201D for Profit margin, in my pricing proce

  • Time Machine taking over my external HD

    Is there a way to stop Time Machine from taking over my external HD? I have a 1T for video and photos and previously used Retrospect for the backups. It doesn't do it automatically with the iMac Intel Processor (older version of Retrospect) so I thou

  • Search for contracts with "ship to party"

    Hi, I am trying to search for contracts with a ship to party. We had a number of contracts input to SAP under one sold to party, now i I am trying to match sites to the contracts. I cannot seem to get a function to be able to search for them with jus