Help needed regarding change of system CLASSPATH

Hi All,
I need to change the system CLASSPATH using my java programe. I tried the following code but its not working though it returns the correct CLASSPATH, but unable to do the modification. All I need is to append a new jar file in the existing CLASSPATH..
code]
try{
          sysMap = System.getenv();
          }catch(Exception se1){
                    System.out.println("Exception in finding Environment properties");
          Set Keys = sysMap.keySet();
          Iterator It = Keys.iterator();
          while(It.hasNext()){
               String strNow =(String) It.next();
               if(strNow.contains("CLASSPATH")){
                    System.setProperty("CLASSPATH", ".;C:\\Calypso\\Software\\\\Release\\jars\\calypso.jar;C:\\Calypso\\Software\\Release\\build;C:\\Calypso\\Software\\Release\\build\\calypsofx;C:\\Calypso\\Software\\Release\\resources;C:\\Calypso\\Software\\Release;C:\\Calypso\\Software\\Release\\jars\\jconn2.jar;C:\\Calypso\\Software\\Release\\jars\\jaxb-1.0.4\\;C:\\Calypso\\Software\\Release\\jars\\javacup.jar;C:\\Calypso\\Software\\Release\\jars\\antlr.jar;C:\\Calypso\\Software\\Release\\jars\\ojdbc14.zip;C:\\Calypso\\Software\\Release\\jars\\web\\servlet.jar;C:\\Calypso\\Software\\Release\\jars\\web\\webserver.jar;C:\\Calypso\\Software\\Release\\jars\\ftp.jar;C:\\Calypso\\Software\\Release\\jars\\itext-1.02b.jar;C:\\Calypso\\Software\\Release\\jars\\Jama-1.0.1.jar;C:\\jdk1.5.0_10\\bin;C:\\Calypso\\Software\\Release\\webfx\\calypsoWebFXServer.jar;C:\\XXX.jar");
                    System.out.println("Classpath changed");
Any help will be appreciated.

Hi Kaj ,
Well I am in a situation where we need to extend a
existing system and we are providing the client with
a new jar file for every modification. Now all I need
is that our programe automatically add (infect
append) the jar file in the existing system
CLASSPATH, so that the client need not to add(append)
the new jar files all the time.
Can you provide any help??As others have said, use -cp as argument when you start your application. It's quite common that people write a script that adds all jars in a certain directory to the argument to -cp.
Kaj

Similar Messages

  • Need to change my system font

    My system font is getting some unwanted font, so i need to change my system font, i dont know how to change, please help me to change my system font

    You can change various fonts with Tinkertool (fonts tool).
    Change OS X system fonts and more with TinkerTool

  • Help needed to DELETE a System created with Logical Components assigned.

    Hi,
    I created a system in SMSY in my Solution Manager system. I unknowingly assigned the system to Logical Components. Now on finding that it was a worng way of configuration I need to DELETE the system and recreate it using the option "Create new system with assistant."
    Please help me in resolving the issue. I am not getting an option from the were used list to delete the assignment of the system.
    Expecting a reply at the earliest.
    Regards,
    Vineeth

    Dear friend
    You can remove the system from the logical component by clicking on display/change and removing the SID from the system assignments,
    just select the blank field from F4 help.
    Once you have removed the system from the logical component, you will be able to delete the system.
    shailesh Tiwari

  • Need to change user & system status of trade promotion

    Hi,
    I have a requirement where I need to advance a user status if system status is changed based on some creiteria.
    Similarly a system status will be changed on a particular user status.
    Which table is updated for status of trade promotion? Which class/method can be used for it?
    Regards,
    Shikha

    Hello Shikha,
    Status management on the whole in CRM is pretty complex at the db level as there are so many nr of tables. So, i feel it is better not to go more deep.
    Individual application frameworks like one order, marketing has extended the status management for their needs which resulted in pretty good number of APIs for status related actions.
    Try the using the following methods of the class CL_CRM_MKTPL_APPL_BASE
    1) STATUS_READ --> to read the active status of the marketing object at that point of time
    2) STATUS_SET --> for this method pass the business transaction associated with the status of your marketing project.
    Hope this helps.
    Regards,
    Vinay

  • Help needed Regarding Project Server - 2013 Workflow

    Hi All,
    I am new to Project server 2013 Workflow, hence please help me regarding this. Pardon me if this question is too trivial. 
    I have created a project type associated with a workflow and my workflow is as follows :
    So I am not doing anything here, I am just testing the workflow as mentioned by technet site : http://technet.microsoft.com/en-us/library/dn458865(v=office.15).aspx
    But it is mentioned that, after a minute or 2, the workflow state will change, also they have mentioned to press the Submit button.
    But in my case, the workflow is not moving to next stage [It just says 'The workflow is still processing - which never changes after hours] or I am getting the submit button (Submit button is disabled on the ribbon). Below is the state of my workflow :
    PS : I have made the user added to Portfolio managers group as well. But still I am having this same issue. 
    The Workflow manager is installed properly, and it is working fine in case of List workflow. I am facing the issue only wrt Site workflow for Project server 2013.
    Please help me to solve this issue.
    Thanks,
    shanky

    Hi Kiran,
    I am now facing issue while assigning a task to a person in the workflow.
    I am having a person named say 'John' , who is included in Project Manager as well as Portfolio Manager.
    And I am using a workflow as :
    Stage : Conceptual
    Assign a task to John (Task outcome to Variable: Outcome5 | Task ID to Variable: TaskID3 )
    Transition to stage
    Go to Approval
    But this is again giving issue as :
    Workflow Internal status : Cancelled
    Details: System.ApplicationException: HTTP 401 {"error":{"code":"-2147024891, System.UnauthorizedAccessException","message":{"lang":"en-US","value":"Access denied. You do not have
    permission to perform this action or access this resource."}}}
    PS : I have used the same Sharepoint admin account for 'Account Name' in ‘User Profile Sync' , Is this causing the issue? Please let me know.
    Thanks,
    Shanky

  • Help needed regarding replication in ds5.2sp4

    Hi ,
    I am new to ldap . I am able to establish replication between master and consumer and trying to update it is getting update but i am geting the following error
    in error log
    INFORMATION - NSMMReplicationPlugin - conn=-1 op=-1 msgId=-1 - Replication bind to consumer alpha.ad.com:19941 failed:
    [16/May/2007:13:48:26 -0700] - INFORMATION - NSMMReplicationPlugin - conn=-1 op=-1 msgId=-1 - Failed to connect to replication consumer alpha.ad.com:19941
    [16/May/2007:13:48:26 -0700] - ERROR<8318> - Repl. Transport - conn=-1 op=-1 msgId=-1 - [S] Bind failed with response: Failed to bind to remote (900).
    Please help me regarding this .
    Message was edited by:
    ap7926

    If data is getting replicated from master to consumer then the bind for that specific replication agreement is working.
    Check your timestamps and current log entries. Are the "Failed to connect to replication" messages currently being generated? As long as your replication agreement is enabled the supplier will try to keep things up and running, retrying a failed consumer regularly (and generating about 1 set of log messaages per minute on my systems). So you'll get those messages on the supplier when a good consumer is down (the nsslapd directory server process that is).
    If you don't have these messages being generated currently then this probably means that your consumer was down around "16/May/2007:13:48:26 -0700" but is ok now. In that case those messages aren't of big concern. They're just telling you that you had a problem, which you hopefully already knew about.
    If replication is working (test by making a change on the supplier and checking it on the consumer) AND you're still concurrently getting these messages regularly then you have something interesting going on, probably due to a configuration issue. Without seeing the details it's difficult say what it would be.

  • Help needed regarding the updation of "Relationships" in BP

    Hello Guys,
    This is to request you to kindly help me regarding the following.
    We have a scenario where all the employees assigned to an Organizational unit (in PPOMA_CRM) are not showing in the "Relationships" ("Has Employee")in the BP transaction of that Organizational Unit.
    Could anyone let me know whether there is any update program that updates the "Relationships" from the Organizational asssignment. Or we need to enter the employees manually in BP "Relationships". Please help. Thanks in anticipation.
    Regards,
    Kishore.

    Hi Amit,
    Thanks alot for your reply. Its really helpful for me.
    So,we usually enter these relationships manually only, right? Before going ahead with the custom program, could you please let me know whether there is any SAP note related to this.Once again thanks alot for you help.
    Regards,
    Kishore.

  • Help needed for changing MATERIAL SALES TEXT

    We have a requirement where in i need to chang the existing material sales text. GOTO --> ITEM --> TEXT --> Material Sales text. iwould like to know if it would be possible to do it using a CATT program?? If yes any pointers if no what would be the best approach for this.

    You can also use a LSMW.
    You are lucky, this is exactly the eg taken in SAP help :
    http://help.sap.com/saphelp_erp2005/helpdata/en/e1/c6d30210e6cf4eac7b054a73f8fb1d/frameset.htm
    Hope this helps,
    Erwan

  • Little help needed regarding http and https

    Hi,
    I maintain a website for my organization. Recently, for a login page, I started using HTTPS. It works fine with HTTPS.
    The problem I face is : When a user goes to login page, he sees the login page via HTTPS. Now, if user doesn't submit the login form but chooses to browse some other link on the same page, that page will still be shown using HTTPS because links are relative. This increases unnecessary HTTPS traffic on the server.
    I need a solution that can help me to change protocol back to HTTP if the user doesn't submit login form. I have written small piece of java script that can check at the time of leaving the page. If submit button wasn't pressed, it should change the protocol back to HTTP. I have played around window.location object trying to change it's href property. But, no luck yet. Please help me.
    window.onunload = function()
    // if submit button wasn't pressed, change the protocol back to HTTP          
              if (!submitPressed)
                        window.location.protocol="http:";
                        alert(windows.location.href);
                     window.location.port = "80";
            }Please let me know if you know about some simple solution.
    Edited by: Di_Ke on Nov 13, 2007 2:12 PM
    Edited by: Di_Ke on Nov 13, 2007 2:14 PM

    Just to clarify, before anyone can answer: Do you have access to the web server settings, and are you looking for a server side solution for this problem? If the answer to any of those two question is no, and you are just looking for a javascript help, this forums is not the best source for answers.

  • Help needed regarding Segment Qualifiers

    Hi,
    In my process of implementing Apps R12 afresh, we just created the segments and assigned them their flexfield qualifiers today. In that, the one assigned towards alancing segment shows the value qualifiers like that of natural accounting segment, unlike the bal. segment value qualifier.
    I mean, when we try to insert a a value in the bal.segment it asks for qualifiers such as nature:expense/revenue/liability/asset, instead of going for the allow posting and allow budgeting alone. This is crazy, and I need your support.
    Thanks,
    Mukunthan L

    Hi Amit,
    Thanks alot for your reply. Its really helpful for me.
    So,we usually enter these relationships manually only, right? Before going ahead with the custom program, could you please let me know whether there is any SAP note related to this.Once again thanks alot for you help.
    Regards,
    Kishore.

  • Help needed regarding BADI.

    hi all,
    can anyone plz tell me how to define BADI and how create an interface.
    plz tell from everything regarding that, i have work with basic ABAP only.
    anykind of links and any kind of matter will be helpful and you will be rewarded with points for your help difinatly.
    regards.
    raman.

    Hi Raman,
    Please search the forum and you have lots and lots of links in it. For you to start with, try these links,
    The specified item was not found.
    BADI
    Best Regards.

  • Help needed regarding font sizes

    Iam generating pdf documents using oracle developer's report builder.
    When i generate and view those pdf's using the web previewer thay appear to be quite fine,whereas when i host them on ias the font sizes gets bigger, thus lot of text gets truncated.
    Is there any parameters that has to be set for it.Pls help

    Hi Amit,
    Thanks alot for your reply. Its really helpful for me.
    So,we usually enter these relationships manually only, right? Before going ahead with the custom program, could you please let me know whether there is any SAP note related to this.Once again thanks alot for you help.
    Regards,
    Kishore.

  • Help needed regarding the client server communication

    this is regarding my networking project which at present i am doing it in java...
    the project is abt establishing a server in my lab that controls all the other systems in that lab... now the problem is i have to shut down all the systems in the lab from the server on a click of a button.... this i need to do using socket programming to which i am new....
    So can anyone pls send me a sample code as to how to pass a command from server to shut shut down all the systems(clients) ..i need a java program that uses sockets concept to perform the above mentioned operation...pls note i am trying to establish a linux server
    regards
    lalita

    Dear hiwa
    i can use it but the constraint in my project is to use only the Socket programming due to time lacks.... i have to find a faster way to communicate between the server and the client...
    can u pls help me find a solution for this via sockets...
    hoping a favorable response
    regards
    Lalita

  • Help needed regarding SUM keyword in an ITAB loop

    Hello,
    I am maintaining a code as given below.
    LOOP AT itab INTO totwa.
    SUM.
    ENDLOOP.
    totwa is defined as a workarea which is needed to hold the sum totals of the fields in the itab. According to the documentation of SUM, it should calculate the sum totals and should put the totals in the workarea mentioned. But somehow its not calculating the value. Could anyone please help me in resolving this issue. Please guide me with your thoughts as to what might have gone wrong.
    Note: the itab fields are of type P.
    Thanks in advance
    Sudha Naik

    Hello Suha
    According to the ABAP documentation the SUM statement is used in a specific situation:
    <b>Syntax
    SUM. </b>
    <b>Effect </b>
    <i>The statement SUM can only be specified within a loop starting with LOOP, and is only considered within a AT-ENDAT control structure. Prerequisites for using the statement SUM include using the addition INTO in the LOOP statement, and that the specified work area wa is compatible with the row type of the internal table. In addition, SUM cannot be used when the row type of the internal table itab contains components that are tables. </i>
    <i>The statement SUM calculates the component total with the numeric data type ( i, p, f) of all rows in the current control level and assigns these to the components of the work area wa. In the control levels FIRST, LAST , and outside of an AT-ENDAT control structure, the system calculates the sum of numeric components of all rows in the internal table.</i>
    I hope the following sample report will clarify the use of <b>SUM </b>and <b>COLLECT</b>.
    *& Report  ZUS_SDN_COLLECT
    REPORT  zus_sdn_collect.
    TYPES: BEGIN OF ty_s_line.
    TYPES:   key(1)    TYPE n.
    TYPES:   value     TYPE p DECIMALS 2.
    TYPES: END OF ty_s_line.
    TYPES: ty_t_itab    TYPE STANDARD TABLE OF ty_s_line
                        WITH DEFAULT KEY.
    DATA:
      gs_line       TYPE ty_s_line,
      gt_itab       TYPE ty_t_itab,
      gt_itab_coll  TYPE ty_t_itab.
    START-OF-SELECTION.
      DO 3 TIMES.
        gs_line-key = syst-index.
        gs_line-value = syst-index * '2.3'.
        APPEND gs_line TO gt_itab.
        APPEND gs_line TO gt_itab.
      ENDDO.
      gs_line-key = 4.
      gs_line-value = '5.5'.
      APPEND gs_line TO gt_itab.
      WRITE: / 'Initial list'.
      LOOP AT gt_itab INTO gs_line.
        WRITE: / gs_line-key,
                 gs_line-value.
      ENDLOOP.
      WRITE: / syst-uline.
      SKIP 2.
      WRITE: / 'Using SUM statement with AT END OF'.
      SORT gt_itab BY key.
      LOOP AT gt_itab INTO gs_line.
        AT END OF key.
          SUM.
          WRITE: / gs_line-key,
                   gs_line-value.
        ENDAT.
      ENDLOOP.
      WRITE: / syst-uline.
      SKIP 2.
      WRITE: / 'Using SUM statement without control structure (1)'.
      SORT gt_itab BY key.
      LOOP AT gt_itab INTO gs_line.
        SUM.
        WRITE: / gs_line-key,
                 gs_line-value.
      ENDLOOP.
      WRITE: / syst-uline.
      SKIP 2.
      WRITE: / 'Using SUM statement without control structure (2)'.
      SORT gt_itab BY key.
      LOOP AT gt_itab INTO gs_line.
        SUM.
        WRITE: / gs_line-key,
                 gs_line-value.
        EXIT.
      ENDLOOP.
      WRITE: / syst-uline.
      SKIP 2.
      WRITE: / 'Using COLLECT statement'.
      REFRESH: gt_itab_coll.
      LOOP AT gt_itab INTO gs_line.
        COLLECT gs_line INTO gt_itab_coll.
      ENDLOOP.
      LOOP AT gt_itab_coll INTO gs_line.
        WRITE: / gs_line-key,
                 gs_line-value.
      ENDLOOP.
      WRITE: / syst-uline.
      SKIP 2.
      WRITE: / 'Using COLLECT statement for total sum'.
      REFRESH: gt_itab_coll.
      LOOP AT gt_itab INTO gs_line.
        gs_line-key = 0.
        COLLECT gs_line INTO gt_itab_coll.
      ENDLOOP.
      LOOP AT gt_itab_coll INTO gs_line.
        WRITE: / gs_line-key,
                 gs_line-value.
      ENDLOOP.
      WRITE: / syst-uline.
      SKIP 2.
    END-OF-SELECTION.
    Regards
      Uwe

  • Help needed regarding getting jnlp

    Hi all,
    we need help regading java web start. We are downloadng some set of jar files to the client side using JNLP. With these jar files jnlp launches a swing base application in the client side and interacts with server application depoyed in WebSphere. In order to launch this application IBM Jre is needed in the client side. But IBM Jre can not install in non IBM meachines. So, we planing to make jar file of Jre and download it along with the rest of the jar files. After that we want to install in some directory in the client meachine and use that JRE to launch application. Now we are couple of problems with this approach.
    1) To extract the Jre from the jar file we need the path, where these jars are downloaded.Even though we know the path "C:\Documents and Settings\Administrator\Application Data\IBM\Java\Deployment\cache" we can't hard code this, because user may change this location. The extraction program of this jar file in the client side is in one of the jar file that is downloaded. But here in the it is not able to recongnize relative path. So what we need is, is there any api to get this location of this path.
    2)Second, In order to launch the application with downloaded Jre we need to set the classpath for jars that are downlaoded with Jnlp. But after downloading these jar files to the client side they are renamed(prefixed with RM and RT). Now, how to set the classpath to these jar files.
    Here instead of JNLP if we use applet our problem will be solved. But we can't use applet because of client requirements.
    Anybody, please try to suggest me some thing with this problem.
    thanks,

    You might want to try posting your question to the Grid Control Forum.
    Enterprise Manager

Maybe you are looking for

  • Mountain Lion Won't Install on Mac Mini (Late 2014)

    My relatively new Mac Mini (Late 2014) is running Yosemite. I have purchased Mountain Lion in order to run a favoured version of sound editing software which is not compatible with either Yosemite or Mavericks. Attempts to download my purchased Mount

  • Can't get my yahoo e-mails in my mailbox on my iMac, any suggestions?

    I have upgrated to yahoo plus, but the emails from my inbox still wont appear in my iMac inbox.

  • Vendor Evaluation-market price

    Hi Experts, How to maintain market price in the system for vendor evaluation based on sub-criteria Price level??? What is the best and easiest practice. Please share your experience. Your replies will be appriciated with points. Regards, santosh

  • Multiple pane level

    I am referring the Complex Form from the sample.How can I set both the pane levels to Folder 1 and Folder 2 respectively ? If we refer the Item Master form,the folder General is different from Purchasing data.All the folders are diffrent from each ot

  • Customised Field in Purchase Requisition

    Our requirement is to have a 4 digit departmental section (0001 - Finance dept, 0002 - HR dept, etc) in the Purchase Requisition line item (Table EBAN), there is no such field in standard SAP. How to add this addiitonal customised field to Purchase R