How to know the dir where my jar program is stored

I write a swing editor text files.
I make the jar of my program: Editor.jar
Then with jsmooth (open source java wrapper) i make the exe: Editor.exe.
The user can put the exe anywhere in a folder and use it, example:
User have a text file on desktop and want to open it:
User make a double click on file.txt --> Microsoft Windows Xp open my program and load the file.
All work correctly but there is one problem.
My program Editor.exe when is close make a Editor.properties file. I would like this file to be created in the same dir where Editor.exe is stored.
I don't know how to do this thing. I write this code:
public static void save(Properties propertiesFile) {     URL jarURL = (PropertiesFile.class.getClassLoader().getResource("."));          FileOutputStream out;     System.out.println("dir \n" + jarURL.getFile());          File f = new File(jarURL.getFile()+"Editor.settings");     try {          out = new FileOutputStream(f);                    propertiesFile.store(out, "Program settings");          out.close();     } catch (IOException ioe) {          ioe.printStackTrace();     }}
This code is wrong because jarURL.getFile() is the directory where file.txt is stored but i want the dir where Editor.exe is stored.
I try with this line of code:
URL location = getClass().getProtectionDomain().getCodeSource().getLocation();
i get this dir:
/C:/Documents%20and%20Settings/Andrew/Settings%20local/Temp/temp10
.jar
This is a correct dir, because the program is stored ind dir
c:\program files\editor\Editor.exe
Anybody can help me?
THX

try below...
public java.net.URL getResource(String strName)throws java.net.MalformedURLException
            String baseURL = getClass().getResource("/resources").getFile(); // ("/resources" ):- is a file /dir stored in in jar
            try{
                    baseURL = java.net.URLDecoder.decode(baseURL,"UTF-8");
            }catch(Exception e){}
            if(baseURL.startsWith("file:"))
                    baseURL = baseURL.substring(baseURL.indexOf(":")+1);
            java.io.File fBase = new java.io.File(baseURL);                    // Original URL Ref. To Jar Archive
            java.io.File jarFile = fBase.getParentFile();                    // Jar File Reference
            java.io.File rootDir = jarFile.getParentFile();                    // Root Directory which Contains Jar File
            java.io.File fileApp = new java.io.File(rootDir,strName);               // Requested File/Directory     
            if(fileApp.exists())
                return fileApp.toURL();
            else
                return null;
    }Timir

Similar Messages

  • How to know the point where one menu popUp is showed ?

    hi,
    I need know the point where one popUp menu is showed, but I have problems to do it....
    I can install actionListener for method actionPerformed of class AbstractAction but the event I get does not able to say the point...
    In the documentation, I read it is possible install a listener for the mouse and select the popUpMenu with the condition
    "if (e.isPopupTrigger())"
    but it is not confortable to do it and in that case it is not easy too to manage the choice for the item selected...
    Some advice please ?
    I write down the code I use...
    thank you to have one answer..
    regards tonyMrsangelo
    import java.awt.AWTEvent;
    import java.awt.event.*;
    import javax.swing.*;
    enum OpzPopMenu
    {NuovoAppuntamento, CancellaAppuntamento, SpostaAppuntamento};
    public class MenuPopUpTestOne {
        public static void main(String[] args) {
            MenuFrameXmenuTestOne frame = new MenuFrameXmenuTestOne();
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.setVisible(true);
    A frame with a sample menu bar.
    class MenuFrameXmenuTestOne extends JFrame {
        JPopupMenu popupMenu;
        public static final int DEFAULT_WIDTH = 300;
        public static final int DEFAULT_HEIGHT = 200;
        public MenuFrameXmenuTestOne() {  // costruttore
            setTitle("MenuTest");
            setSize(DEFAULT_WIDTH, DEFAULT_HEIGHT);
            popupMenu = new JPopupMenu();
            Action nuovo = new PopupMunuAction("nuovo");
            Action sposta = new PopupMunuAction("sposta");
            Action cancella = new PopupMunuAction("cancella");
            JPanel jp = new JPanel();
            add(jp);
            // item1
            JMenuItem item1 = new JMenuItem(OpzPopMenu.NuovoAppuntamento.toString());
            item1.addActionListener(nuovo);
            popupMenu.add(item1);
            // item2
            JMenuItem item2 = new JMenuItem(OpzPopMenu.SpostaAppuntamento.toString());
            item2.addActionListener(sposta);
            popupMenu.add(item2);
            //item3
            JMenuItem item3 = new JMenuItem(OpzPopMenu.CancellaAppuntamento.toString());
            item3.addActionListener(cancella);
            popupMenu.add(item3);
            jp.setComponentPopupMenu(popupMenu);
            enableEvents(AWTEvent.MOUSE_EVENT_MASK);
        // aggiungere il popupMenu FINE   -----------------
        } // costruttore
    * Serve per gestire il menu popUp
    class PopupMunuAction extends AbstractAction {
    //    String itemOne = "nuovo";
    //    String itemTwo = "cancella";
    //    String itemTree = "sposta";
        public PopupMunuAction(String nome) {
            super(nome);
        public void actionPerformed(ActionEvent e) {
            String command = e.getActionCommand();
            if (command.compareTo(OpzPopMenu.NuovoAppuntamento.toString()) == 0) {
                JOptionPane.showMessageDialog(null, "NUOVO  one");
            if (command.compareTo(OpzPopMenu.SpostaAppuntamento.toString()) == 0) {
                JOptionPane.showMessageDialog(null, "SPOSTA  one");
            if (command.compareTo(OpzPopMenu.CancellaAppuntamento.toString()) == 0) {
                JOptionPane.showMessageDialog(null, "CANCELLA  one");
    } // inner class PopupAction

    tonyMrsangelo wrote:
    I need know the point where one popUp menu is showed, but I have problems to do it....Do you mean where the JPanel was clicked, or where the pop up appears on the screen.
    If you mean where the panel was clicked, then it's as simple as adding this to your program:
            jp.addMouseListener(new MouseAdapter()
                @Override
                public void mousePressed(MouseEvent e)
                    if (e.getButton() == MouseEvent.BUTTON3) // if right clicked
                        // do whatever in here with the e.getX() and e.getY() results
                        System.out.println("[" + e.getX() + ", " + e.getY() + "]");                   
            });

  • How to know the run time of a program..?

    Hi Gurus,
    How to know the exact run time of a program....?
    Suppose i've a program....I've changed the code to improve the performance.
    Now i want to compare run time of older and new one...How to do this...?
    Pls help me ....
    Thanks and Regards,
    Nagarjuna

    Hi,
    go thru the below mentioned code............
    data:   start TYPE i,
              end TYPE i,
              dif TYPE i.
    GET RUN TIME FIELD start.
    SELECT SINGLE bukrs belnr gjahr blart budat
    FROM bkpf
    INTO (cc, doc, fy, doc_ty, pst_dt)
    WHERE bukrs = p_bukrs
    AND belnr = p_belnr
    AND gjahr = p_gjahr.
    GET RUN TIME FIELD end.
    dif = end - start.
    WRITE: /001 'Time for select',
    067 ':', dif, 'microseconds'.
    Reward all helpful answers.
    Thanks

  • How to know the tables used in a program?

    Hi,
    Please tell me, how to know all the tables that have been used in a program?

    Hello Vijay
    Have you had a look at fm RS_PROGRAM_TABLES already?
    See also tables from prog
    Regards
      Uwe

  • How to know the stage where a running report is? - in Reports 3.0

    Hi!
    Thanks for paying attention.
    I have a problem with running the reports. When I call a report from the forms using the built-in, RUN_PRODUCT, the report is running. The problem is, some times, it may take few min and some times more than 10 min and some times, it stops responding. So, how do I know at what stage the report is in.
    For ex, if the report is run in Reports Designer, it shows a screen with client and server activity. Can I get the same effect by using the RUN_PRODUCT built-in.
    Please help me or suggest me with some solution
    Thank you
    regards
    RHR PRASAD

    Hello rhr_pras
    this is quotation form Report 3.0 manual:
    Description PRINTJOB specifies whether the Print Job dialog box should be displayed before running a report.
    Syntax
    [PRINTJOB]YES
    Values
    YES or NO
    Default
    YES
    Usage Notes
    n When a report is run as a spawned process (i.e., one executable, such as R30RUN, is called from within another executable, such as R30DES), the Print Job dialog box will not appear, regardless of PRINTJOB.
    n When DESTYPE=MAIL, the Print Job dialog box will not appear, regardless of PRINTJOB.
    Also look for other parameters in paramlist for Run_Product (maybe BATCH) and maybe report mode (SYNCHR/ASYNCHR)
    Hope this helps

  • How to Know the changes made on a program and complete activity on it

    Hi abapers,
    I want to know who is working on a particular report currently and check the complete activity like changes made on the report.
    Is there any transaction to check this, please let me know
    Thanks in advance
    Bond

    Hi,
    See also this help on version management
    http://help.sap.com/saphelp_nw2004s/helpdata/en/57/38e0fb4eb711d182bf0000e829fbfe/frameset.htm
    Eddy
    PS.
    Did you (and your colleagues) put yourself on the SDN world map already? Pls check
    /people/eddy.declercq/blog/2006/06/14/from-the-grumpy-old-man-hoy-en-el-mundo
    for details.

  • How to know the complete root of my application

    Hi all i want if someone could help me how to know the root where my application is installed or is running, for example if i have two computers with two partitions each, and in one computer i put my application in the root c:\App1 and in the other computer i put the same application i the d:\AppEx\App1 i want to know the complete root because depending on it i will copy a file which is essential for my application, i wonder if someone could help me with that thanks a lot

    Hi all i want if someone could help me how to know
    the root where my application is installed or is
    running, for example if i have two computers with two
    partitions each, and in one computer i put my
    application in the root c:\App1 and in the other
    computer i put the same application i the
    d:\AppEx\App1 i want to know the complete root
    because depending on it i will copy a file which is
    essential for my application, i wonder if someone
    could help me with that thanks a lotYou almost certainly do NOT need to know this, if you design your app correctly.

  • How do you know the version of a JAR file ?

    how do you know the version of a JAR file ?
    is it what is written on MANIFEST.MF ?
    for example i have a JAR file
    whose MANIFEST.MF has this
    Manifest-Version: 1.0
    Created-By: Ant 1.4.1so, whats the version of this JAR ? 1.0 ?

    anyway, that was JSTL..jar.
    Now, come to another JAR file....
    whose MANIFEST.MF has......
    Manifest-Version: 1.0
    Created-By: Apache Ant 1.5.1
    Extension-Name: Struts Framework
    Specification-Title: Struts Framework
    Specification-Vendor: Apache Software Foundation
    Specification-Version: 1.1
    Implementation-Title: Struts Framework
    Implementation-Vendor: Apache Software Foundation
    Implementation-Vendor-Id: org.apache
    Implementation-Version: 1.1
    Class-Path:  commons-beanutils.jar commons-collections.jar commons-dig
    ester.jar commons-logging.jar commons-validator.jar jakarta-oro.jar s
    truts-legacy.jarso, How do you believe whats the version now ? do u go with the comment "Manifest-Version: 1.0" or "Specification-Version: 1.1" ?
    definitely, you would go with the "Specification-Version: 1.1" and declare this JAR as STRUTS 1.1
    hmmm, so, if nothing is mentioned like above should we follow the MANIFEST version as the JSTL version ? in my earlier example i did not find any comment on ""Specification-Version" ......so , if anybody gives me that JAR , how do i decide whether its 1.0 specification or 1.1 specifucation compliant ?
    can you tell whats the JSTL version of my earler example JAR file ?

  • How to know the dynamic values for this :AND category_id_query IN (1, :3, )

    Hi Team,
    R12 Instance :
    Oracle Installed Base Agent User Responsibility --> Item Instances -->
    Item Instance: Item Instances > View : Item Instance : xxxxx> Contracts : Item Instance : xxxxx> Service Contract: xxxxx>
    In the above page there are two table regions.
    Notes.
    -------------------------------------Table Region---------------------------
    Attachments
    -------------------------------------Table Region---------------------------
    --the attachments are shown using the query from the fnd_lobs and fnd_docs etc...
    I want to know what are the document types are displayed in this page ?
    --We developed a custom program to attach the attachments to the  services contracts and the above seeded OAF page displays those ..as needed.
    But after recent changes..the Attachments--> table region is not showing the attachments.
    I have verified the query..and could not find any clue in that..
    but i need some help if you guys can provide..
    SELECT *
    FROM
    *(SELECT d.DOCUMENT_ID,*
    d.DATATYPE_ID,
    d.DATATYPE_NAME,
    d.DESCRIPTION,
    DECODE(d.FILE_NAME, NULL,
    *(SELECT message_text*
    FROM fnd_new_messages
    WHERE message_name = 'FND_UNDEFINED'
    AND application_id = 0
    AND language_code  = userenv('LANG')
    *), d.FILE_NAME)FileName,*
    d.MEDIA_ID,
    d.CATEGORY_ID,
    d.DM_NODE,
    d.DM_FOLDER_PATH,
    d.DM_TYPE,
    d.DM_DOCUMENT_ID,
    d.DM_VERSION_NUMBER,
    ad.ATTACHED_DOCUMENT_ID,
    ad.ENTITY_NAME,
    ad.PK1_VALUE,
    ad.PK2_VALUE,
    ad.PK3_VALUE,
    ad.PK4_VALUE,
    ad.PK5_VALUE,
    d.usage_type,
    d.security_type,
    d.security_id,
    ad.category_id attachment_catgeory_id,
    ad.status,
    d.storage_type,
    d.image_type,
    d.START_DATE_ACTIVE,
    d.END_DATE_ACTIVE,
    d.REQUEST_ID,
    d.PROGRAM_APPLICATION_ID,
    d.PROGRAM_ID,
    d.category_description,
    d.publish_flag,
    DECODE(ad.category_id, NULL, d.category_id, ad.category_id) category_id_query,
    d.URL,
    d.TITLE
    FROM FND_DOCUMENTS_VL d,
    FND_ATTACHED_DOCUMENTS ad
    WHERE d.DOCUMENT_ID = ad.DOCUMENT_ID
    *) QRSLT*
    WHERE ((entity_name    ='OKC_K_HEADERS_V'-- :1
    AND pk1_value          IN ( 600144,599046) --:2
    AND category_id_query IN (1, :3, :4, :5, :6, :7) )
    AND datatype_id       IN (6,2,1,5)
    AND (SECURITY_TYPE     =4
    OR PUBLISH_FLAG        ='Y')))
    --='000180931' -- 'ADP118'
    The above seeded query is the one which is used for table region to retrieve the data..
    how to know the dynamic values for this : AND category_id_query IN (1, :3, :4, :5, :6, :7) )
    --Sridhar                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Hi Patricia,
    is it working for restricted key figure and calculated key figure ??
    Note Number Fisc Period Opening Days
    1 1 2
    2 1 3
    3 1 0
    because I have other restriction, so I create two restricted key figure..
    RK1  with restriction :  Total Number of Note,
    RK2  with restriction :  Total Opening Days ,
    then I Created a calculated key figure, average opening days in a period
    CK1 = RK2 / RK1..
    in this case, I am not sure if it will work or not..
    for example, during RK2 calclation, it might be this   2+3 = 5, the line with 0 will be ignored..
    during RK1 calcualtion, it might be 1 + 1 + 1 = 3. ---> Not sure in this case, the line with opening days 0 will be calculated or not..
    could you please confirm..

  • How can we know the return code of BDC Program ?

    Hi All,
    Please tell me : How can we know the return code of BDC Program when being exceuted in Session or in Transaction mode.
    In my program, we are uploading data from Excel sheet to SAP via BDC
    The records that are not updated we want to create a log file.
    Now to know whether a record is updated ot not, wat syst field shloud be used?
    Its urgent....
    <b>Reward Point will be there ....</b>
    Thanks,
    Harish

    Hi harish,
    try the logic in this code ...
    i had attached input file in the end.
    TYPES: begin of errmess,
            msgnr type t100-msgnr,
            text type t100-text,
           end of errmess.
    TABLES : t100.
    DATA: BEGIN OF DD_VA01,
           AUART TYPE VBAK-AUART,
           KUNNR TYPE RV45A-KUNNR,
           BSTKD TYPE VBKD-BSTKD,
           MABNR TYPE RV45A-MABNR,
           KWMENG(2) type C,
           KBETR(2) type C,
          END OF DD_VA01.
    DATA:IT_VA01     Like TABLE OF DD_VA01,
         WA_VA01     Like LINE  OF IT_VA01,
         WA_VA01_F   Like LINE  OF IT_VA01,
         IT_BDCDATA  TYPE TABLE OF BDCDATA,
         WA_BDCDATA  Like Line  OF IT_BDCDATA,
         W_FNAME     TYPE STRING,
         messtab like bdcmsgcoll occurs 0 with header line,
         it_errmess type table of errmess,
         wa_errmess like line of it_errmess,
         err_message type string.
    data: zf1 type i,
          zc1 type c value '2',
          fn(20) type c.
    Main Code ************************************************************
    PERFORM get_input using 'C:\Documents and Settings\ic881592\Desktop\Daran_bdc_VA01-e.txt'.
    SORT IT_VA01 BY AUART KUNNR BSTKD.
    LOOP AT IT_VA01 INTO WA_VA01.
      if WA_VA01_F-AUART <> WA_VA01-AUART OR
         WA_VA01_F-KUNNR <> WA_VA01-KUNNR OR
         WA_VA01_F-BSTKD <> WA_VA01-BSTKD.
           PERFORM set_header_flag.
           PERFORM create_bdc_header_data.
      endif.
      PERFORM create_bdc_item_data.
    ENDLOOP.
    PERFORM call_transaction.
    PERFORM errorlog.
    Procedures ***********************************************************
    form get_input using w_fname.
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          FILENAME            = W_FNAME
          HAS_FIELD_SEPARATOR = '#'
        TABLES
          DATA_TAB            = IT_VA01.
    endform.
    form call_transaction.
        PERFORM bdc_field       using 'BDC_OKCODE' '/11'.
        CALL TRANSACTION 'VA01' USING IT_BDCDATA MODE 'A' messages into messtab.
        refresh it_bdcdata.
    endform.
    FORM set_header_flag.
           WA_VA01_F-AUART = WA_VA01-AUART.
           WA_VA01_F-KUNNR = WA_VA01-KUNNR.
           WA_VA01_F-BSTKD = WA_VA01-BSTKD.
           if zf1 = 1.
               PERFORM call_transaction.
           endif.
           zf1 = 1.
    endform.   "set_header_flag.
    form create_bdc_header_data.
         perform bdc_dynpro      using 'SAPMV45A' '0101'.
         perform bdc_field       using 'VBAK-AUART' WA_VA01-AUART.
         perform bdc_field       using 'BDC_OKCODE' '/00'.
         perform bdc_dynpro      using 'SAPMV45A' '4001'.
         perform bdc_field       using 'KUAGV-KUNNR' WA_VA01-KUNNR.
         perform bdc_field       using 'VBKD-BSTKD' WA_VA01-BSTKD.
         perform bdc_field       using 'BDC_OKCODE' '/00'.
         perform bdc_dynpro      using 'SAPMSSY0' '0120'.
         perform bdc_field       using 'BDC_CURSOR' '04/06'.
         perform bdc_field       using 'BDC_OKCODE' '=CHOO'.
         perform bdc_dynpro      using 'SAPMV45A' '4001'.
         PERFORM bdc_field       USING 'BDC_OKCODE' '=POAN'.
    endform. "create_bdcdata
    FORM create_bdc_item_data.
         CONCATENATE 'RV45A-KWMENG(' zc1 ')' INTO FN.
         perform bdc_field       using 'BDC_CURSOR' FN.
         perform bdc_field       using FN WA_VA01-KWMENG.
         CONCATENATE 'KOMV-KBETR(' zc1 ')' INTO FN.
         perform bdc_field       using FN WA_VA01-KBETR.
         CONCATENATE 'RV45A-MABNR(' zc1 ')' INTO FN.
         perform bdc_field       using FN WA_VA01-MABNR.
         perform bdc_dynpro      using 'SAPMV45A' '4001'.
         PERFORM bdc_field       USING 'BDC_OKCODE' '=POAN'.
    ENDFORM.
    form errorlog.
      LOOP AT MESSTAB .
        if MESSTAB-MSGNR = '311' or MESSTAB-MSGTYP = 'E'.
            SELECT SINGLE msgnr text FROM T100
                            into wa_errmess
                            WHERE SPRSL = MESSTAB-MSGSPRA
                              AND ARBGB = MESSTAB-MSGID
                              AND MSGNR = MESSTAB-MSGNR.
            IF SY-SUBRC = 0.
              err_message = wa_errmess-TEXT.
              IF err_message CS '&1'.
                REPLACE '&1' WITH MESSTAB-MSGV1 INTO err_message.
                REPLACE '&2' WITH MESSTAB-MSGV2 INTO err_message.
                REPLACE '&3' WITH MESSTAB-MSGV3 INTO err_message.
                REPLACE '&4' WITH MESSTAB-MSGV4 INTO err_message.
              ELSE.
                REPLACE '&' WITH MESSTAB-MSGV1 INTO err_message.
                REPLACE '&' WITH MESSTAB-MSGV2 INTO err_message.
                REPLACE '&' WITH MESSTAB-MSGV3 INTO err_message.
                REPLACE '&' WITH MESSTAB-MSGV4 INTO err_message.
              ENDIF.
              CONDENSE err_message.
              WRITE: / MESSTAB-MSGTYP, err_message .
            ELSE.
              WRITE: / MESSTAB.
            ENDIF.
        endif.
      ENDLOOP.
    endform. "errorlog
    FORM BDC_DYNPRO USING PROGRAM DYNPRO.
      WA_BDCDATA-PROGRAM  = PROGRAM.
      WA_BDCDATA-DYNPRO   = DYNPRO.
      WA_BDCDATA-DYNBEGIN = 'X'.
      APPEND WA_BDCDATA TO IT_BDCDATA.
      CLEAR  WA_BDCDATA.
    ENDFORM.
    FORM BDC_FIELD USING FNAM FVAL.
      WA_BDCDATA-FNAM = FNAM.
      WA_BDCDATA-FVAL = FVAL.
      APPEND WA_BDCDATA TO IT_BDCDATA.
      CLEAR  WA_BDCDATA.
    ENDFORM.
    input file :
    OR     2148     0001235     R-1162     8     17
    OR     2148     0001235     R-1161     2     30
    OR     2148     0001235     100-400     6     25
    OR     2148     0001235     R-1162     4     12
    OR     2148     0001236     R-1162     3     12
    OR     2148     0001236     R-1161     2     30
    OR     2148     0001236     100-400     1     25
    OR     2148     0001236     R-1162     7     12
    OR     2148     0001236     R-1161     8     30
    OR     2148     0001236     100-400     10     25
    OR     2148     0001235     R-1161     5     30
    OR     2148     0001235     100-400     2     25
    OR     2148     0001235     R-11621     3     12
    OR     2148     0001235     R-1161     2     30
    OR     2148     0001235     100-400     1     25
    OR     2148     0001235     R-1162     7     12
    OR     2148     0001235     R-1161     8     30
    OR     2148     0001235     100-400     10     25
    OR     2148     0001236     R-1162     8     17
    OR     2148     0001236     R-1161     2     30
    OR     2148     0001236     100-400     6     25
    OR     2148     0001236     R-1162     4     12
    OR     2148     0001236     R-1161     5     30
    OR     2148     0001236     100-400     2     25

  • I need to know the location where iTunes downloads software to, it is filling up my hard drive.

    I need to know the location where iTunes downloads software to, it is filling up my hard drive.
    I am trying to put my iPhone4 into recovery and then will restore it. iTunes starts extracting the software.  But the iPhone reboots and by the time the software has completed extraction, the iPhone can no longer be seen by iTunes. 
    We have a very small hard drive on our laptop.  Each time iTunes does an extraction, it uses up more space on the C: drive. 
    Nothing frees up that used drive space. Not closing iTunes or rebooting the computer. Nothing. 
    How do we release / delete these files?

    See Re: when itunes downloads ipsw where does it go.
    tt2

  • How to know the type of a variable??

    how to know the type of a variable??
    For example, give you a variable s, how to determine if it is
    a primitive type, of an object?? If this is primitive type,
    any ways to determine if it is integer, boolean, double, ...??

    I am currently working on a project where this happens. I have a main type of object that all of my other types extend. While working on the objects in a method, any type of other object could be coming through. To test I try to cast the object and catch class cast exceptions. This only works because I know the different type that will be coming through....
    public void testObject(classX object){
      try{
        classY object = (classY)object;
      }catch(ClassCastException CC){
        try{
          classZ object = (classZ)object;
        }catch(ClassCastException CCC){
          /// the object fails to be cast as the types I tested for.
    }

  • [ASK] How to know the number of usage of each Atomic Service ??

    I correct my question:
    *How to know the number of usage of each Atomic Service by the Domain & Enterprise Services?*
    I want to see the number of usage of each atomic service(AS) by other services (DS & ES)
    ex:
    es_A  ----->  ds_B   (1x)    ----->    as_B    (2x) --> so as_B is accessed by es_A twice (2x)
    es_A  ----->  ds_C   (2x)    ----->    as_C    (2x) --> so as_C is accessed by es_A 4times (4x)
    es_A  ----->  ds_B   (2x)    ----->    as_D    (3x) --> so as_D is accessed by es_A 6times (6x)
    es_B  ----->  ds_B   (1x)   ----->    as_E    (1x) --> so as_E is accessed by es_B once (1x)
    es_B  ----->  ds_C   (3x)    ----->    as_F    (2x) --> so as_F is accessed by es_B 6times (6x)
    es_B  ----->  ds_B   (4x)    ----->    as_G    (1x) --> so as_G is accessed by es_B 4times (4x)
    etc..
    Is there any tool in OSB, WLS, BPEL Console or Java Developer to support it?
    Thank you...

    user13294928 wrote:
    Ganesh wrote:
    Their are two ways to do this
    1. In the sbconsole, when you click on the proxy or any resource name, you will see information about number of references and referenced by as two parameters. Click on the number you will drill down into exact schemas, business service, split joins, etc it refers and who all refers this resource.--> Where can I see the information?
    2. In the OEPE, eclipse you can see the same in the "Reference" view of the OSB perspective.--> I'm using Java Developer right now, does it work?Thank you1. You can see the reference in: sbconsole -> Resource View -> Click on Proxy or any resource name -> it will show Ref: <n> some number and -> Click on the number. Do you see this?
    2. JDeveloper should also have a resource view, but have not tried it though

  • How to know the delay in redo log apply on Active Dataguard 11g

    Hello All,
    How to know the delay in redo log apply on Active Dataguard 11g...
    Do we need to wait till log switch occurs?
    Or is it recommended to schedule a log switch every 15 min, no matter data is updated/inserted or not in primary?
    Please suggest...
    Oracle : oracle 11g Release 2
    OS : RHEL 5.4
    Thanks
    Edited by: user1687821 on Feb 23, 2012 12:02 AM

    Hello CKPT,
    Thank you for the valuable information...
    We have not configured databroker.
    Output of the query
    SELECT * FROM (
    SELECT sequence#, archived, applied,
    TO_CHAR(completion_time, 'RRRR/MM/DD HH24:MI') AS completed
    FROM sys.v$archived_log
    ORDER BY sequence# DESC)
    WHERE ROWNUM <= 10
    Primary...
    SEQUENCE#     ARCHIVED     APPLIED     COMPLETED
    29680          YES          YES     2012/02/23 01:11
    29680          YES          NO     2012/02/23 01:11
    29679          YES          NO     2012/02/22 23:11
    29679          YES          YES     2012/02/22 23:11
    29678          YES          YES     2012/02/22 23:11
    29678          YES          NO     2012/02/22 23:11
    29677          YES          YES     2012/02/22 22:32
    29677          YES          NO     2012/02/22 22:32
    29676          YES          YES     2012/02/22 22:02
    29676          YES          NO     2012/02/22 22:02
    Standby...
    SEQUENCE# ARC APP COMPLETED
    29680 YES YES 2012/02/23 01:11
    29679 YES YES 2012/02/22 23:11
    29678 YES YES 2012/02/22 23:11
    29677 YES YES 2012/02/22 22:32
    29676 YES YES 2012/02/22 22:02
    29675 YES YES 2012/02/22 21:24
    29674 YES YES 2012/02/22 19:24
    29673 YES YES 2012/02/22 18:59
    29672 YES YES 2012/02/22 17:42
    29671 YES YES 2012/02/22 17:41
    Primary shows yes as well as no...
    Next,
    From primary:-
    SQL> select thread#,max(sequence#) from v$archived_log group by thread#;
    THREAD#     MAX(SEQUENCE#)
    1     29680
    From standby:-
    SQL> select thread#,max(sequence#) from v$archived_log where applied='YES' group by thread#;
    THREAD# MAX(SEQUENCE#)
    1 29680
    What is the redo transport service you are using? is it LGWR or ARCH ?
    Output of query select * from v$parameter where name like 'log_archive_dest_2' shows below value...
    SERVICE=b_stdb LGWR ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=b_stdb
    So is it lgwr already configured...? if yes then how do i see the delay in both servers..
    Yes, the network is good as they both resides in same LAN within same rack
    Thanks...

  • How to combine the classes from 2 jar files into 1?

    Hi there
    I have got 2 jar files with the same name but the classes that they contain are different. So, I want to combine those 2 files into 1. Could anyone please tell me how to add the classes in a jar file to another jar file?
    Thanks for your help!
    From
    Edmund

    The jar utility allows you to extract files as well as put them into a jar. This is in the java docs.
    You might have to hand modify the manifest file if it was hand modified in the first place. All you should have to do is copy the text from one file to another. The manifest will have the same name so you will have to extract to different dirs so it isn't overwritten.
    Steps:
    -Create dir1 and dir2
    -Extract jar1 into dir1, Extract jar2 into dir2.
    -Manually examine manifests and combine if needed.
    -Copy files from one dir to another.
    -Use jar tool to create new jar.

Maybe you are looking for

  • ITunes, Finder don't mount iPod

    My iPod is not recognized by iTunes (v6.0.4) or the Finder (OSX 10.4.6). I have tried the 5Rs and nothing has helped. I have tried a Firewire cable and a USB cable. Have installed the iPod Updater. Not able to install the iTunes updater (although I'm

  • HOW CAN I ADD FOREIGN RADIOS TO ITUNES?

    HOW CAN I ADD FOREIGN RADIO STATIONS TO ITUNES? I HAVE NO URL'S.  I HAVE THESE STATIONS IN MY BOOKMARKS BUT WANT TO CONCENTRATE THEM ALL IN ITUNES. THE GENIUSES HAVE NO ANSWER NOR DOES APPLE VIA TELEPHONE.

  • Exception in thread "main" java.lang.NoClassDefFoundError: Springer

    Hi, i'm trying to programm the knight-problem, but i am not sure, that the Code is right: public class Springer {      public static int[] sx = new int[10];      public static int[] sy = new int[10]; public static int[][] feld;      public static int

  • Changing fonts in Safari 6

    The font settings are gone from Safari's Preferences. How am I supposed to change the font?

  • Using a dimension twice

    Hi, I have a fact table which is using one dimension twice (dimension location "from" and "to"). I have problems with the discoverer working on it. When using the dimension in a matrix report, discoverer is asking which of the two foreign key constra