Io Exception error , create process  -  error comes for the below program

DOS-Commands from a JavaTM application
import java.lang.* ;
import java.io.* ;
public class Test
public static void main(String[] args)
try
String [] cmd = {"cmd.exe","/c","dir"} ;
Process m ;
String S = "" ;
m = Runtime.getRuntime().exec(cmd) ;
BufferedReader in =
new BufferedReader(new InputStreamReader(
m.getInputStream()));
while((S=in.readLine()) != null)
System.out.println(S) ;
catch(Exception ex)
ex.printStackTrace () ;

And what does the error message say, exactly?

Similar Messages

  • How to create new text symbols for the standard program.

    Based on the customer's requirement, I need to create a new implicit enhancement for the selection screen.
    I want to create new text symbols for the parameters and blocks, but I cannot change the standard ones.
    Does anybody know something about that? Thank you.

    hi ming yu,
    example : %_MATNR_%_APP_%-TEXT -> this is the material  description name in mb5b
    change the description in ur enhancement implementation
    %_MATNR_%_APP_%-TEXT = 'Material'
    it is works only input/output field
    Thanks&Regards,
    naveen

  • Apple ID for the Deployment Program and VPP is the same

    I created an Apple ID for the Deployment Program and authorized the same ID for VPP.  Now I learned these should be different.  Is this a problem and if so, how can the VPP ID be changed?

    You should be able to. The only hiccup will be that any apps that you have purchased with the older ID you will have to repurchase with the newer ID to be able to keep using them.
    Though of course this actually depends on how you plan to use the IDs. For example, I had an Apple ID through iTunes a few years before I opened a .Mac/MobileMe account (what iCloud is now in case you are new to Apple). Thus, my iPhone and iPad actually have two IDs on them, one for iTunes/App Store, and one for anything associated with iCloud. I've never really had any problems assoctiated with having two IDs on one device. Usually just an extra step when I get a new device or have to restore either of them for some reason. Though I understand that this is probably not what you plan on doing, I thought I would use it as an example of what the IDs are really associted with on the devices.

  • Giving error while creating a sales contact for the previous year (2008)

    Hi Friends,
    We are currently with SP12. When we try to create a sales contract for the previous year it is giving error like "Schedule line is for the item 100 cannot be after the order's latest delivery date".
    i tried debugging and found that that there is a rule created for this (in SP12). I commented the rule and tried to create a contract but, again got an error "Error while saving". This error I can't catch while debugging.
    I even didn't find where the schedule line date and header cancel dates are set so that I can change the dates manually.
    If any one has any idea, kindly help me.
    Best regards,
    Swarna Seeta

    Hi Wolfhard,
    Thanks for the reply.
    You are right and I have uncommented the line which assigns true to the return value and the contract got saved now.
    Thank you so much.
    I just want to know whether commeting this rule effects any of the functionalities of the sales contract.
    Best regards,
    Swarna Seeta

  • I have been trying to create an apple ID for the past 2 days and cannot succeed : it states an unknown error has occurred and no ID is created. What to do?

    i have been trying to create an apple ID for the past 2 days and cannot succeed : it states an unknown error has occurred and no ID is created. What to do?

    The internet is the internet. if its not working then its something to do with your not allowing cookies from apple's site or they are having issues.

  • How to give error message for the screen element text field when wrong i/p

    How to give error message for the screen element text field when wrong i/p
    when wrong input given
    eg. 
    I have a text box with SBOOK-CARRID
    so when user give wrong entry in text box i.e LG
    then I should give some error stating that the the input is invalid or not available ,
    now it showing the error of standard messages,
    i want manual message to be displayed when error comes.
    Thank you,
    Regards,
    Jagrut Bharatkumar Shukla

    Hi all,
    Thank you for your valuable reply,
    but the thing is that its a screen field,
    i.e text box not a selection screen
    i created in screen layout
    with name sbook-carrid
    now i want to get error message display if wrong i/p is given
    thank you.
    Regards,
    Jagrut bharatkumar Shukla,

  • Error: Request for the permission of type 'System.Data.SqlClient.SqlClientPermission, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed

    SharePoint 2010 -
    I have created a console utility that further calls the stsadm.exe to Export sites from one site collection in a DB to another site collection in another DB of the same web application.
    Export works fine. But during Import, I get the following errors
    [ListItem] [Admin] Progress: Importing
    [ListItem] [Admin]   Verbose: List URL: /pwa1/GTR/7 GTR  Programme
    [ListItem] [Hol plans.xls] Progress: Importing
    [ListItem] [Hol plans.xls]   Verbose: List URL: /pwa1/GTR/7 GTR  Programme
    [ListItem] [Time.doc] Progress: Importing
    [ListItem] [Time.doc]   Verbose: List URL: /pwa1/GTR/7 GTR  Programme
    [ListItem] [AP Docs] Progress: Importing
    [ListItem] [AP Docs]   Verbose: List URL: /pwa1/GTR/7 GTR  Programme
    [ListItem] [Update - June 27th.pdf] Progress: Importing
    [ListItem] [Update - June 27th.pdf]   Verbose: List URL: /pwa1/GTR/7 GTR  Programme
    [ListItem] [Update - June 27th.pdf]   Error: Request for the permission of type 'System.Data.SqlClient.SqlClientPermission, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
    [ListItem] [Update - June 27th.pdf]   Error: Request for the permission of type 'System.Data.SqlClient.SqlClientPermission, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
    [ListItem] [Update - June 27th.pdf]   Error: Request for the permission of type 'System.Data.SqlClient.SqlClientPermission, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
    FatalError: Request for the permission of type 'System.Data.SqlClient.SqlClientPermission, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
    Progress: Import did not complete.
    1. Does the console application treated as a Sandbox Solution?
    2. Do I need to configure CAS policy in wss_usercode.config? and what?
    3. What else could be configured to make this work?
    I have tried adding the following in wss_custom_minimaltrust.config but no avail.
    <SecurityClass Name="SqlClientPermission" Description="System.Data.SqlClient.SqlClientPermission, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>           
    and
    <PermissionSet
                        class="NamedPermissionSet"
                        version="1"
                        Name="SPRestricted">
    <IPermission
                          class="SqlClientPermission"
                          version="1"
                          Unrestricted="true"
                                />   
    <!-- Other IPermission -->
    </PermissionSet>
    UPDATE: It has been observed that the issue is intermittent. That is, sometimes the import works fine (event without any configuration of SqlClientPermission in any config file) but sometimes it gives the above error. I'm stuck!
    Regards, Amit Gupta

    Hi,
    According to your post, my understanding is that you get Error “Request for the permission of type 'System.Data.SqlClient.SqlClientPermission, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed
    Simple solution is to change the trust the trust level to FULL: <trust   level="[Full]"    originUrl="URL" />
    In addition, you can modify the wss_mediumtrust.config and wss_minimaltrust.config file under the path “C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\CONFIG”.
    For more information, you can refer to:
    http://blogs.msdn.com/b/navdeepm/archive/2010/02/19/system-security-securityexception-request-for-the-permission-of-type-system-data-sqlclient-sqlclientpermission-system-data-version-2-0-0-0-culture-neutral-publickeytoken-b77a5c561934e089-failed.aspx
    http://www.fewlines4biju.com/2011/01/request-for-permission-of-type_18.html
    http://techsolutions-at-desk.blogspot.com/2011/08/request-for-permission-of-type.html
    Thanks,
    Linda Li                
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Linda Li
    TechNet Community Support

  • Error Message for the cancellation of paid billing document

    Hi,
    Can i create and error message for the cancellation of paid billing document? If yes, how can i create such.
    Overview:
    Accounting document is created upon creation of billing document. Upon payment, document cleared is the accounting document created. There are instances wherein accounting document was already cleared but our user is still able to reversed billing document. Now, i want to create an error message or user exist wherein, when a user will not be able to reverse the billing document if the accounting document attached to this billing document is already paid.
    Thank you and best regards.
    Rachelle

    Hi Rachel,
    You can make use of the exit (Include) MV45AFZZ. The corresponding form routine is FORM USEREXIT_SAVE_DOCUMENT_PREPARE.
    In this exit, For the given billing document ( which is going to be cancelled ), pick up the accouting document from BSEG tables.
    For this accouting document, Pass this to BSAD Table ( Customer clleared items) 
    If BSEG-BELNR = BSAD-BELNR and
      BSEG-Acc.Year = BSAD-Acc,year )..
    Then throw a error message and EXIT.
    So for all the cleared docments , user can not cancel the invoices.
    Regards,
    Sai

  • Unable to open PDF portfolio (Error Msg: "For the best experience, open this PDF portfolio in...)

    I am having a problem opening an important PDF portfolio document using Adobe Reader (version 11.0.02) for Mac (Mountain Lion version 10.8.3).
    When I attempt to open the file, I come up with the error message: "For the best experience, open this PDF portfolio in Acrobat 9 or Adobe Reader 9, or later", and I am unable to view the document. This is becoming very frustrating, as I am attempting to open the document with the new version of Adobe Reader (which I have downloaded multiple times).
    If anyone has a solution for this problem that would be very helpful!
    Thanks in advance.

    Hi,
    Thanks for the reply. No I'm not using iPad, I have a MacBookPro. I just wasn't sure which forum was best to post this question in.
    I have flash but Adobe still won't open my documents.
    Anyway, thanks for your help.
    Lauren

  • I have iphone 4 os 7.04, tried updating to 7.1, but continously shows error that I dont have working internet connection, though I have one and tried via wifi and 3g same error comes. The update has been downloaded, agree pressed but no further??

    I have iphone 4 os 7.04, tried updating to 7.1, but continously shows error that I dont have working internet connection, though I have one and tried via wifi and 3g same error comes. The update has been downloaded, the page shping license agreement comes. As soon as I press agree, it asks me to wait for verification and then this error that there is no working internet connection comes, even though I have one and it works fine

    Try these steps as needed:
    Reset phone: press both the home and power buttons, releasing when the Apple logo appears
    Settings > General > Reset > Reset Network Settings.  You will have to re-enter WiFi passwords
    Connect phone to iTunes on your computer and update using iTunes
    iOS: How to update your iPhone, iPad, or iPod touch

  • HT1338 I am getting an error message for the Update store, saying "To Update this application, sign in to the account you used to purchase it."

    I am getting an error message for the Update store, saying "To Update this application, sign in to the account you used to purchase it."  how do I get rid of these Old unneccisary Updates?  anyone?

    Welcome to Apple Communities
    What's this app? You need to use another Apple ID to update it

  • Hide the error msg for the mandatory fields

    hi
    how can i hide the error msg for the mandatory fields when they are not entered?? when i don't put a value in a mandatory field and commit the form, an error msg occurs teelling to enter the value for that mandatory field, but the error msg is not friendly at all and i want to hide it.
    thnaks

    User,
    I'll assume you are talking about ADF Faces + ADF Business Components application, since you don't mention it.
    If you are talking about the pop-up Javascript dialog box that pops up, you can do the following:
    1). Set required=false on those fields in your JSP.
    2). Set showrequired=true on those same fields so that there is a visual indication that the fields are required
    3). Ensure the attribute to which the fields are bound have "mandatory" set to true in the BC's
    Now, when you commit the form, you will not see the Javascript pop-up, but you will see a message in the af:messages component.
    Best,
    john

  • Create new CBO statistics for the tables

    Dear All,
    I am facing bad performance in server.In SM50 I see that the read and delete process at table D010LINC takes
    a longer time.how to  create new CBO statistics for the tables D010TAB and D010INC.  Please suggest.
    Regards,
    Kumar

    Hi,
    I am facing problem in when save/activating  any problem ,so sap has told me to create new CBO statistics for the tables D010TAB and D010INC
    Now as you have suggest when tx db20
    Table D010LINC
    there error comes  Table D010LINC does not exist in the ABAP Dictionary
    Table D010TAB
         Statistics are current (|Changes| < 50 %)
    New Method           C
    New Sample Size
    Old Method           C                       Date                 10.03.2010
    Old Sample Size                              Time                 07:39:37
    Old Number                51,104,357         Deviation Old -> New       0  %
    New Number                51,168,679         Deviation New -> Old       0  %
    Inserted Rows                160,770         Percentage Too Old         0  %
    Changed Rows                       0         Percentage Too Old         0  %
    Deleted Rows                  96,448         Percentage Too New         0  %
    Use                  O
    Active Flag          P
    Analysis Method      C
    Sample Size
    Please suggest
    Regards,
    Kumar

  • Can we create two dashboard prompts for the same column in the samepage

    hi ,
    can we create two dashboard prompts for the same column on the same page,
    I have a date column and I am trying to create 2 dashboard prompts on the same page one as from date and the other one as to date.Is this possible to create.When I am trying to create it is giving me error like cannot use same column for creating the prompt
    Any suggestions or ideas

    863997 wrote:
    hi ,
    can we create two dashboard prompts for the same column on the same page,
    I have a date column and I am trying to create 2 dashboard prompts on the same page one as from date and the other one as to date.Is this possible to create.When I am trying to create it is giving me error like cannot use same column for creating the prompt
    Any suggestions or ideasYou are correct. You cannot build two prompts on the same column. Use this link for instructions on how to build a "between prompt" because of this fact:
    http://oraclebizint.wordpress.com/2008/02/26/oracle-bi-ee-101332-between-prompts-for-date-columns-using-presentation-variables/

  • Error While executing the Standard Program RSEINB00

    Hi,
    I am trying to execute the Standard Program RSEINB00.
    The input parameters for this program are
    1. File path along with name
    2. Port.
    File path I am giving the application server directory along with the filename.
    For port. i have created a port in WE21.
    For both outbound parametes I selected the Physical directory and gave directory name and file name in both tabs and saved the port definition.
    Now I am passing the port to the RSEINB00 program.
    it is giving an error File cannot be opened.
    Can any one help me on this. Can someone guide me how to use RSEINB00 to read file from application server.
    thanks

    Hi,
    I think,you missed out some steps while creating Port.so please follow the below steps to resolve the issue.
    we21->click on your port number->outbound file tab->function module: EDI_PATH_CREATE_MESTYP_DOCNUM.
    outbound file: give file name .txt.
    and give the physical directory : /usr/sap/.......................................txt and save.
    and click on 'ACESS TEST' button and check any error is coming.
    go to outbound trigger tab-> give RFC destination name which we have created under a port in SM59.
    and one more important thing is check your unicode status is active or not.
    .Please get back me .if any issues.
    Kiran J

Maybe you are looking for