How to run an external application from PL/SQL code?

Hi,
I want to call an application like "Notepad" from PL/SQL code in a Windows2000 server. Is there any way to do that?
Thanks, best regards.
Paulo.

declare
r varchar(4000);
begin
dbms_java.set_output(10000);
system_util.runshell('sh /ora9/runBackup.sh', r);
dbms_output.put_line(r);
end;
System_util package is
CREATE OR REPLACE PACKAGE System_Util IS
*System: Generic
*Package Name: System_util
*Description: This is an open source package which holds regular used
     * methods by developers and dba's.
*Created by:         Rae Smith
*Created Date:       27/06/2001
*Notes: This ia an free open source package that holds no warranty and
* therefore no-one connected to the development of this package
* can be made reasponsible for any outcomes by it's use.
MODIFICATION LOG**************************************************************
*DETAILS                                    DATE          VERS          CHANGED BY
*===============================================================================
*Created                                 27-06-2001     1.0           Rae Smith
     /********************************* Public Methhods ***************************************/
     --- getDir returns the first directory value held in the init.ora file
     FUNCTION getDir RETURN VARCHAR2;
     --- getPrev.. returns the prevoise day from a gievn date
     FUNCTION getPrevSat(pDate IN DATE) RETURN DATE;
     FUNCTION getPrevSun(pDate IN DATE) RETURN DATE;
     FUNCTION getPrevMon(pDate IN DATE) RETURN DATE;
     FUNCTION getPrevTue(pDate IN DATE) RETURN DATE;
     FUNCTION getPrevWed(pDate IN DATE) RETURN DATE;
     FUNCTION getPrevThu(pDate IN DATE) RETURN DATE;
     FUNCTION getPrevFri(pDate IN DATE) RETURN DATE;
     --- isNumber returns TRUE or FALSE depending on a datatype passed
     FUNCTION isNumber(pnumber IN VARCHAR2) RETURN BOOLEAN;
     FUNCTION isNumber(pnumber IN NUMBER) RETURN BOOLEAN;
     FUNCTION isNumber(pnumber IN DATE) RETURN BOOLEAN;
     --- The writeFile allow you to write data to a file
     --- writeFile has 2 Versions
     --- v1 pass in the file name and the text to write to a file.
     --- v2 pass in the file name, dbms_sql.varhar2s object
     --- and the amount of rows to procces at a time
     --- This enables you to write to afile in batch mode
     PROCEDURE writeFile(pName IN VARCHAR2, pText IN VARCHAR2);
     PROCEDURE writeFile(pName IN VARCHAR2, pText IN DBMS_SQL.VARCHAR2S, pRows IN PLS_INTEGER);
     --- The appendFile methods allow you to append data to a file
--- This also has the inteligents to create the file if ts does not exist.
     --- appendFile has 2 Versions
     --- v1 pass in the file name and the text to write to a file.
     --- v2 pass in the file name, dbms_sql.varhar2s object
     --- and the amount of rows to procces at a time
     --- This enables you to write to afile in batch mode
     PROCEDURE appendFile(pName IN VARCHAR2, pText IN DBMS_SQL.VARCHAR2S, pRows IN PLS_INTEGER);
     PROCEDURE appendFile(pName IN VARCHAR2, pText IN VARCHAR2);
     --- The clearFile clears the data from a file.
     PROCEDURE clearFile(pName IN VARCHAR2);
     --- checkSyntax is a quick syntax checker for sql statements the is a limit to
     --- the size used in the statement. If you have a error with
     --- a statement then pass in the statement watch as it displays
     --- the point where the error arose.
     PROCEDURE checkSyntax(pSql IN VARCHAR2);
     --- isEmpty this returns TRUE or FALSE
     FUNCTION isEmpty(pValue IN VARCHAR2) RETURN BOOLEAN;
     --- getTimeInMins returns the time in minutes for a specified date
     FUNCTION getTimeInMins (pDate IN DATE) RETURN NUMBER;
     --PROCEDURE get_time_in_mins (pDate IN DATE);
     --- incDate returns a specified date incremented by value
     FUNCTION incDate(pInc IN NUMBER DEFAULT .999999, pDate IN DATE DEFAULT SYSDATE) RETURN DATE;
     --- decDate returns a specified date decremented by value
     FUNCTION decDate(pInc IN NUMBER DEFAULT .999999, pDate IN DATE DEFAULT SYSDATE) RETURN DATE;
     --- getTime returns the time in milliseconds
     FUNCTION getTime RETURN NUMBER;
     --- daysDiff returns the amount of days between two values
     FUNCTION daysDiff(pHigh IN DATE, pLow IN DATE) RETURN NUMBER;
     --- difference returns the diffeence between two numbers always
     --- taking the lowest away from the highest
     FUNCTION difference(pAnum IN NUMBER,pBnum IN NUMBER)RETURN NUMBER;
     --- total returns the value of two numbers added together
     FUNCTION total(pAnum IN NUMBER, pBnum IN NUMBER)RETURN NUMBER;
     --- numberToWords returns the string for a number passed in
     FUNCTION numberToWords(pNumb IN NUMBER) RETURN VARCHAR2;
     --- runShell allows you to run operating commands from pl/sql
     --- Only available with 8i
     --- PROCEDURE runShell(pCmnd IN VARCHAR2, pErrMsg IN OUT VARCHAR2);
     /**************************** Public Vaiables *******************************/
     --- Public variable that holds the operating system directory
     --- that the can be written to from withing the database.
     vDir VARCHAR2(50);
END;
CREATE OR REPLACE PACKAGE BODY System_Util IS
     FUNCTION getDir RETURN VARCHAR2
     IS
     BEGIN
          RETURN vDir;
     EXCEPTION
          WHEN OTHERS THEN
               dbms_output.put_line('ERROR...ERROR...System_Util.getDir');
               RAISE;
     END getDir;
     /**** Private module to get the first directory for utl_file to use ****/
     PROCEDURE getDir
     IS
          CURSOR cDir(p1 IN VARCHAR2)
          IS
          SELECT DECODE(INSTR(value, ','), 0, value, SUBSTR(value, 1, INSTR(value, ',')-1)) dir
          FROM v$parameter
          WHERE name = p1;
     BEGIN
          FOR rDir IN cDir('utl_file_dir') LOOP
               vDir := rDir.dir;
          END LOOP;
     EXCEPTION
          WHEN OTHERS THEN
               dbms_output.put_line('ERROR...ERROR...System_Util.getDir');
               RAISE;
     END getDir;
     FUNCTION getPrevDate(pDate IN DATE, pDay IN VARCHAR2) RETURN DATE
     IS
     BEGIN
          RETURN NEXT_DAY(pDate - 7, pDay);
     EXCEPTION
          WHEN OTHERS THEN
               RAISE;
     END getPrevDate;
     FUNCTION getPrevSat(pDate IN DATE) RETURN DATE
     IS
     BEGIN
          RETURN getPrevDate(pDate, 'saturday');
     EXCEPTION
          WHEN OTHERS THEN
               RAISE;
     END getPrevSat;
     FUNCTION getPrevSun(pDate IN DATE) RETURN DATE
     IS
     BEGIN
          RETURN getPrevDate(pDate, 'sunday');
     EXCEPTION
          WHEN OTHERS THEN
               RAISE;
     END getPrevSun;
     FUNCTION getPrevMon(pDate IN DATE) RETURN DATE
     IS
     BEGIN
          RETURN getPrevDate(pDate, 'monday');
     EXCEPTION
          WHEN OTHERS THEN
               RAISE;
     END getPrevMon;
     FUNCTION getPrevTue(pDate IN DATE) RETURN DATE
     IS
     BEGIN
          RETURN getPrevDate(pDate, 'tuesday');
     EXCEPTION
          WHEN OTHERS THEN
               RAISE;
     END getPrevTue;
     FUNCTION getPrevWed(pDate IN DATE) RETURN DATE
     IS
     BEGIN
          RETURN getPrevDate(pDate, 'wednesday');
     EXCEPTION
          WHEN OTHERS THEN
               RAISE;
     END getPrevWed;
     FUNCTION getPrevThu(pDate IN DATE) RETURN DATE
     IS
     BEGIN
          RETURN getPrevDate(pDate, 'thursday');
     EXCEPTION
          WHEN OTHERS THEN
               RAISE;
     END getPrevThu;
     FUNCTION getPrevFri(pDate IN DATE) RETURN DATE
     IS
     BEGIN
          RETURN getPrevDate(pDate, 'friday');
     EXCEPTION
          WHEN OTHERS THEN
               RAISE;
     END getPrevFri;
     FUNCTION isNumber(pNumber IN VARCHAR2) RETURN BOOLEAN
     IS
     BEGIN
          IF TO_NUMBER(pNumber)> 0 THEN
               RETURN TRUE;
          ELSE
               RETURN FALSE;
          END IF;
     EXCEPTION
          WHEN OTHERS THEN
               RETURN FALSE;
     END isNumber;
     FUNCTION isNumber(pNumber IN NUMBER) RETURN BOOLEAN
     IS
     BEGIN
          IF TO_NUMBER(pNumber) > 0 THEN
               RETURN TRUE;
          ELSE
               RETURN FALSE;
          END IF;
     EXCEPTION
          WHEN OTHERS THEN
          RETURN FALSE;
     END isNumber;
     FUNCTION isNumber(pNumber IN DATE) RETURN BOOLEAN
     IS
     BEGIN
          IF TO_NUMBER(TO_CHAR(pNumber, 'YYYYMMDD')) > 0 THEN
               RETURN TRUE;
          ELSE
               RETURN FALSE;
          END IF;
     EXCEPTION
          WHEN OTHERS THEN
               RETURN FALSE;
     END isNumber;
     PROCEDURE writeFile(pName IN VARCHAR2, pText IN VARCHAR2)
     IS
          vFtype utl_file.file_type;
     BEGIN
          vFtype := UTL_FILE.FOPEN(vDir, pName,'w');
          UTL_FILE.PUT_LINE(vFtype,pText);
          UTL_FILE.FCLOSE(vFtype);
     EXCEPTION
          WHEN OTHERS THEN
               UTL_FILE.FCLOSE(vFtype);
               RAISE;
     END writeFile;
     PROCEDURE writeFile(pName IN VARCHAR2, pText IN VARCHAR2, pFtyp IN OUT utl_file.file_type)
     IS
          vFtype utl_file.file_type;
     BEGIN
          vFtype := UTL_FILE.FOPEN(vDir, pName,'w');
          UTL_FILE.PUT_LINE(vFtype,pText);
          UTL_FILE.FCLOSE(vFtype);
     EXCEPTION
          WHEN OTHERS THEN
               UTL_FILE.FCLOSE(vFtype);
               RAISE;
     END writeFile;
     PROCEDURE writeFile(pName IN VARCHAR2, pText IN DBMS_SQL.VARCHAR2S, pRows IN PLS_INTEGER)
     IS
          vFtype utl_file.file_type;
          vText VARCHAR2(2000);
          vCnt BINARY_INTEGER;
          vRem BINARY_INTEGER;
          vRowcnt PLS_INTEGER := 0;
     BEGIN
          vRem := MOD(pText.COUNT, pRows);
          vFtype := UTL_FILE.FOPEN(vDir, pName, 'w');
          vCnt := pText.FIRST;
          LOOP
               EXIT WHEN vCnt IS NULL;
          vRowcnt := vRowcnt + 1;
               IF vCnt = pText.LAST THEN
                    vText := vText||pText(vCnt);
                    UTL_FILE.PUTF(vFtype,vText);
                    UTL_FILE.FFLUSH(vFtype);
                    vText := '';
               ELSIF MOD(vCnt, pRows) = 0 THEN
                    vText := vText||pText(vCnt)||'\n';
                    UTL_FILE.PUTF(vFtype,vText);
                    UTL_FILE.FFLUSH(vFtype);
                    vText := '';
               ELSIF vRowcnt = vRem THEN
                    vText := vText||pText(vCnt)||'\n';
                    UTL_FILE.PUTF(vFtype,vText);
                    UTL_FILE.FFLUSH(vFtype);
               ELSE
                    vText := vText||pText(vCnt)||'\n';
               END IF;
               vCnt := pText.NEXT(vCnt);
          END LOOP;
          UTL_FILE.FCLOSE(vFtype);
     EXCEPTION
          WHEN OTHERS THEN
               dbms_output.put_line('ERROR...ERROR...SYSTEM_UTIL.WRITE_FILE');
               UTL_FILE.FCLOSE(vFtype);
               RAISE;
     END writeFile;
     PROCEDURE appendFile(pName IN VARCHAR2, pText IN DBMS_SQL.VARCHAR2S, pRows IN PLS_INTEGER)
     IS
          vFtype utl_file.file_type;
          vText VARCHAR2(2000);
          vCnt BINARY_INTEGER;
          vRem BINARY_INTEGER;
          vMode VARCHAR2(2) := 'a';
          vRowcnt PLS_INTEGER := 0;
     BEGIN
          vRem := MOD(pText.COUNT, pRows);
          vFtype := UTL_FILE.FOPEN(vDir, pName, vMode);
          vCnt := pText.FIRST;
          LOOP
               EXIT WHEN vCnt IS NULL;
               vRowcnt := vRowcnt + 1;
               IF vCnt = pText.LAST THEN
                    vText := vText||pText(vCnt);
                    UTL_FILE.PUTF(vFtype,vText);
                    UTL_FILE.FFLUSH(vFtype);
                    vText := '';
               ELSIF MOD(vCnt, pRows) = 0 THEN
                    vText := vText||pText(vCnt)||'\n';
                    UTL_FILE.PUTF(vFtype,vText);
                    UTL_FILE.FFLUSH(vFtype);
                    vText := '';
               ELSIF vRowcnt = vRem THEN
                    vText := vText||pText(vCnt)||'\n';
                    UTL_FILE.PUTF(vFtype,vText);
                    UTL_FILE.FFLUSH(vFtype);
               ELSE
                    vText := vText||pText(vCnt)||'\n';
               END IF;
               vCnt := pText.NEXT(vCnt);
          END LOOP;
               UTL_FILE.FCLOSE(vFtype);
     EXCEPTION
          WHEN UTL_FILE.INVALID_OPERATION THEN
               IF vMode = 'a' THEN
                    writeFile(pName, pText, pRows);
               ELSE
                    RAISE;
          END IF;
     WHEN OTHERS THEN
          dbms_output.put_line('ERROR...ERROR...SYSTEM_UTIL.APPENDFILE');
          UTL_FILE.FCLOSE(vFtype);
          RAISE;
     END appendFile;
     PROCEDURE appendFile(pName IN VARCHAR2, pText IN VARCHAR2)
     IS
          vFtype utl_file.file_type;
          vMode VARCHAR2(2) := 'a';
     BEGIN
          vFtype := UTL_FILE.FOPEN(vDir, pName, vMode);
          UTL_FILE.PUTF(vFtype, pText);
          UTL_FILE.FFLUSH(vFtype);
          UTL_FILE.FCLOSE(vFtype);
     EXCEPTION
     WHEN UTL_FILE.INVALID_OPERATION THEN
     IF vMode = 'a' THEN
          writeFile(pName, pText);
     ELSE
          RAISE;
     END IF;
     WHEN OTHERS THEN
          dbms_output.put_line('ERROR...ERROR...SYSTEM_UTIL.APPENDFILE');
          UTL_FILE.FCLOSE(vftype);
          RAISE;
     END appendFile;
     PROCEDURE clearFile(pName IN VARCHAR2)
     IS
          vFtype utl_file.file_type;
          vText VARCHAR2(2000);
          vCnt BINARY_INTEGER;
          vRem BINARY_INTEGER;
          vRowcnt PLS_INTEGER := 0;
     BEGIN
          vFtype := UTL_FILE.FOPEN(vDir, pName, 'w');
          UTL_FILE.PUTF(vFtype,'');
          UTL_FILE.FFLUSH(vFtype);
          UTL_FILE.FCLOSE(vFtype);
     EXCEPTION
     WHEN OTHERS THEN
     dbms_output.put_line('ERROR...ERROR...System_Util.CLEARFILE');
     UTL_FILE.FCLOSE(vFtype);
     RAISE;
     END clearFile;
     PROCEDURE checkSyntax(pSql IN VARCHAR2)
     IS
     sqlCur PLS_INTEGER := DBMS_SQL.OPEN_CURSOR;
     errPos PLS_INTEGER;
     sqlStmt VARCHAR2(2000);
     BEGIN
          sqlStmt := pSql;
          DBMS_SQL.PARSE(sqlCur, sqlStmt, DBMS_SQL.NATIVE);
     EXCEPTION
          WHEN OTHERS THEN
               errPos := DBMS_SQL.LAST_ERROR_POSITION;
               DBMS_OUTPUT.PUT_LINE(SQLERRM);
               DBMS_OUTPUT.PUT_LINE(sqlStmt);
               DBMS_OUTPUT.PUT_LINE(' ');
               DBMS_OUTPUT.PUT_LINE(LPAD('^', errPos, '-'));
               DBMS_SQL.CLOSE_CURSOR(sqlCur);
     END checkSyntax;
     FUNCTION isEmpty(pValue IN VARCHAR2) RETURN BOOLEAN
     IS
     BEGIN
          IF pValue IS NULL OR pValue = '' OR pValue = ' ' THEN
               RETURN TRUE;
          ELSE
               RETURN FALSE;
          END IF;
     END isEmpty;
     FUNCTION getTimeInMins (pDate IN DATE) RETURN NUMBER
     IS
          vHours NUMBER;
          vMins NUMBER;
          vRetval PLS_INTEGER;
     BEGIN
          vHours := TO_NUMBER(TO_CHAR(pDate,'HH24'));
          vMins := TO_NUMBER(TO_CHAR(pDate,'MI'));
          vRetval := ((60 * vHours) + vMins);
          RETURN vRetval;
     EXCEPTION
          WHEN OTHERS THEN
               RAISE;
     END getTimeInMins;
     PROCEDURE getTimeInMins (pDate IN DATE)
     IS
          vHours NUMBER;
          vMins NUMBER;
          vRetval PLS_INTEGER;
     BEGIN
          vHours := TO_NUMBER(TO_CHAR(pDate,'HH24'));
          vMins := TO_NUMBER(TO_CHAR(pDate,'MI'));
          vRetval := ((60 * vHours) + vMins);
          DBMS_OUTPUT.PUT_LINE('The time IN minutes IS: '||vRetval);
     EXCEPTION
          WHEN OTHERS THEN
               RAISE;
     END getTimeInMins;
     FUNCTION incDate(pInc IN NUMBER DEFAULT .999999, pDate IN DATE DEFAULT SYSDATE) RETURN DATE
     IS
     BEGIN
     RETURN (TO_DATE(TO_CHAR(pDate + pInc, 'DD/MM/YYYY HH24:MI:SS'), 'DD/MM/YYYY HH24:MI:SS'));
     EXCEPTION
          WHEN OTHERS THEN
               RAISE;
     END incDate;
     FUNCTION decDate(pInc IN NUMBER DEFAULT .999999, pDate IN DATE DEFAULT SYSDATE) RETURN DATE
     IS
     BEGIN
     RETURN (TO_DATE(TO_CHAR(pDate - pInc, 'DD/MM/YYYY HH24:MI:SS'), 'DD/MM/YYYY HH24:MI:SS'));
     EXCEPTION
          WHEN OTHERS THEN
               RAISE;
     END decDate;
     FUNCTION getTime RETURN NUMBER
     IS
     BEGIN
          RETURN dbms_utility.get_time;
     END getTime;
     FUNCTION daysDiff(pHigh IN DATE, pLow IN DATE) RETURN NUMBER
     IS
          vHighdate DATE;
          vLowdate DATE;
     BEGIN
     IF pHigh > pLow THEN
               vHighdate := TO_DATE(TO_CHAR(pHigh, 'YYYYMMDD'), 'YYYYMMDD');
               vLowdate := TO_DATE(TO_CHAR(pLow, 'YYYYMMDD'), 'YYYYMMDD');
     ELSIF pLow > pHigh THEN
               vHighdate := TO_DATE(TO_CHAR(pLow, 'YYYYMMDD'), 'YYYYMMDD');
               vLowdate := TO_DATE(TO_CHAR(pHigh, 'YYYYMMDD'), 'YYYYMMDD');
     END IF;
          RETURN (vHighdate - vLowdate);
     EXCEPTION
          WHEN OTHERS THEN
               RAISE;
     END daysDiff;
     PROCEDURE dateCheck(pDateFrom IN OUT DATE, pDateTo IN OUT DATE)
     IS
          /* Declare the variable to hold the "from" date */
          vDateFrom DATE;
     BEGIN
          /* If either date_from or date_to is null then set to todays date **
          ** using the sysdate **
          ** today's DATE AND IN the correct format */
          pDateFrom := NVL(pDateFrom, SYSDATE);
          pDateTo := NVL(pDateTo, SYSDATE);
          /* Check that the from date is not greater than the to date if so **
          ** use the system_util.incDate to Increment the date by 1 day */
          IF (pDateFrom > pDateTo) THEN
          vDateFrom := pDateFrom;
          pDateTo := System_Util.incDate(1, vDateFrom);
          END IF;
     EXCEPTION
          WHEN OTHERS THEN
          RAISE;
     END;
     /* calculates the difference of two numbers always taken the high from the low*/
     FUNCTION difference(pAnum IN NUMBER, pBnum IN NUMBER)RETURN NUMBER
     IS
          vTotal NUMBER;
     BEGIN
          IF (pAnum > pBnum )OR (pAnum = pBnum)THEN
               vTotal := (pAnum - pBnum);
          ELSIF (pAnum < pBnum) THEN
               vTotal := (pBnum - pAnum);
          END IF;
          RETURN (vTotal);
     EXCEPTION
          WHEN OTHERS THEN
               RAISE;
     END difference;
     /* calculates the Total of two numbers*/
     FUNCTION total(pAnum IN NUMBER, pBnum IN NUMBER)RETURN NUMBER
     IS
          vTotal NUMBER;
     BEGIN
          vTotal := (pAnum + pBnum);
     RETURN (vTotal);
     EXCEPTION
          WHEN OTHERS THEN
               RAISE;
     END total;
     FUNCTION numberToWords(pNumb IN NUMBER) RETURN VARCHAR2
     IS
          vRetval VARCHAR2(255);
          vNumb PLS_INTEGER;
     BEGIN
          vNumb := pNumb;
          vRetval := REPLACE(TO_CHAR(TO_DATE(vNumb,'j'),'jsp'),'-',' ');
          RETURN (vRetval);
     EXCEPTION
          WHEN OTHERS THEN
          RAISE;
     END;
/*************** Only Available on 8i ********************************\
     FUNCTION Catcherr(pStr IN VARCHAR2) RETURN VARCHAR2
     IS
          LANGUAGE JAVA
          NAME 'catchErr.run(java.lang.String) return String';
     PROCEDURE runShell(pCmnd IN VARCHAR2, pErrMsg IN OUT VARCHAR2)
     IS
     BEGIN
          pErrMsg := Catcherr(pCmnd);
     EXCEPTION
     WHEN OTHERS THEN
          RAISE;
     END runShell;
BEGIN
getDir;
END;

Similar Messages

  • How to run an ess application from nwds

    Hello All,
    I have done the changes in ESS/MSS standerad web dynpro componenet i.e. us personal data threw NWDS
    I have done the changes then i rebuild the project,then i deploy it .
    before check in now i want check its o/p.
    mean i want to run "us personal data" to check the changes that i have made is right or not.
    please give me some solution.
    Thanks .
    Punit

    Hello Markus,
    i think i am diverting from my original question.
    i want to know how may i test this application i have done the changes.
    there is an application for a ESS/MSS component that i have imported threw nwdi e.g. "Address" in web dynpro explorer i am just right clicking  on this application e.g. "per_addres_us" then click to run .
    is this the right procedure or there is something else to do this test.
    Because when i am trying to run this way i am getting error.
    A critical error has occured. Processing of the service had to be terminated. Unsaved data has been lost.
    Please contact your system administrator.
    Read of object with ID portal_content/com.sap.pct/srvconfig/com.sap.pct.erp.srvconfig.ess.employee_self_service/com.sap.pct.erp.srvconfig.in/com.sap.pct.erp.srvconfig.pdata/com.sap.pct.erp.srvconfig.fpmapplications/com.sap.pct.erp.srvconfig.per_personal_in failed.
    com.sap.xss.config.FPMConfigurationException: Read of object with ID portal_content/com.sap.pct/srvconfig/com.sap.pct.erp.srvconfig.ess.employee_self_service/com.sap.pct.erp.srvconfig.in/com.sap.pct.erp.srvconfig.pdata/com.sap.pct.erp.srvconfig.fpmapplications/com.sap.pct.erp.srvconfig.per_personal_in failed.
    at com.sap.xss.config.pcd.PcdObjectBroker.retrieveObjectInternal(PcdObjectBroker.java:92)
    at com.sap.xss.config.pcd.PcdObjectBroker.retrieveObject(PcdObjectBroker.java:47)
    at com.sap.xss.config.domain.PersistentObjectManager.retrieveObjectInternal(PersistentObjectManager.java:106)
    at com.sap.xss.config.domain.PersistentObjectManager.retrieveObject(PersistentObjectManager.java:80)
    at com.sap.xss.config.FPMRepository.retrieveObjectInternal(FPMRepository.java:83)
    at com.sap.xss.config.FPMRepository.retrieveObject(FPMRepository.java:66)
    at com.sap.pcuigp.xssutils.ccpcd.FcXssPcd.initializeConfiguration(FcXssPcd.java:816)
    at com.sap.pcuigp.xssutils.ccpcd.FcXssPcd.loadConfiguration(FcXssPcd.java:250)
    at com.sap.pcuigp.xssutils.ccpcd.wdp.InternalFcXssPcd.loadConfiguration(InternalFcXssPcd.java:178)
    at com.sap.pcuigp.xssutils.ccpcd.FcXssPcdInterface.loadConfiguration(FcXssPcdInterface.java:138)
    at com.sap.pcuigp.xssutils.ccpcd.wdp.InternalFcXssPcdInterface.loadConfiguration(InternalFcXssPcdInterface.java:148)
    at com.sap.pcuigp.xssutils.ccpcd.wdp.InternalFcXssPcdInterface$External.loadConfiguration(InternalFcXssPcdInterface.java:240)
    at com.sap.pcuigp.xssutils.ccpcd.CcXssPcd.loadConfiguration(CcXssPcd.java:282)
    at com.sap.pcuigp.xssutils.ccpcd.wdp.InternalCcXssPcd.loadConfiguration(InternalCcXssPcd.java:184)
    at com.sap.pcuigp.xssutils.ccpcd.CcXssPcdInterface.loadConfiguration(CcXssPcdInterface.java:115)
    at com.sap.pcuigp.xssutils.ccpcd.wdp.InternalCcXssPcdInterface.loadConfiguration(InternalCcXssPcdInterface.java:124)
    at com.sap.pcuigp.xssutils.ccpcd.wdp.InternalCcXssPcdInterface$External.loadConfiguration(InternalCcXssPcdInterface.java:184)
    at com.sap.pcuigp.xssutils.ccxss.CcXss.loadConfiguration(CcXss.java:209)
    at com.sap.pcuigp.xssutils.ccxss.wdp.InternalCcXss.loadConfiguration(InternalCcXss.java:153)
    at com.sap.pcuigp.xssutils.ccxss.CcXssInterface.loadConfiguration(CcXssInterface.java:112)
    at com.sap.pcuigp.xssutils.ccxss.wdp.InternalCcXssInterface.loadConfiguration(InternalCcXssInterface.java:124)
    at com.sap.pcuigp.xssutils.ccxss.wdp.InternalCcXssInterface$External.loadConfiguration(InternalCcXssInterface.java:184)
    at com.sap.pcuigp.xssfpm.wd.FPMComponent.wdDoInit(FPMComponent.java:187)
    at com.sap.pcuigp.xssfpm.wd.wdp.InternalFPMComponent.wdDoInit(InternalFPMComponent.java:110)
    at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.doInit(DelegatingComponent.java:108)
    at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:215)
    at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)
    at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.init(ClientComponent.java:430)
    at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:362)
    at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.initApplication(ApplicationSession.java:754)
    at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:289)
    at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:713)
    at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:666)
    at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250)
    at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
    at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
    at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:46)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
    at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
    at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
    at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
    at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
    at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
    at java.security.AccessController.doPrivileged(AccessController.java:207)
    at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)
    at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)
    Caused by: com.sapportals.portal.pcd.gl.PermissionControlException: Access denied (Object(s): portal_content/com.sap.pct/srvconfig/com.sap.pct.erp.srvconfig.ess.employee_self_service/com.sap.pct.erp.srvconfig.in/com.sap.pct.erp.srvconfig.pdata/com.sap.pct.erp.srvconfig.fpmapplications/com.sap.pct.erp.srvconfig.per_personal_in)
    at com.sapportals.portal.pcd.gl.PcdFilterContext.filterLookup(PcdFilterContext.java:422)
    at com.sapportals.portal.pcd.gl.PcdProxyContext.basicContextLookup(PcdProxyContext.java:1248)
    at com.sapportals.portal.pcd.gl.PcdProxyContext.basicContextLookup(PcdProxyContext.java:1254)
    at com.sapportals.portal.pcd.gl.PcdProxyContext.basicContextLookup(PcdProxyContext.java:1254)
    at com.sapportals.portal.pcd.gl.PcdProxyContext.basicContextLookup(PcdProxyContext.java:1254)
    at com.sapportals.portal.pcd.gl.PcdProxyContext.basicContextLookup(PcdProxyContext.java:1254)
    at com.sapportals.portal.pcd.gl.PcdProxyContext.basicContextLookup(PcdProxyContext.java:1254)
    at com.sapportals.portal.pcd.gl.PcdProxyContext.basicContextLookup(PcdProxyContext.java:1254)
    at com.sapportals.portal.pcd.gl.PcdProxyContext.basicContextLookup(PcdProxyContext.java:1254)
    at com.sapportals.portal.pcd.gl.PcdProxyContext.proxyLookupLink(PcdProxyContext.java:1353)
    at com.sapportals.portal.pcd.gl.PcdProxyContext.proxyLookup(PcdProxyContext.java:1300)
    at com.sapportals.portal.pcd.gl.PcdProxyContext.lookup(PcdProxyContext.java:1067)
    at com.sapportals.portal.pcd.gl.PcdGlContext.lookup(PcdGlContext.java:68)
    at com.sapportals.portal.pcd.gl.PcdProxyContext.lookup(PcdProxyContext.java:1060)
    at com.sap.xss.config.pcd.PcdObjectBroker.getPcdContext(PcdObjectBroker.java:305)
    at com.sap.xss.config.pcd.PcdObjectBroker.retrieveObjectInternal(PcdObjectBroker.java:53)
    at com.sap.xss.config.pcd.PcdObjectBroker.retrieveObject(PcdObjectBroker.java:47)
    at com.sap.xss.config.domain.PersistentObjectManager.retrieveObjectInternal(PersistentObjectManager.java:106)
    at com.sap.xss.config.domain.PersistentObjectManager.retrieveObject(PersistentObjectManager.java:80)
    at com.sap.xss.config.FPMRepository.retrieveObjectInternal(FPMRepository.java:83)
    at com.sap.xss.config.FPMRepository.retrieveObject(FPMRepository.java:66)
    at com.sap.pcuigp.xssutils.ccpcd.FcXssPcd.initializeConfiguration(FcXssPcd.java:816)
    at com.sap.pcuigp.xssutils.ccpcd.FcXssPcd.loadConfiguration(FcXssPcd.java:250)
    at com.sap.pcuigp.xssutils.ccpcd.wdp.InternalFcXssPcd.loadConfiguration(InternalFcXssPcd.java:178)
    at com.sap.pcuigp.xssutils.ccpcd.FcXssPcdInterface.loadConfiguration(FcXssPcdInterface.java:138)
    at com.sap.pcuigp.xssutils.ccpcd.wdp.InternalFcXssPcdInterface.loadConfiguration(InternalFcXssPcdInterface.java:148)
    at com.sap.pcuigp.xssutils.ccpcd.wdp.InternalFcXssPcdInterface$External.loadConfiguration(InternalFcXssPcdInterface.java:240)
    at com.sap.pcuigp.xssutils.ccpcd.CcXssPcd.loadConfiguration(CcXssPcd.java:282)
    at com.sap.pcuigp.xssutils.ccpcd.wdp.InternalCcXssPcd.loadConfiguration(InternalCcXssPcd.java:184)
    at com.sap.pcuigp.xssutils.ccpcd.CcXssPcdInterface.loadConfiguration(CcXssPcdInterface.java:115)
    at com.sap.pcuigp.xssutils.ccpcd.wdp.InternalCcXssPcdInterface.loadConfiguration(InternalCcXssPcdInterface.java:124)
    at com.sap.pcuigp.xssutils.ccpcd.wdp.InternalCcXssPcdInterface$External.loadConfiguration(InternalCcXssPcdInterface.java:184)
    at com.sap.pcuigp.xssutils.ccxss.CcXss.loadConfiguration(CcXss.java:209)
    at com.sap.pcuigp.xssutils.ccxss.wdp.InternalCcXss.loadConfiguration(InternalCcXss.java:153)
    at com.sap.pcuigp.xssutils.ccxss.CcXssInterface.loadConfiguration(CcXssInterface.java:112)
    at com.sap.pcuigp.xssutils.ccxss.wdp.InternalCcXssInterface.loadConfiguration(InternalCcXssInterface.java:124)
    at com.sap.pcuigp.xssutils.ccxss.wdp.InternalCcXssInterface$External.loadConfiguration(InternalCcXssInterface.java:184)
    at com.sap.pcuigp.xssfpm.wd.FPMComponent.wdDoInit(FPMComponent.java:187)
    at com.sap.pcuigp.xssfpm.wd.wdp.InternalFPMComponent.wdDoInit(InternalFPMComponent.java:110)
    at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.doInit(DelegatingComponent.java:108)
    at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:215)
    at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)
    at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.init(ClientComponent.java:430)
    at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:362)
    at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.initApplication(ApplicationSession.java:754)
    at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:289)
    at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:713)
    at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:666)
    at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250)
    at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
    at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
    at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:46)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
    at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
    at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
    at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
    at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
    at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
    at java.security.AccessController.doPrivileged(AccessController.java:207)
    at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)
    Thanks
    Punit

  • How to run LV6.02-application from compact disk?

    For demonstration purposes I would like to run a n application without data aquisition from a cd without installing the LV-Runtime-Engine on the PC. With version LV 5.1 it was possible to start the application and the runtime engine from a compact disk. With LV 6.02, I always get an error message if I try the same. Any ideas ?

    Using Linux, I load the LV6 Runtime engine and my application from a
    CD with no problem. Just put a symbolic link in /usr/lib and point it
    at the CD version of LVRTE. I don't know that Windows supports
    symbolic links however.
    As for installing the LVRTE in Windows, it is not necessary to use
    the NI LVRTE installer. I supply an application to users (using InstallShield)
    and simply install all the files in c:\Program Files\National Instruments\
    shared\6.0\..... to the users C directory. Works fine with no registry
    additions. Maybe you could temporarily install your app and LVRTE to
    hard disk and delete it when you were done?
    Alan Brause
    "Darren" wrote in message
    news:[email protected]..
    > Hello,
    >
    > You didn
    't mention which "error message" you receive when you try to
    > run the application from your CD. If you only have the runtime engine
    > (lvrt.dll) on the CD and not installed on the computer, this probably
    > won't work. The reason is that the LabVIEW Runtime Engine (for
    > version 6.0 and later) creates some Windows registry entries when it
    > is installed...I don't believe the 5.1 run-time engine did this.
    > These registry entries are necessary in LabVIEW 6.0 for various
    > reasons, all related to new features in LabVIEW 6.0.
    >
    > So to my knowledge, if you want to run an LabVIEW 6.0 executable on
    > any computer, that computer will require the LabVIEW Runtime Engine to
    > be installed.
    >
    > I hope this answer makes sense. Let me know if you need anything
    > else. If you continue to have concerns about this, it would help if
    > you told me the specific error message you receive.
    >
    > Have a nice day.
    >
    > Sincerely,
    > Darren N.
    > NI Applications Engineer

  • How to run FNDMLSUB - Multiple languages - from PL/SQL

    Hi,
    i would like to submit a FNDMLSUB program (Multi Language request submission) from PL/SQL (need to print multiple invoice programs at once, there is no MLS support for request sets).
    What's the pl/sql procedure for submission? I can submit it, but i don't know how to link it with actual request (parameters ect).
    l_request_id := fnd_request.submit_request( 'FND', 'FNDMLSUB' , '' , null, FALSE, 20003, 191349, 'Y' );
    Thanks,
    Regards,
    Kris

    Workaround:
    Running requests manualy for every language needed (cursor with MLS function)
    fnd_request.set_options(
    implicit => 'NO',
    protected => 'YES',
    language => 'LANGUAGE',
    territory => 'TERRITORY',
    datagroup => '',
    numeric_characters => ',.');
    fnd_request.submit_request(...)
    But still, if anybody knows how to run FNDMLSUB it would be much appreciated.
    Regards,
    Kris

  • How to run an VB script from PL/SQL

    hi all,
    i am new to PL/SQL.
    i am writting a procedure in PL/SQL where i want to run a macro in VB script through my code.
    how can i do this?
    TIA
    Abhishek

    PL/SQL executes on the server (unless this is a Forms question) and VBScript is normally part of a web application, in which case I don't see this working.

  • Running the external programs from SM69 t-code and RSBDCOS0 report

    Hi All,
      I am trying to execute the external commands from SM69 and RSBDCOS0. It's throwing the below error:
    26.10.2009 17:26:49 Job started                                                                                00           516
    26.10.2009 17:26:50 Step 001 started                                                                                BT           611
    26.10.2009 17:26:50 External command: ZARCHIVELOG_COPY                                                                BT           630
    26.10.2009 17:26:50 Related parameter:                                                                                BT           613
    26.10.2009 17:26:50 Ext. prog.:   > Function: BtcXpgPanicCan't exec external program (No such file or directory)      BT      606
    26.10.2009 17:26:50 Ext. prog.: External program terminated with exit code 1                                          BT           606
    26.10.2009 17:26:50 Ext. prog.: SAPXPG started on <hostname>_<SID>_00, Process ID 1632, Process Number 12   BT           606
    26.10.2009 17:26:50 External program was cancelled                                                                    BT           614
    26.10.2009 17:26:50 Job cancelled                                                                                00           518
    <SID>adm has full authorization on sapxpg.
    Please let me know what might be the wrong.
    Regards,
    Sridhar

    Dear Markus,
       The dev_xpg file contains the below information
    Trace file of external program (trace level 3)
    < Function: BtcTrcInit> Function: BtcXpgStart  External program: mv
      Process id: 29450
      Parent process id: 29449
      Rearrange StdErr to be collected in memory
      Rearrange StdOut to be collected in memory
    In t-code sm21 dont have any thing.
    Regards,
    sridhar

  • How to call an external application from the current one

    Hi Guys,
    Im not sure if/how this is possible.
    For example:
    I have two projects : Project1 and Project 2.
    When I click on a button in Project2, Project1 needs to be launced. That is, the Main class of Project1 needs to be triggered.
    How do I do this? I have tried everything.
    Kind Regards,
    Christiaan

    There is no problem with handling multiple Frame with a javaFX app. Some features are needed to improve that, like AlwaysOnTop, modal, ...
    For exemple it can be used like a splashscreen.
    If your question was about launching anything on your machine, the regular java API can do that.

  • How to launch a java application from Microsoft SQL Server

    Hi everyone
    I noticed the following line in a trigger will launch an executable.
    EXEC master..xp_cmdshell '"C:\Program Files\SkillSets.exe"', NO_OUTPUT
    Does anyone know if this same statement will launch a java program? Or does anyone have any positive experience with that ?

    yes...
    check this basic example:
    public class GoodWindowsExec{
    public static void main(String args[]){
    if (args.length < 1){
    System.out.println("USAGE: java GoodWindowsExec <cmd>");
    System.exit(1);
    try{           
    String osName = System.getProperty("os.name" );
    String[] cmd = new String[3];
    if( osName.equals( "Windows NT" ) ){
    cmd[0] = "cmd.exe" ;
    cmd[1] = "/C" ;
    cmd[2] = args[0];
    }else if( osName.equals( "Windows 95" ) ){
    cmd[0] = "command.com" ;
    cmd[1] = "/C" ;
    cmd[2] = args[0];
    Runtime rt = Runtime.getRuntime();
    System.out.println("Execing " + cmd[0] + " " + cmd[1]
    + " " + cmd[2]);
    Process proc = rt.exec(cmd);
    // any error message?
    StreamGobbler errorGobbler = new
    StreamGobbler(proc.getErrorStream(), "ERROR");
    // any output?
    StreamGobbler outputGobbler = new
    StreamGobbler(proc.getInputStream(), "OUTPUT");
    // kick them off
    errorGobbler.start();
    outputGobbler.start();
    // any error???
    int exitVal = proc.waitFor();
    System.out.println("ExitValue: " + exitVal);
    } catch (Throwable t)
    t.printStackTrace();

  • How to run an external .exe file from an indesign pluging

    Hi,
          Suppose if I have written an separate application in C++ (.exe file) & need to run it from an indesign pluging(as if a service in windows). have you provided that facilities in your SDK? if it's please let me know how to run an external .exe file from a indesign pluging.
    Thanks,

    I'm actully writing data in PMString to a external txt file.
    another question..
    if i want to execute an action when the ok button is cliked how can i do it?
    whe i add a button(widget) i know how to handle it. please see my code.
    // Call the base class Update function so that default behavior will still occur (OK and Cancel buttons, etc.).
    CDialogObserver::Update(theChange, theSubject, protocol, changedBy);
    do
    InterfacePtr<IControlView> controlView(theSubject, UseDefaultIID());
    ASSERT(controlView);
    if(!controlView) {
    break;
    // Get the button ID from the view.
    WidgetID theSelectedWidget = controlView->GetWidgetID();
    if (theChange == kTrueStateMessage)
    //if (theSelectedWidget == kEXTCODGoButtonWidgetID
    switch(theSelectedWidget.Get())
             case kEXTCODGoButtonWidgetID:
      this->ViewOutput();
      break;
             case kEXTCODFindButtonWidgetID:
      this->SaveLog();
      break;
    // TODO: process this
    } while (kFalse);
    I do two actions "SaveLog" & "ViewOutput()" using two buttons. But i dont know how to execute an action when the ok button is clicked...

  • How can I run an external program from a PLSQL procedure?

    Is there a package to run an external program from PLSQL? or is there another way to do that?
    thanks.

    here there is an example about how a PL/SQL procedure can
    work with an external C program.
    http://download-east.oracle.com/docs/cd/A87860_01/doc/appdev.817/a76936/dbms_pi2.htm#1003384
    Apart from that you have Java Stored Procedures option
    to carry out your task.
    Java Stored Procedures Developer's Guide Contents / Search / Index / PDF
    http://download-east.oracle.com/docs/cd/B10501_01/java.920/a96659.pdf
    Joel P�rez

  • How to run a remote application (Non Java) from a Java program

    Could you please tell me how to run a remote application (Non-Java) from a Java program without using RMI. Please tell me know the procedure and classes to be used.
    Cheers
    Ram

    what do you mean remote application.In the other pc or in your pc just apart from you application?
    If the application is in your pc,the method which the upper has mentioned is
    a good one!
    But if the application you want to run is not in your computer,the method can't do. And you can use socket with which you can build an application listening some port in the pc which contains the application you want to run .When you want to run that application ,send the Start_Command to the listening application.Then listening application will run the application with the help of the method the upper mentioned.

  • How to run a Concurrent Program from the back end?

    Hi,
    How to run a Concurrent Program from the back end?
    Is it Possible to see that Concuurent Request id which we run from the back end, in the front end?
    If yes, then Please Give reply how to write the code
    Thanks in Advance,
    Bharathi.S

    This is documented in Chapter 20 of the Application Developers Guide http://download.oracle.com/docs/cd/B53825_03/current/acrobat/121devg.pdf. These MOS Docs also have some information available
    221542.1 - Sample Code for FND_SUBMIT and FND_REQUEST API's
    235359.1 - How to Launch Planning Data Pull MSCPDP using FND_REQUEST.SUBMIT_REQUEST
    HTH
    Srini

  • Running a Java application from a Swing GUI

    Hi,
    I was wondering if there is a simple way to run a Java application from a GUI built with Swing. I would presume there would be, because the Swing GUI is a Java application itself, technically.
    So, I want a user to click a button on my GUI, and then have another Java application, which is in the same package with the same classpaths and stuff, run.
    Is there a simple way to do this? Do any tutorials exist on this? If someone could give me any advice, or even a simple "yes this is possible, and it is simple" or "this is possible, but difficult" or "no this is not possible" answer, I would appreciate it. If anyone needs more information, I'll be happy to provide it.
    Thanks,
    Dan

    I don't know if it is possible to run the main method from another Java app by simply calling it...
    But you could just copy and paste the stuff from your main method into a new static method called something like runDBQuery and have all the execution run from there.
    How does that sound? Is it possible?
    What I'm suggeting is:
    Original
    public class DBQuery{
    public static void methodA(){
    public static void doQuery(){
    methodA();
    public static void main(String[] args){
    // Your method calls
    //Your initializing
    doQuery();
    }Revised:
    public class DBQuery{
    public static void methodA(){
    public static void doQuery(){
    methodA();
    public static void doMyQuery(){
    // Your method calls
    //Your initializing
    doQuery();
    // No main needed!!
    //public static void main(String[] args){
    // Your method calls
    //doQuery();
    //}

  • How to execute 2 different application from same Application Server

    Hi,
    I would like to know that how to execute two different applications from the same Application Server with different databases?
    We are using
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0
    Oracle Application Server 10g 10.1.2.0.2
    Regards,
    Hassan

    what type of applications you want to run from the same application server, Hassan?
    What other DB are you using to launch it beside the one you quoted? Is it the MRep DB of infra?

  • Run Oracle Form Application from a JSP File.

    I have a complete customized application made on Oracle Forms (10g) and I have .fmb and .fmx files, now problem which I am facing is I have to open the Oracle Form Application from my JSP page (which is used to login the user). My JSP page is just a simple page which I have placed it in path [C:\DevSuiteHome2\forms\j2ee\formsapp\formsweb] and I run it from browser as [http://localhost:port/forms/index.jsp].
    How can I start my application from this JSP page? Please your help would be highly appreciated. Thanks.

    Inside your JSP page put <OBJECT> tag with all parameters and tags to open Jinitiator or java applet..
    my example..
    <!-- Forms applet definition (start) -->
    <OBJECT classid="clsid:CAFECAFE-0013-0001-0022-ABCDEFABCDEF"
            codebase="/forms/jinitiator/jinit.exe#Version=1,3,1,22"
            WIDTH="1024"
            HEIGHT="768"
            HSPACE="0"
            VSPACE="0">
    <PARAM NAME="TYPE"       VALUE="application/x-jinit-applet;version=1.3.1.22">
    <PARAM NAME="CODEBASE"   VALUE="/forms/java">
    <PARAM NAME="CODE"       VALUE="oracle.forms.engine.Main" >
    <PARAM NAME="ARCHIVE"    VALUE="frmall_jinit.jar,images.jar,in2kartica.jar,paketi.jar,prenospolic.jar,imgbean.jar,moj9999.jar" >
    <PARAM NAME="serverURL" VALUE="/forms/lservlet?ifcfs=/forms/frmservlet?form=zav0030f.fmx&acceptLanguage=sl-SI">
    <PARAM NAME="networkRetries" VALUE="30">
    <PARAM NAME="serverArgs"
           VALUE="escapeParams=true module=zav0030f.fmx userid=  sso_userid=%20 sso_formsid=%25OID_FORMSID%25 sso_subDN= sso_usrDN= debug=no host= port= buffer_records=no debug_messages=no array=no obr=no query_only=no quiet=yes render=no record=names tracegroup= log= term=/oracle/forme/qmsrf65w.res" >
    <PARAM NAME="separateFrame" VALUE="true">
    <PARAM NAME="splashScreen"  VALUE="">
    <PARAM NAME="background"  VALUE="">
    <PARAM NAME="lookAndFeel"  VALUE="Oracle">
    <PARAM NAME="colorScheme"  VALUE="teal">
    <PARAM NAME="serverApp" VALUE="default">
    <PARAM NAME="logo" VALUE="">
    <PARAM NAME="imageBase" VALUE="DocumentBase">
    <PARAM NAME="formsMessageListener" VALUE="">
    <PARAM NAME="recordFileName" VALUE="">
    <PARAM NAME="EndUserMonitoringEnabled" VALUE="">
    <PARAM NAME="EndUserMonitoringURL" VALUE="">
    <PARAM NAME="heartbeat" VALUE="">
    <PARAM NAME="clientDPI" VALUE="123">
    <COMMENT>
    <EMBED SRC="" PLUGINSPAGE="/forms/jinitiator/us/jinit_download.htm"
            TYPE="application/x-jinit-applet;version=1.3.1.22"
            java_codebase="/forms/java"
            java_code="oracle.forms.engine.Main"
          java_archive="frmall_jinit.jar,images.jar,in2kartica.jar,paketi.jar,prenospolic.jar,imgbean.jar,moj9999.jar,Paketi.jar,in2kartica.jarpaketi.jar,moj9999.jarin2kartica.jarpaketi.jar"
            WIDTH="1024"
            HEIGHT="768"
            HSPACE="0"
            VSPACE="0"
         clientDPI="123"
            serverURL="/forms/lservlet?ifcfs=/forms/frmservlet?form=zav0030f.fmx&acceptLanguage=sl-SI"
            networkRetries="30"
            serverArgs="escapeParams=true module=zav0030f.fmx userid=  sso_userid=%20 sso_formsid=%25OID_FORMSID%25 sso_subDN= sso_usrDN= debug=no host= port= buffer_records=no debug_messages=no array=no obr=no query_only=no quiet=yes render=no record=names tracegroup= log= term=/oracle/forme/qmsrf65w.res"
            separateFrame="true"
            splashScreen=""
            background=""
            lookAndFeel="Oracle"
            colorScheme="teal"
            serverApp="default"
            logo=""
            imageBase="DocumentBase"
            formsMessageListener=""
            recordFileName=""
            EndUserMonitoringEnabled=""
            EndUserMonitoringURL=""
            heartBeat=""
    >
    <NOEMBED>
    </COMMENT>
    </NOEMBED></EMBED>
    </OBJECT>
    <!-- Forms applet definition (end) -->

Maybe you are looking for