Compile a zip file or temp file or file in memory

how can I compile a zip file or temp file or file in memory inside my java program? examples please.
thanks,

'compile'?
What language are you compiling? Does the compiler support leaving the output in memory? If yes then you use Runtime.exec(). If no then you will have to re-write the compiler to support that, presuming you can get the source.
(Of course I am not sure what good that would do you. You would also have to write some other application to use it once it was in memory, since the OS probably isn't set up to do that.)

Similar Messages

  • Creating Rpt Conmgr Cache File In Temp folder while opening report from app

    hi frends,
    I m facing one problem with my Web based erp application which is developed in .net ,
    in my application when i open the  report from my applicaiton , in my temp folder there one file gets created name is "rpt conmgr cache"
    bcoz of this for few records also my report takes too much time and opens very slow and it takes long time, and it happens in some of the reports only , other reports are working cool and its not creating any file in temp folder,,,
    so can u guide me whats this file and what can be the solution for it,
    Thanks
    Mithun

    I have never heard of "rpt conmgr cache" being created in any temp directory. Is that the actual name of the file you are seeing?
    As you have not applied any updates, I'd recommend applying SP 4 to your development system. SP 4 is here:
    https://smpdl.sap-ag.de/~sapidp/012002523100006255422008E/crxir2_sp4_inc.exe
    Next, I'd recommend getting the SP 4 runtime on the client. You have two options; MSI file of create your own deployment sing the msm files. The MSI file is here:
    https://smpdl.sap-ag.de/~sapidp/012002523100009657852008E/crxir2sp4_net_si.zip
    MSM is here:
    http://resources.businessobjects.com/support/communityCS/FilesAndUpdates/crxir2sp4_net_merge_modules.zip
    Also, I don't think I still have a good handle on this:
    "my report takes too much time and opens very slow and it takes long time"
    What is long time? Two seconds, two minutes, etc.?
    Ludek

  • PI needs to obtain a zip file via FTP using the File adapter

    I have a scenario where PI needs to obtain a zip file via FTP using the File adapter, this zip file contains a number of txt files that I need to process, and the content of one of them send it to an ECC, now I'm using the PayloadZipBean Module in the Sender FIle Adapter, and I have two things if I use the Message Protocol as File, I get a Payload for each txt file in the zip file, but this payload has no structure, and if I use the File Content Conversion I get an XML strcuture with only one field and a strange string in it, and somewhere in this string the names of the files I assume all the content of the zip file, can anyone help on how could I achieve what I need that is to pull the zip file via SAP PI, then unzip it, and with the content of one of the txt files send it to an ECC via ABAP Proxy, thanks in advance for your answers.
    Regards,
    Raul Alvarado

    Hello Raul,
    you can do it in futher way ...
    pickup zip file and simply extract and dump it in another temp folder (can use scripts on OS level).
    @ then Use another sender communication channel to pickup all these text file .
    for further clarification you can use these links also. -
    Process txt files in zip file
    Accessing File using FTP from Java Mapping
    File Sender Adapter with FTP protocol
    BR
    Raj

  • To delete clean up software which removes file from temp folder

    when i pause a download and switch off the system and resume it after 2 or more days an error c:\Documents and settings\ ....etc couldn't save the file appears. Some one replied me in this forum that i may 've cleanup software which has deleted the file in temp folder. How to detect and delete this cleanup software if i have it ? i don't know if i've this because i haven't seen it in my program list. i'm using windows xp.
    == This happened ==
    Every time Firefox opened

    when i pause a download and switch off the system and resume it after 2 or more days an error c:\Documents and settings\ ....etc couldn't save the file appears. Some one replied me in this forum that i may 've cleanup software which has deleted the file in temp folder. How to detect and delete this cleanup software if i have it ? i don't know if i've this because i haven't seen it in my program list. i'm using windows xp.
    == This happened ==
    Every time Firefox opened

  • Understanding compile errors due to copying code from a doc file and not a txt file

    SITUATION:
    My instructor for my micro-controller class refuses to save sample code to a text file and instead saves it to a word document file instead. When I open up the doc file and copy/paste the code into my IDE "CodeWarrior" it causes errors upon compile time.
    I am having to rewrite all the code into a text editor and then copy/paste it into my IDE.
    MY UNDERSTANDING:
    I was told to always save code as a text file because when you save code as a word document file it will bring in unwanted characters when your copy/pasting the code into your IDE for compiling.
    Their are students in my class using the schools computers running "Windows" that copied and pasted the code into CodeWarrior and it compiled fine. This is not only frustrating but confusing. However, I know their are students in class with "PC's" running windows that had the same trouble I did so I know it's not a Mac issue. 
    Also I am running "Parallels" because my IDE for this micro-controller "Code Warrior" is not avaiable for my OS. I realize there are several IDE's out there that require "Windows OS" in general but I know this situation is not a Mac issue or Parallels issue or even a Windows issue. It's purly an issue of formatting that is done between the file being copied and the target program or so I'm understanding.
    Can someone exlain to me in better words or perhaps provide a resource, documentation or article that will enlighten me on this issue. I would like to better state my case next time. I'm tired of being told this is a MAC issue and that Windows is just plain better.

    The problem is (as you suggest) almost certainly a gremlin issue - characters that for one reason or another Code Warrior cannot interpret correctly. Why it happens to you and not others is a different matter. That could mean that the pofessor uses fonts that are not on your machine, or that he is using a different version of word, or it could be in how you access the data. For instance, if the prof posts this word doc on the web you may get different results if you download the file and open it in Word as opposed to opening it directly from a web browser.
    The sure-fire solution is to download TextWrangler and copy the code in there first. TW has a number of tools for finding and removing unpleasant characters. it adds a step, but... you could also try resaving the doc file as a plain text file from within word.

  • Temp File Name Schema in Receiver File adapter

    Hi,
    I have a scenario where i have to write the file in the temperaory location before writing it to the FTP loacation, I have selected the Processing Parameter as "Use Temperory File" but when the file gets created it is padded with the Message Id, is thr any option to get the file name as the temp file name without the Message Id or timestamp.
    Please let me know if any one has come across such scenario.
    thankx,
    shree

    Hi,
    Under Write Mode, specify whether the target file is to be written directly in the specified directory. If an additional step is to be added using a temporary file, choose Use Temporary File.
    You can specify a naming scheme for the temporary file under Temporary File Name Scheme.
    This schema is used to determine the prefix and extension of the temporary file; to ensure a unique file name, a time stamp is also added to the name during processing.
    The schema xitemp.tmp, for example, results in the file name xitemp<timestamp>.tmp
    So you have to customise the file name in schema.
    see below link
    http://help.sap.com/saphelp_nw2004s/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm
    Regards
    Chilla

  • Reciever File Adapter - Temp File Name Scheme using Variable Substitution

    How can I create a temporary file that uses variable substitution? 
    We are having a problem with files merging when we write files using the "Use Temporary File" setting on the FIle Adapter.  So two independent files are merging into a single file.  We are not using the "Append" setting.
    We would like to use a Temp File Name Scheme that would append the message id onto the temporary file name. 
    Using variable substitution we created a msgid variable.  When added to the temporary file name using %msgid% the temporary file name is created with %msgid% in the name instead of the actual message id.  We put the variable into the "File Name Scheme" as well and the end completed file used the message id in the name.
    Any Ideas?
    Thanks,
    Matt

    HI Matthew,
    Why are you adding the message id into the temporary file??
    I understand that you want the output of the filename to contain message id .. and hence you are using variable substitution for the same.
    Temporary file name will anyways get overwritten by the actual file name (here the actual filename will be using variable substituion).
    So i suggest to achieve your scenario you can add any name in the temporary file and maintain the desired filename you require as output in the variable subsititution.
    Temporary File Name option actually acts as a lock - unlock mechanism from PI side while the file is getting written to the file server so that while PI is writting the file no third party application batch program picks it up.
    I hope this helps.
    Cheers
    Dhwani

  • How to create temp files in temp tablespace

    Dear all,
    Due to outage of our SAN, we our out of production for the
    last 3 days. By the grace of Almighty we have restored production by
    database recovery from our standby backup. Since temp tablespace and
    temp data files do not taken as backup for standby, now after recovery
    we are getting abap dumps asking for temp_1 and temp_2 datafiles.
    Please guide us how to create temp files. v$tablespace is showing tablespace PSAPTEMP but datafile are not there
    Abap dumps are giving these errors as mentioned below
    ====================================================
    The exception must either be prevented, caught within the procedure            
    "DATA_SELECTION"                                                              
    "(FORM)", or declared in the procedure's RAISING clause.                       
    To prevent the exception, note the following:                                  
    Database error text........: "ORA-01157: cannot identify/lock data file 256 -  
    see DBWR trace file#ORA-01110: data file 256:                                 
    '/oracle/SD1/sapdata4/temp_2/temp.data2'"                                     
    Internal call code.........: "[RSQL/FTCH/MARA ]"                               
    ===================================================
    another one asking for 
    '/oracle/SD1/sapdata3/temp_1/temp.data1'"
    Best Regards
    Waqas

    if you want to add a new tempfile to your TEMP Tablespace,you can do like that.
    <i>ALTER TABLESPACE</i> <<b><u>name of TEMP Tablespace</u></b>> ADD TEMPFILE <<b><u><b><u>pfad to the file_and_file name</u></b></u></b>> <b>SIZE</b> <size>;
    You can use also the options <i>REUS</i>E <i>autoextend off</i> or <i>on</i> .
    e.g:
    <i>alter tablespace</i> <u><b>PSAPTEMP</b></u> add <i>tempfile</i> <b><u>'/oracle/SD1/sapdata4/temp_2/temp.data2'</u></b> <i>SIZE 1000K</i> <i>REUSE</i>;
    The directory <b><u>temp_2</u></b> should exist.
    Or you can use the BR*Tools to create a new datafile. Enter brtools and follow the instructions or menu.
    More to TEMP Tablespaces see please following SAP notes:
    <u><b>659946</b></u> - FAQ: Temporary tablespaces
    <u><b>600513</b></u> - ORA-25153 after recovery due to missing tempfiles
    and the Oracle Note:
    <u><b>160426.1</b></u>: TEMPORARY Tablespaces : Tempfiles or Datafiles ?
    I hope it helps.

  • Java.util.zip.ZipFile.entries() shows only 99 files but zip file is fine.

    Hi,
    I have a wierd issue with java.util.zip.ZipFile
    Code as simple as
    ZipFile file = new ZipFile("my.zip") ;
    System.out.println(file.size());
    For this particular zip file, it says 99 files found but the zip contains more than 60,000 files. I tried the zip with unzip and zip utilities and the zip file checks out fine. I even tried to unzip the contents, and zip 'em up all over again, just to eliminate the chances of corruption while the zip was being transferred over the network.
    The same program works fine with another zip containing more or less the same number of files and prints 63730.
    Any idea? This can not possibly be related to the type of files the zips contain? right? In any case, the contents of both zips are text/xml files.
    Any help would be greatly appreciated.
    Regards,
    ZiroFrequency

    I know its a problem with this particular zip. But whats interesting is that "unzip" can easily open / verify the zip and claims that it is a valid zip.
    As I wrote earlier, I unzipped the file and zipped up the contents again in a new zip but java can't still count the contents correctly.
    So I am thinking there is something to do with the "contents" of the xmls inside the zip? (characterset issues?)
    There are no exceptions thrown and no error anywhere :(
    I basically need to pinpoint the issue so that I can have it corrected upstream as this zip file processing is an ongoing process and I need to resolve it not just once but for the periodic executions.
    Hope this helps explain the issue.

  • Dynamic Send Port : The FILE send adapter cannot open file C:\Temp for writing. Details: Access is denied.

    Hi All,
    We have requirement of using ESB toolkit and transforming incoming xml file to edi format. So, we are using ItinerarySelectReceiveXML pipeline for receiving the input from the input location and "EDISend" pipeline for transforming it into EDI and
    send it to destination.
    Now, the receive pipeline is picking up the file, but it is not processed and sent to destination.
    And, we are getting an Access Denied error from Dynamic send port.
    Error Description : 
    The FILE send adapter cannot open file C:\Users\Public\Temp for writing.
     Details: Access is denied.
    Any Immediate solutions/suggestions are appreciated...Thanks.
    Anand

    The difference between dynamic and static port would be send handler. For dynamic port, default send handler will be used and for static port the one configured on the port will be used, could you validate this configuration.
    Also sometimes, administrative privileges are not "real" administrative privileges and company admins will have limited permissions on C Drive folders. Try writing to some other folder to isolate the issue.
    Regards, Ajeet Kumar MCTS Biztalk Server

  • Repl. Partioning BSO to ASO: increase of size of .dat file in temp-folder

    Hello,
    we are shifting data from a BSO Cube to an ASO cube via replicated partitioning. The partitioning takes about 50 minutes to execute.
    Size of .dat in metadata-folder: 8 mb
    Size of .dat in default-folder: 150 mb
    Size of .dat in temp-folder: 38 gb
    Does anyone have an explanation for the enormous size of the .dat file in temp-folder?
    Many thanks in advance!
    Michael

    I am doing the same BSO to ASO. My ess00001.dat in default is 1.9GB, in metadata it is 8.2MB, the OTL file in <db> is 18MB and the outline has about 10,000 members (rough guess). Our partition replication script looks like this:
    login <user> identified by <password> on <server>;
    spool on to <logfile>;
    refresh replicated partition <srcBSO_App>.<srcBSO_DB> to <tgtASO_App>.<tgtASO_db> at <server> updated data;
    Exit;
    I have a second process running in a task scheduler that is continuously updating the aggregates in the ASO cube. Perhaps that is cleaning out my temp .dat. The MaxL command it calls is:
    execute aggregate selection on database <tgtASO_App>.<tgtASO_db> based on query_data;
    Please check out the post I put on the other thread about how we run MaxL from a calc script and other thoughts on "round tripping" Planning-ASO-Planning. Another trick: Retrieve speed is dramatically improved by disabling and working around the @XREFs.

  • Download fails, PART file in temp folder

    I rebuilt my PC on the 8th June and downloaded the latest FireFox and installed it. Within a day or two download window stopped appearing. I went into Tools, Option, Downloads to check that the window should be appearing. It should be. I noticed that their was nothing in the downloads box and picking Browes failed to produce a folder selection dialogue. I then looked in the %temp% (win XP) folder and found a .part file. Removing the .part extension allowed the file to be opened.
    Having googled the problem I looked at the about:config and found that the browser.download.dir & browser.download.lastDir keys were missing. Recreating them didn't fix the problem.
    Any suggestion on what to try next would be appreciated.
    Firefox version: 3.6.3
    Cheers
    Ian
    == Possibly after installing Adobe 9

    I had this same problem, and followed instructions from here with success (mentioned above, thank you!)
    http://kb.mozillazine.org/Unable_to_save_or_download_files
    Manually delete download history:
    ''Firefox 3: Download history is stored in the downloads.sqlite file instead of downloads.rdf. [13] Because of improvements in Firefox 3 data storage [14] there should be little need to manually delete the downloads.sqlite file, except in cases of file corruption. [15] [16] If you do delete downloads.sqlite, you should also delete downloads.rdf, if it exists.''

  • XML Files in %TEMP% folder when CONNTRANS is ran in Mobile Sales

    Hello Mobile gurus...
    Hope someone can help, I have had a couple of users who are not getting data they should be, for example Opportunities:
    When I have investigated their client it appears that there are a number of OPPORTUNITY_WRITE****************.XML files in the local users\Temp folder, these files contain the information that should have gon einto the IDES database and be viewed on the client.  I have not come across this before...
    I have re-extracted the subscription after deleting these but some, not all, re-appear and don't sync into the client database.
    I have alos uninstalled and re-installed the client software SQL etc.
    Can someone shed some light on what these files are and what is going on...???
    This is not only Opportunities but also Customers/Contacts and Activities - all listed as XML files
    Kind Regards
    Barry Dixon

    Hello Barry,
    In your registry key HKEY_LOCAL_MACHINE\SOFTWARE\SAP\MSA\MW\TL check if you have these settings :
    TL_TRACE = 1
    TL_SOAP = 3, helps in formation of <BDoc_GUID>.xml files
    SPT_IMPORT = -1 , This entry ascertains that if there are errors in BDoc processing by Conntrans, it would stop.
    RCV_TRACE = 1
    Maintain these settings and do an extract and run conntrans again. I feel the import phase of conntrans causes issues, so you can check the log file TL_TRACE.dat.
    Another thing you can check is with the RootConfig.cfg file in Bin.Net. Just make sure that the first application mentioned in this config file with tags 
    <Application>
          <Name>MSA</Name>
          <Path>C:\Program Files\SAP\Mobile\App.Net\MSA</Path>
    </Application>
    is proper and runs perfectly. Verify the path names as well.
    Thanks,
    Rohit

  • Windows file share - temp files

    We are currently migrating from Panther Server to Leopard Server.
    Mac file server is all working fine and users are happy.
    We have 2 PC's in the office who will also work from the file server. During testing I noticed that temporary files were being created by the Windows machines. Normally I would expect these temp files to disappear once the PC application had been closed on the client computer. Unfortunately this is not the case here.
    One of the main issues with this is that the temp files are the same file size as the original file. Obviously if this problem is left unchecked I could be left with 100's of MB of temp files all over the place.
    On a file called 'test save.doc', having been opened in Word, amended and saved I would end up with the following files.
    ~$st save
    ~WRD0000.tmp
    ~WRD0001.tmp
    test save
    If anyone can suggest some solutions it would be greatly appreciated.

    Just to add to the fine advice so far, sometimes just toggling the View to Column View or whatever it isn't the back will update it.
    Wonder if this works in Tiger...
    http://www.versiontracker.com/dyn/moreinfo/macosx/24356

  • 7 - Zip the system cannot find the file specified

    after extracting i get this message - 7-Zip the system cannot find the file specified

    If you are trying to install Firefox then try this:
    Download and save the full Firefox installer to the desktop and start the installation with a double-click on the desktop icon.
    You can find the full version of the current Firefox 26.0 release in all languages and for all Operating Systems here:
    *http://www.mozilla.org/en-US/firefox/all.html

Maybe you are looking for

  • How to send html table to Excel in PSP?

    Hi, I am writing a plsql server page program that produces multiple tables. I only want to export only one of the tables to Excel by pressing a button/link if possible. How to do that? Currently, if i right clicked on that table, then choose "Export

  • Access variable in the same tilme

    Can i have to access in reading at the same time (for example by 2 process in parallel) at a control (string for example) witout risk to crash the PC? Likewise, is it possible to write at the same time in a indicator  witout risk to crash the PC? How

  • No internet access after disconnecting from VPN

    Summary: windows fails to restore normal network after disconnecting from a VPN network, the PPP adapter which represent VPN connection stays in the interface list even after disconnection. system has no network access to anywhere. Synopsis: a. Win 7

  • Does Firefox 4 have the same cache policy as 3.6 ?

    Hi, FF4 doesn't seem to cache all SWF files, like 3.6 used to. For instance, check it out for yourself on this 6.7 MB file... http://pantheondev.dyndns.org/dummy.swf No matter how many times you view the SWF file, it always loads from the server and

  • Hide password in url?

    We are parsing connection-information to Discoverer so that the user does not have to log in themselves. But in the url you can se username, password and database name. How do I hide the connect string in the URL, or at least show the password as ***