Reading a file line by line and executing the code

I need to read a file line by line and execute them simultaneously.
I use BufferedReader for reading , but for executing i tried a lot , but could not find a solution.
Kindly help and try to brief me.

If you're hoping to execute lines of java source code on the fly...then forget it. Java is a compiled language. It doesn't have an "eval" statement like other languages.
Now, you can write an interpreter for a language in Java. And I suppose you could write an interpreter for Java in Java (although at that point, you might as well choose to interpret a different language; it would probably be easier). But that would be a pretty big task.

Similar Messages

  • We are trying to implement a process so that any document that needs to be printed through our Java application will be printed as PDF using Adobe Reader. For which, We created and execute the below command line to call Adobe Reader and print the PDF on a

    We are trying to implement a process so that any document that needs to be printed through our Java application will be printed as PDF using Adobe Reader. For which, We created and execute the below command line to call Adobe Reader and print the PDF on a printer."C:\Program Files (x86)\Adobe\Reader 11.0\Reader\AcroRd32.exe" /T "\\<Application Server>\Report\<TEST.PDF>" "<Printer Name>". Current Situation: The above command line parameter when executed is working as expected in a User's Workspace. When executed in a command line on the Application Server is working as expected. But, the same is not working while executing it from Deployed environment.Software being used: 1. Adobe 11.0 enterprise version. 2. Webshpere Application Server 8.5.5.2. Please let us know if there is a way to enable trace logs in Adobe Reader to further diagnose this issue.

    This is the Acrobat.com forum.  Your question will have a much better chance being addressed in the Acrobat SDK forum.

  • What are the commands available to read a file from application server and

    What are the commands available to read a file from application server and store the file into an internal table?

    Hi,
    To read a file from an Application Server to an Object there is a command in ABAP called <b>READ DATASET</b>. After that file is transported to that object you have to do a loop and put that data in an Internal Table.
    This statement exports data from the file specified in dset into the data object dobj. For dobj, variables with elementary data types and flat structures can be specified. In Unicode programs, dobj must be character-type if the file was opened as a text file.
    For dset, a character-type data object is expected - that is, an object that contains the platform-specific name of the file. The content is read from the file starting from the current file pointer. After the data transfer, the file pointer is positioned after the section that was read. Using the MAXIMUM LENGTH addition, the number of characters or bytes to be read from the file can be limited. Using ACTUAL LENGTH, the number of characters or bytes actually used can be determined.
    In a Unicode program, the file must be opened with an arbitrary access type; otherwise, an exception that cannot be handled will be triggered.
    If the file has not yet been opened in anon-Unicode program, it will be implicitly opened as a binary file for read access using the statement
    OPEN DATASET dset FOR INPUT IN BINARY MODE.
    . If a non-existing file is accessed, an exception that can be handled can be triggered.
    Influence of Access Type
    Files can be read independently of the access type. Whether data can be read or not depends solely on the position of the file pointer. If the latter is at the end of the file or after the file, no data can be read and sy-subrc will be set to 4.
    Influence of the Storage Type
    The import function will take place irrespective of the storage type in which the file was opened with the statement OPEN DATASET.
    If the file was opened as a text file or as a legacy text file, the data is normally read from the current position of the file pointer to the next end-of-line marking, and the file pointer is positioned after the end-of-line marking. If the data object dobj is too short for the number of read characters, the superfluous characters and bytes are cut off. If it is longer, it will be filled with blanks to the right.
    If the file was opened as a binary file or as a legacy-binary file, as much data is read that fits into the data object dobj. If the data object dobj is longer than the number of exported characters, it is filled with hexadecimal 0 on the right.
    If the specified storage type makes conversion necessary, this is executed before the assignment to the data object dobj. Afterwards, the read data is placed, byte by byte, into the data object.
    System Fields
    sy-subrc Meaning
    0 Data was read without reaching end of file.
    4 Data was read and the end of the file was reached or there was an attempt to read after the end of the file.
    Thanks,
    Samantak.
    <b>Rewards points for useful answers.</b>

  • My i phone 5c wont stop restarting!! sometimes it takes hours before the phone starts working again. Sometimes when it does this red lines go up and down the screen. Im so ready to go back to my 4s does anyone know how to fix this???

    my i phone 5c wont stop restarting!! sometimes it takes hours before the phone starts working again. Sometimes when it does this red lines go up and down the screen. Im so ready to go back to my 4s does anyone know how to fix this??? Should i mention i have tried restarting back to new and i have the most up to date software. Please help

    If the center portion of the monitor is flickering then your GPU on the logic is bad or (unlikely given this symptom) that your monitor cable is pinched/damaged.
    **Imediately backup ALL your important data while you can still see things on the monitor
    Contact Apple for appt. for in shop diagnostics for full examination and for parts replacement
    nobody can give you a cost on a repair that isnt fully diagnosed online and cannot be.
    perform SMC reset just to check:
    Shut down the computer.
    Plug in the MagSafe power adapter to a power source, connecting it to the Mac if its not already connected.
    On the built-in keyboard, press the (left side) Shift-Control-Option keys and the power button at the same time.
    Release all the keys and the power button at the same time.
    Press the power button to turn on the computer. 

  • My PC is  a Windows xp professional.It don't install and execute  the  download of iTunes 10,it send a message  that the program is in a file  without support  to the down load

    My PC is  a Windows xp professional.It don't install and execute  the  download of iTunes 10,it send a message  that the program is in a file  without support  to the down load

    I'd like to have a closer look at that error message please.
    Generate the error message again. While the error message box is open, hold down the Alt key and hit the PrtSc key. Paste the screenshot into an image file (using a program like Paint), and save the file.
    Start a reply here and click the wee camera icon at the top of the reply window. Click "Choose file", browse to the image file, select the file and click "Open". Now click "Insert file" to insert the screenshot into the reply.

  • I want read PDF file from SAP directory and create a spool request or print

    Hi all,
    I want read PDF file from SAP directory and create a spool request or print the pdf through SAP. Can any body  help me in this.
    Also please write to me if its possible to open PDF from SAP directory to adobe pdf reader.
    Thanks in advance,
    Sunny

    Hi Sunny,
    Check these links.
    http://www.sapdevelopment.co.uk/reporting/rep_spooltopdf.htm
    http://www.erpgenie.com/sap/abap/pdf_creation.htm
    http://www.geocities.com/mpioud/Z_EMAIL_ABAP_REPORT.html
    http://www.thespot4sap.com/Articles/SAP_Mail_SO_Object_Send.asp
    http://www.sapdevelopment.co.uk/reporting/email/attach_xls.htm
    Hope this resolves your query.
    Reward all the helpful answers.
    Regards

  • I have sent files several times now and when the recipient clicks the link to open. it says page cannot be found.  This just started happening.  what needs to be corrected?

    In Adobe Send, I have sent files several times now and when the recipient clicks the link to open, it says page cannot be found.  This just started happening.  What needs to be corrected?

    I can think of a couple of reasons for this behavior.
    You inadvertently turned off the sharing for the files.
    The link that the user is clicking on is incomplete; perhaps it got broken across lines in an email message. Are you sending Anonymous Links or Personalized Invitations? If the former, are you certain that you copied the entire link?
    Some things to try.
    Have the user send the link back to you so that you can test it. Does it work for you?
    If you look at your Sent Files list, is the name in the Sent To column struck through (e.g., John Smith)? That would indicate that it has been unshared.
    If you could get back to me with answers, perhaps we can get to the bottom of this.

  • I am trying to get space on an external hard drive which has some old time machine back up files that I do not need but can not eliminate, even by going into the time machine, clicking on the backup file to be eliminated and using the drop down eliminate

    I am trying to get space on an external hard drive which has some old time machine back up files that I do not need but can not eliminate, even by going into the time machine, clicking on the backup file to be eliminated and using the drop down menu with the gear box symbol to eliminate

    I cannot find this 300GB "Backup" in the Finder, only in the Storage info when I check "About This Mac".
    You are probably using Time Machine to backup your MacBook Pro, right? Then the additional 300 GB could be local Time Machine snapshots.  Time Machine will write the hourly backups to the free space on your hard disk, if the backup drive is temporarily not connected. You do not see these local backups in the Finder, and MacOS will delete them, when you make a regular backup to Time Machine, or when you need the space for other data.
    See Pondini's page for more explanation:   What are Local Snapshots?   http://pondini.org/TM/FAQ.html
    I have restarted my computer, but the information remains the same. How do I reclaim the use of the 300GB? Why is it showing up as "Backups" when it used to indicate "Photos"? Are my photos safe on the external drive?
    You have tested the library on the external drive, and so your photos are save there.  
    The local TimeMachine snapshot probably now contains a backup of the moved library.  Try, if connecting your Time Machine drive will reduce the size of your local Time Machine snapshots.

  • You have too many sessions open. Please close one and execute the workitem.

    Hi all,
    I am new to Portal.
    we have a SAP Inbox Iview that works fine, but the problem is when the user try to execute Purchase Requicition Approval, the error "You have too many sessions open. Please close one and execute the workitem." appears. What really bothers me is that the error appears as IE error message but the detail of the error looks like SAP.
    Your help will be appreciated.

    wanda89 wrote:
    Most started out with 200-250 limits and now are at 1,000 or more in less than a year.Well, as noted, store cards can be a building tool and as I understand it you have been in that process for about a year and congrats on your progress. That said, I would not be applying for any additional store cards if there is not a specific need for it. This is not the type of credit you want in your profile in the long run. With regard to closing them: I don't know how this will affect your UTIL as I am not aware of your other cards limits however there are many people that have closed these types of cards when they determined there was no use for them, they were not needed any more, they were not the type/quality of cards they wanted to have in the long run, and lastly the history of that card would remain on their report for 10 years. Some bare bones info and the affects of closing cards: http://ficoforums.myfico.com/t5/Credit-Cards/Closing-Credit-Cards/td-p/347190 All that said, while the above lists the math of it all, if you will, it does not speak to the aspect of quality. As you continue to grow, how do you want your profile to look to lenders? Do you want to have 10 low quality store cards won by the credit card trick with limits in the 1k range that you may never use and can't really use substantially anyway as your UTIL would go through the roof very quickly with a 1k limit or do you want a lower number of high quality cards with healthy limits that will continue to grow overtime if you show them the respect they deserve?

  • When copying raw files from Extreme IV card to hardrive, finder copies a few files then exits task and wipes the card clean of all images.

    When copying raw files from Extreme IV card to hardrive, finder copies a few files then exits task and wipes the card clean of all images.  Have tried new card and card-reader to no avail.  Have done this many times on other macs with no problems.
    Can edit files off the card, in CameraRaw, prior to 'copying' them, ie can 'save as' to the hard drive, so files seem okay on card, before I try to copy them using copy and paste.
    Running OS 10.8.3 on a new macbook pro.

    Rita,
    The process for determining what is causing the files to be corrupt can be a tedious one depending on the following:
    1. Can you review the images on your camera's LCD screen without problems? If not then the problem is most probably either a corrupted/faulty memory card or a faulty camera. If this is the case then your best bet at recovery (of sorts) is to use a program such as BrezzeBrowser from BreezeSys to extract the embedded jpeg versions of the corrupted RAW files from within each RAW file. Chances are, you won't manage to actually repair the corrupted RAW file but the jpegs are better than nothing.
    2. If the images review ok on your camera but are corrupted when viewing on your computer and there seems to be no other problem with other files on your computer then it may be either a faulty card reader or usb/firewire cable between the card reader and the computer that is the culprit. Try the card reader with a different cable and also try a different card reader to determine the cause of the corruption.
    3. If your symptoms are that you get different files corrupting over time when viewing them on your computer then the problem may be any one of either failing RAM memory, hard disk, hard disk controller or IDE/SATA hard disk cables. This is where the troubleshooting can be pretty tedious testing then eliminating each item from the list of suspicious pieces of hardware. Try the card and card reader on an altogether different computer to see if the files transfer correctly to that computer. If so then the problem lies with your computer hardware. If you haven't already done so at this stage, backup all your important data immediately (hopefully you keep backs anyway).
    Hope this helps.

  • I have accidentally deleted off my Mac a preferences file for Adobe photoshop and now the program cannot initialize. I have talked to Apple and then say that if Adobe can isolate the file they can help me restore it from my time machine. How do I isolate

    I have accidentally deleted off my Mac a preferences file for Adobe photoshop and now the program cannot initialize. I have talked to Apple and then say that if Adobe can isolate the file they can help me restore it from my time machine. How do I isolate the file ?

    Do you have the path to this file and name of this file?

  • In Photoshop Elements 12, is there a way to batch process all photos in a file with 'Auto Tone' and save the changes?

    In Photoshop Elements 12, is there a way to batch process all photos in a file with 'Auto Tone' and save the changes?

    Thank you, that was perfect!
    Yoni

  • I have Adobe photoshop cs5. need to update camera raw, cause my camera raw is  2010and does not read my camera,  I went out and downloaded the new one and it does not link to adobe photoshop cs5

    I have moved my Photoshop CS5 to my traveling computer,a Surface Pro 3.  I have photoshop loaded but in trying to look at raw images it says my camera raw does not support the sony alpha 65 which is what I have.  I went out and tried to download the newest raw version and even went out and did a zipfile download and it will not update my current version.  What should I do

    I have 6.0.  Tried to download newest verion and it will not download.  Went out and then downloaded a zipfile and it still will not download, thus cannot look at my raw pictures.
    Thanks, John
    m: gener7 
    Sent: Thursday, December 11, 2014 6:01 PM
    To: JOHN STAHLY
    Subject:  I have Adobe photoshop cs5. need to update camera raw, cause my camera raw is  2010and does not read my camera,  I went out and downloaded the new one and it does not link to adobe photoshop cs5
    I have Adobe photoshop cs5. need to update camera raw, cause my camera raw is  2010and does not read my camera,  I went out and downloaded the new one and it does not link to adobe photoshop cs5
    created by gener7 <https://forums.adobe.com/people/gener7>  in Photoshop General Discussion - View the full discussion <https://forums.adobe.com/message/7007148#7007148>

  • SharePoint 2010 Allow User to Add Comments to Files in a Library and to the Header of the Web-Page

    (1) I need to allow an end-user to be able to add comments to files either when they are added to a library or after they are added. I didn't see a Column available for adding to a Document Library for "Comments".
    (2) I need the same user to be able to add text/comments to the Header of the web-page that contains the library (above the library at the top of the screen).
    When I (the SP Admin) add the "Content Editor Web-Part" to the top of the web-page that contains the Document Library, the Toolbar disappears. The Content Editor Web-Part would be ideal to allow the end-user to add comments to the Header, but I
    really need the Toolbar available.
    Is there another Web-Part that I could use for allowing comments to be added to the Header of a web-page without disabling the Toolbar, or is there a known-fix for allowing the Toolbar to be available and functional after adding a Content Editor Web-Part?
    JCashon

    Hi,
    According to your post, my understanding is that you want to add Comments to Files in a Library and to the Header of the Web-Page.
    (1)If you use the document content type in the library, it will contain the “Comments” field automatically. When you add the document, you can enter the conments. You can also edit the “Comments” field after the document added.
    (2)If you add the add the "Content Editor Web-Part" to the AllItem.aspx Page, you can add the text to the web part as the Header.
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • I cannot install adobe reader. I get so far and get the message "Error 1324. The oath All folders or the volume is invalid. Please enter it again" can you help?

    i cannot install adobe reader. I get so far and get the message "Error 1324. All folders or the volume is invalid. Please enter it again" can you help?

    We need to know if any registry settings are causing this error.  Please follow these instructions:
    from Windows Start | Search: type regedit and hit Enter; you will see a window like this
    now click on the little arrow ▹ left from HKEY_CURRENT_USER
    Next click the arrow ▹ beside Software, then Microsoft, then Windows, then CurrentVersion, then Explorer, then click on User Shell Folders
    all entries on the right side should start with %USERPROFILE%
    If you have anything different, this may be the cause for the install failure.
    Now you need to repeat the same thing for another key:
    ▹ HKEY_LOCAL_MACHINE ▹ Software ▹ Microsoft ▹ Windows ▹ CurrentVersion ▹ Explorer ▹ User Shell Folders
    Here all entries should start with %PUBLIC% or %ProgramData%.  If you have anything different, this may also be the cause for the install failure.

Maybe you are looking for

  • Error codes on install...what does it mean?

    HI all -- I had to uninstall and install premiere pro cs4 on vista and when it was done I received the following message: Media Encoder CS4 Dolby Error Error Code 2 Adobe Premiere Pro CS4 Error Error Code 2 Adobe Premiere Pro CS4 Language Pack Error

  • Problem with TreeMap

    I had a problem that I believe was similar to this posting: http://forum.java.sun.com/thread.jsp?forum=24&thread=200558 although mine involves a TreeMap. I am adding approximately 250 mappings to a TreeMap, where the key is a String. Each key is uniq

  • Change frame color of brushed canvas theme

    Dear all, is there a way to change the frame color of the brushed canvas theme? I've been trying to change the color to align it with my used colors but it looks like the background is a complete image. Any kind of help is highly appreciated. PS: I'm

  • #MULTIVALUE When it Occurs and How Do I resolve it

    I have a query and report built from two different data providers.  One of the data providers is a reference universe that I have a query called Material Item which provides descriptive informaiton about an item of a shipment that I want to include i

  • Call Attached data on Identification screen of IC WebClient

    Hi All, How can we show the Call attached data on IC Agent identification screen of IC WebClient. I know that we have a logical link IC_CAD which requires a manual click to the navigation bar and view the CAD data. Is it possible to show the call att