I'm deplying WAR file, but temp folder isn't updating
Hi,
I'm using WL 9.2.2.
How and when does the temp folder to which WL extracts the WAR file (looks something like $WL_HOME/servers/servername/tmp/_WL_user/myapp/tptld5/war) get updated? I'm noticing that when I re-build my WAR, deploy it and then go check the contents of the temp directory, the WEB-INF/lib and WEB-INF/classes aren't updated with the latest content.
Your input is appreciated, - Dave
It may be best to recreate the folder and the smart playlists from scratch.
tt2
Similar Messages
-
Building a war file with a folder structure
How do a build a war file with a folder structure? I have code that creates JarEntrys and writes jar files and resource files etc. to the war. When I look at the war that gets created using winzip the path names for all the entries are correct and everything appears correct. When I try to deploy this to Tomcat nothing deploys. It appears my war is in a folder structure. How can a build this folder structure in the war? When I look at a good war using BeyondCompare I see folders and files in the folders just like I would see looking at a directory on my system. When I use BeyondCompare to view one of my "bad" war files that I have created everything is in the root. There are no folders and no folder structure. I am using the java.util.jar API to create the war but I don't see any methods or any API that will let me build up any sort of folder structure. It seems like I am missing something basic here.
command is same for creating jar/war/ear.
u simply need to execute jar /? for detail. -
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 openedwhen 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 -
Hi,
Because of reasons my computer needed to be refreshed. My old firefox profile folder was saved though, and with that the bookmarkbackups. As the title says I restored my bookmarks from a resent .json file, but one folder (containing probably about a hundred bookmarks) is now empty and one other is missing completely.
In some places I have a 5 levels deep folder structure for my bookmarks, but since the folders missing are from different levels I don't think this is the problem.
The now empty folder contained six or seven other folders, that in turn contained a lot of bookmarks with titles including non-alphanumerical characters. †?|&*()<-/., to be precise. However, if I restore a very old .json (from september 2013) the folders are present and contain the mentioned bookmarks - albeit much fewer, since the file is old. A few other bookmarks still present also contain the mentioned characters, so this is probably not the problem either.
The folder that is completely missing just contained a lot of bookmarks that were to be sorted.
When opening the more recent .json files (I have a whole month of automatic backups to choose from) in the firefox scratchpad it would seem that the bookmarks are missing alltogether, so I suppose that there is not much to do about it (please correct me if I'm wrong), but I definitely want to report the bug.
Is there anything at all to do about it?
Thanks,
HannaIf the bookmarks aren't present in the JSON backup then it is likely that you got a corrupted places.sqlite file at some time that caused the backup not working properly.
Did you try all the backups?
Note that the xxxx part of the bookmarks-####-##-##_xxxx.json file name shows the number of bookmarks in the file. -
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
MithunI 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 -
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!
MichaelI 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. -
Deploy war file to webapps folder
I would like to know how to get my war file to webapps folder in tomcat 6 instead of the name of the war file ?
Hi,
Thanks John Ur right there was a maitainance activity performed by orcale while i am posting.........
Hey kc8pdr,
Network Problem or site maitainance will be happen in all platform even in .Net too..........
So Bcoz of that u going beyond .Net then Java wont stop U it will say BYE BYE Pitty Boy
For ur Update just read this http://blogs.oracle.com/grantronald/2010/10/adf_better_than_net_-_official.html
Ok lets come to point... Once or thrice u never answered wht i asked
wht u actually want to ask???????? say it clearly... since until u clear in Question u cant get a clear answer........... :)
Regards,
Suganth.G -
My 5s iPhone is stuck on Itunes icon and a cable. I tried to do a restore but the iPhone isn't updated. All the labs that i send it to, couldn't fix it, what I can to? help! thanks.
Sounds like a 'stuck' Shift key. You could try to take the key off and put it back on yourself (should be some info on that from ifixit) or just take it to your local Apple Store and have them fix it.
Clinton -
SP1 Failed Update - Update missing file in temp folder
An Update to SP1 failed. The System is running now in its old state and working fine.
The problem now is, that I can't update to SP1. The SP1 Installer detects the failed patch installation, and tries to continue the installation. It fails, searching for a file that doesn't exist, in the windows temp folder.
Is there a way to tell the SP1 installer to ignore the failed installation, and behave as if it's the first time it tries to install the update?HKEY_Local_Machine\Software\Microsoft\ExchangeServer\V15\CafeRole is on a CAS Server.
HKEY_Local_Machine\Software\Microsoft\ExchangeServer\V15\MailboxRole is on the Mailbox Server.
In my case the problem was on the mailbox server. After I deleted it the
setup started normally, without noticing an uncomplete install.
Thanks, that key was exactly what I was hopping for, but I didn't know what to search for.
SP1 installation finished. -
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 DixonHello 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 -
RMAN temporary files in TEMP folder (e.g. rmanEPPDBT3.1179270528)
Hi,
When making a (cold) backup with RMAN, it creates a folder D:\TEMP and creates here files like rmanEPPDBT3.1178237439.
- Does anybody know where these files are used for?
- Can they be deleted?
- Is there an option the relocate the D:\TEMP folder to the C: drive?
Content of the file rmanEPPDBT3.1179270528 is:
SQL*Plus: Release 10.2.0.3.0 - Production on Wed May 16 01:08:48 2007
Copyright (c) 1982, 2006, Oracle. All Rights Reserved.
SQL> SQL> Connected.
SQL> SQL>
OPEN_MODE
READ WRITE
SQL> Disconnected from Oracle Database 10g Release 10.2.0.3.0 - Production
Regards,
StephanThe backup is scheduled by Enterprise Manager. RMAN output:
Status Succeeded
Exit Code 0
Step ID 73492
Targets EPPDBT3
Started 16-May-2007 02:01:14 CEST
Ended 16-May-2007 02:23:46 CEST
Step Elapsed Time 22 minutes, 32 seconds
Management Service VM001:4889_Management_Service
Output Log
SQL*Plus: Release 10.2.0.3.0 - Production on Wed May 16 01:08:49 2007
Copyright (c) 1982, 2006, Oracle. All Rights Reserved.
SQL> SQL> Connected.
SQL> SQL> SQL> Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> SQL> Disconnected from Oracle Database 10g Release 10.2.0.3.0 - Production
SQL*Plus: Release 10.2.0.3.0 - Production on Wed May 16 01:09:32 2007
Copyright (c) 1982, 2006, Oracle. All Rights Reserved.
SQL> SQL> Connected to an idle instance.
SQL> SQL> ORACLE instance started.
Total System Global Area 612368384 bytes
Fixed Size 1292060 bytes
Variable Size 197134564 bytes
Database Buffers 411041792 bytes
Redo Buffers 2899968 bytes
Database mounted.
SQL> Disconnected from Oracle Database 10g Release 10.2.0.3.0 - Production
Recovery Manager: Release 10.2.0.3.0 - Production on Wed May 16 01:09:46 2007
Copyright (c) 1982, 2005, Oracle. All rights reserved.
RMAN>
connected to target database: EPPDBT3 (DBID=4160405521, not open)
using target database control file instead of recovery catalog
RMAN>
echo set on
RMAN> run {
2> allocate channel oem_disk_backup device type disk;
3> recover copy of database with tag 'ORA$OEM_LEVEL_0';
4> backup incremental level 1 cumulative copies=1 for recover of copy with tag 'ORA$OEM_LEVEL_0' database;
5> }
allocated channel: oem_disk_backup
channel oem_disk_backup: sid=156 devtype=DISK
Starting recover at 16-MAY-07
no copy of datafile 1 found to recover
no copy of datafile 2 found to recover
no copy of datafile 3 found to recover
no copy of datafile 4 found to recover
no copy of datafile 5 found to recover
no copy of datafile 6 found to recover
no copy of datafile 7 found to recover
no copy of datafile 8 found to recover
no copy of datafile 9 found to recover
no copy of datafile 10 found to recover
no copy of datafile 11 found to recover
no copy of datafile 12 found to recover
no copy of datafile 13 found to recover
no copy of datafile 14 found to recover
no copy of datafile 15 found to recover
no copy of datafile 16 found to recover
no copy of datafile 17 found to recover
no copy of datafile 18 found to recover
Finished recover at 16-MAY-07
Starting backup at 16-MAY-07
no parent backup or copy of datafile 5 found
no parent backup or copy of datafile 6 found
no parent backup or copy of datafile 9 found
no parent backup or copy of datafile 12 found
no parent backup or copy of datafile 13 found
no parent backup or copy of datafile 7 found
no parent backup or copy of datafile 8 found
no parent backup or copy of datafile 10 found
no parent backup or copy of datafile 11 found
no parent backup or copy of datafile 1 found
no parent backup or copy of datafile 3 found
no parent backup or copy of datafile 17 found
no parent backup or copy of datafile 18 found
no parent backup or copy of datafile 2 found
no parent backup or copy of datafile 14 found
no parent backup or copy of datafile 15 found
no parent backup or copy of datafile 16 found
no parent backup or copy of datafile 4 found
channel oem_disk_backup: starting datafile copy
input datafile fno=00005 name=D:\ORACLE\ORADATA\EPPDBT3\LIFEDAT1_01.DBF
output filename=D:\ORACLE\FLASH_RECOVERY_AREA\EPPDBT3\DATAFILE\O1_MF_LIFEDAT1_34NHG40H_.DBF tag=ORA$OEM_LEVEL_0 recid=1 stamp=622689142
channel oem_disk_backup: datafile copy complete, elapsed time: 00:02:36
channel oem_disk_backup: starting datafile copy
input datafile fno=00006 name=D:\ORACLE\ORADATA\EPPDBT3\LIFEDAT2_01.DBF
output filename=D:\ORACLE\FLASH_RECOVERY_AREA\EPPDBT3\DATAFILE\O1_MF_LIFEDAT2_34NHLZ8S_.DBF tag=ORA$OEM_LEVEL_0 recid=2 stamp=622689281
channel oem_disk_backup: datafile copy complete, elapsed time: 00:02:15
channel oem_disk_backup: starting datafile copy
input datafile fno=00009 name=D:\ORACLE\ORADATA\EPPDBT3\LIFEIND1_01.DBF
output filename=D:\ORACLE\FLASH_RECOVERY_AREA\EPPDBT3\DATAFILE\O1_MF_LIFEIND1_34NHQ74W_.DBF tag=ORA$OEM_LEVEL_0 recid=3 stamp=622689415
channel oem_disk_backup: datafile copy complete, elapsed time: 00:02:15
channel oem_disk_backup: starting datafile copy
input datafile fno=00012 name=D:\ORACLE\ORADATA\EPPDBT3\LIFEIND2_01.DBF
output filename=D:\ORACLE\FLASH_RECOVERY_AREA\EPPDBT3\DATAFILE\O1_MF_LIFEIND2_34NHVFNZ_.DBF tag=ORA$OEM_LEVEL_0 recid=4 stamp=622689558
channel oem_disk_backup: datafile copy complete, elapsed time: 00:02:25
channel oem_disk_backup: starting datafile copy
input datafile fno=00013 name=D:\ORACLE\ORADATA\EPPDBT3\LIFEIND2_02.DBF
output filename=D:\ORACLE\FLASH_RECOVERY_AREA\EPPDBT3\DATAFILE\O1_MF_LIFEIND2_34NHZYWB_.DBF tag=ORA$OEM_LEVEL_0 recid=5 stamp=622689706
channel oem_disk_backup: datafile copy complete, elapsed time: 00:02:25
channel oem_disk_backup: starting datafile copy
input datafile fno=00007 name=D:\ORACLE\ORADATA\EPPDBT3\LIFEDAT2_02.DBF
output filename=D:\ORACLE\FLASH_RECOVERY_AREA\EPPDBT3\DATAFILE\O1_MF_LIFEDAT2_34NJ4J4W_.DBF tag=ORA$OEM_LEVEL_0 recid=6 stamp=622689820
channel oem_disk_backup: datafile copy complete, elapsed time: 00:01:55
channel oem_disk_backup: starting datafile copy
input datafile fno=00008 name=D:\ORACLE\ORADATA\EPPDBT3\LIFEDAT2_03.DBF
output filename=D:\ORACLE\FLASH_RECOVERY_AREA\EPPDBT3\DATAFILE\O1_MF_LIFEDAT2_34NJ83DP_.DBF tag=ORA$OEM_LEVEL_0 recid=7 stamp=622689937
channel oem_disk_backup: datafile copy complete, elapsed time: 00:01:55
channel oem_disk_backup: starting datafile copy
input datafile fno=00010 name=D:\ORACLE\ORADATA\EPPDBT3\LIFEIND1_02.DBF
output filename=D:\ORACLE\FLASH_RECOVERY_AREA\EPPDBT3\DATAFILE\O1_MF_LIFEIND1_34NJCPTV_.DBF tag=ORA$OEM_LEVEL_0 recid=8 stamp=622689991
channel oem_disk_backup: datafile copy complete, elapsed time: 00:00:55
channel oem_disk_backup: starting datafile copy
input datafile fno=00011 name=D:\ORACLE\ORADATA\EPPDBT3\LIFEIND1_03.DBF
output filename=D:\ORACLE\FLASH_RECOVERY_AREA\EPPDBT3\DATAFILE\O1_MF_LIFEIND1_34NJFG2X_.DBF tag=ORA$OEM_LEVEL_0 recid=9 stamp=622690050
channel oem_disk_backup: datafile copy complete, elapsed time: 00:00:56
channel oem_disk_backup: starting datafile copy
input datafile fno=00001 name=D:\ORACLE\ORADATA\EPPDBT3\SYSTEM01.DBF
output filename=D:\ORACLE\FLASH_RECOVERY_AREA\EPPDBT3\DATAFILE\O1_MF_SYSTEM_34NJH57T_.DBF tag=ORA$OEM_LEVEL_0 recid=10 stamp=622690081
channel oem_disk_backup: datafile copy complete, elapsed time: 00:00:35
channel oem_disk_backup: starting datafile copy
input datafile fno=00003 name=D:\ORACLE\ORADATA\EPPDBT3\SYSAUX01.DBF
output filename=D:\ORACLE\FLASH_RECOVERY_AREA\EPPDBT3\DATAFILE\O1_MF_SYSAUX_34NJJ8GN_.DBF tag=ORA$OEM_LEVEL_0 recid=11 stamp=622690110
channel oem_disk_backup: datafile copy complete, elapsed time: 00:00:25
channel oem_disk_backup: starting datafile copy
input datafile fno=00017 name=D:\ORACLE\ORADATA\EPPDBT3\DCDIND1_01.DBF
output filename=D:\ORACLE\FLASH_RECOVERY_AREA\EPPDBT3\DATAFILE\O1_MF_DCDIND1_34NJK1NJ_.DBF tag=ORA$OEM_LEVEL_0 recid=12 stamp=622690134
channel oem_disk_backup: datafile copy complete, elapsed time: 00:00:25
channel oem_disk_backup: starting datafile copy
input datafile fno=00018 name=D:\ORACLE\ORADATA\EPPDBT3\DCDDAT1_01.DBF
output filename=D:\ORACLE\FLASH_RECOVERY_AREA\EPPDBT3\DATAFILE\O1_MF_DCDDAT1_34NJKTVC_.DBF tag=ORA$OEM_LEVEL_0 recid=13 stamp=622690157
channel oem_disk_backup: datafile copy complete, elapsed time: 00:00:25
channel oem_disk_backup: starting datafile copy
input datafile fno=00002 name=D:\ORACLE\ORADATA\EPPDBT3\UNDOTBS01.DBF
output filename=D:\ORACLE\FLASH_RECOVERY_AREA\EPPDBT3\DATAFILE\O1_MF_UNDOTBS1_34NJLN2G_.DBF tag=ORA$OEM_LEVEL_0 recid=14 stamp=622690181
channel oem_disk_backup: datafile copy complete, elapsed time: 00:00:25
channel oem_disk_backup: starting datafile copy
input datafile fno=00014 name=D:\ORACLE\ORADATA\EPPDBT3\SMARTDAT1_01.DBF
output filename=D:\ORACLE\FLASH_RECOVERY_AREA\EPPDBT3\DATAFILE\O1_MF_SMARTDAT_34NJMF9R_.DBF tag=ORA$OEM_LEVEL_0 recid=15 stamp=622690209
channel oem_disk_backup: datafile copy complete, elapsed time: 00:00:25
channel oem_disk_backup: starting datafile copy
input datafile fno=00015 name=D:\ORACLE\ORADATA\EPPDBT3\PIDIND1_01.DBF
output filename=D:\ORACLE\FLASH_RECOVERY_AREA\EPPDBT3\DATAFILE\O1_MF_PIDIND1_34NJN6H4_.DBF tag=ORA$OEM_LEVEL_0 recid=16 stamp=622690217
channel oem_disk_backup: datafile copy complete, elapsed time: 00:00:07
channel oem_disk_backup: starting datafile copy
input datafile fno=00016 name=D:\ORACLE\ORADATA\EPPDBT3\PIDDAT1_01.DBF
output filename=D:\ORACLE\FLASH_RECOVERY_AREA\EPPDBT3\DATAFILE\O1_MF_PIDDAT1_34NJNFRF_.DBF tag=ORA$OEM_LEVEL_0 recid=17 stamp=622690225
channel oem_disk_backup: datafile copy complete, elapsed time: 00:00:07
channel oem_disk_backup: starting datafile copy
input datafile fno=00004 name=D:\ORACLE\ORADATA\EPPDBT3\USERS01.DBF
output filename=D:\ORACLE\FLASH_RECOVERY_AREA\EPPDBT3\DATAFILE\O1_MF_USERS_34NJNNXS_.DBF tag=ORA$OEM_LEVEL_0 recid=18 stamp=622690229
channel oem_disk_backup: datafile copy complete, elapsed time: 00:00:01
Finished backup at 16-MAY-07
Starting Control File and SPFILE Autobackup at 16-MAY-07
piece handle=D:\ORACLE\FLASH_RECOVERY_AREA\EPPDBT3\AUTOBACKUP\2007_05_16\O1_MF_S_622688962_34NJNSKL_.BKP comment=NONE
Finished Control File and SPFILE Autobackup at 16-MAY-07
released channel: oem_disk_backup
RMAN> exit;
Recovery Manager complete.
SQL*Plus: Release 10.2.0.3.0 - Production on Wed May 16 01:30:51 2007
Copyright (c) 1982, 2006, Oracle. All Rights Reserved.
SQL> SQL> Connected.
SQL> SQL>
Database altered.
SQL> Disconnected from Oracle Database 10g Release 10.2.0.3.0 - Production -
Whenever I start Acrobat 8.1.7 on my Windows Vista laptop, a number of files named liloxxx with modification dates of 5/15/09 and 5/17/09 are created in my App Data\Local\Temp folder. These disappear when I close Acrobat. Why is this happening? Is it indicative of a problem?
PeterAll computer programs use temporary files to do their work. They disappear when the programs close. The only difference is where the temp files are located.
-
Itunes won't load; deleted Apple files and temp folder & reinstalled
My itunes recently stopped working; it wouldn't load. I've uninstalled, deleted all Apple software, cleaned out the temp folder, and reinstalled (several times) and it just won't start. Any suggestion at this point? Running Windows 7 Home; Itunes 10.7.
No error message-nothing happens at all.
Can you check something for me please?
Restart your PC. after the PC restarts, bring up your Task manager, and go to the "Processes" tab. Click "Image name" to sort the processes alphabetically.
Now try to launch iTunes.
Does an itunes.exe process appear? If so, does it vanish after a second or so, or does it persist in the Processes tab (even though iTunes itself never shows up)? -
Unzip files from a folder which is updating regularly using multithreading
Hi All,
I have acode which unzip all the files from a folder .This code picks up all the zipped files at a time and then unzip it and write them to another folder but now my requirement is changed ,suppose the source folder where all the zipped files are present is refreshed or updated with new zipped files regularly then how can I implement in my code multithreading to get several files by threads and send it for unzipping.
Please suggest with some example or edit my code.
package com.myprojcet;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.util.zip.ZipEntry;
import java.util.zip.ZipInputStream;
public class Main {
* Extracts a zip file
public void extractZipFile() {
try {
String zipFileName = "C:\\soft\\test"; //Source folder for zipped files
//Create input and output streams
File SourceDir = new File(zipFileName);
File[] zipFiles = SourceDir.listFiles();
ZipInputStream inStream = null;
OutputStream outStream = null;
ZipEntry entry;
byte[] buffer = new byte[1024];
int nrBytesRead;
//Get next zip entry and start reading data
for(int i=0; i < zipFiles.length; i++) {
inStream= new ZipInputStream(new FileInputStream(zipFiles));
while((entry = inStream.getNextEntry()) != null) {
outStream=new FileOutputStream("C:\\soft\\test2\\"+entry.toString()); //destination folder for unzipped file
while ((nrBytesRead = inStream.read(buffer)) > 0) {
outStream.write(buffer, 0, nrBytesRead);
//Finish off by closing the streams
outStream.close();
inStream.close();
} catch (IOException ex) {
ex.printStackTrace();
* @param args the command line arguments
public static void main(String[] args) {
new Main().extractZipFile();
Thanks
Sumit
Edited by: user8687839 on Feb 27, 2012 11:00 PMBut my question is that if in a source folder we have several files which are in zipped format and the folder is getting updated every min (say) with new zipped files (which are dumped from some outside environment).I need to unzip all the files present in the folder ,if new one comes there then also check for the new zipped file and unzip it.You don't need to keep re-stating that.
I had written a code for unzipping a file from a folder (thinking the folder is not updated everytime).Or that.
Now I am thinking of using threads because if I create suppose 5 threads and every threads poll the source folder and pick up a zip file ,send it for unzipping it and again poll the source folder for any new entries?Or that.
If using the threads here hits performace then what should I use?Err, what you presently have?
Provide me any sample code or link that would be more useful.You've already written it. -
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 9I 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.''
Maybe you are looking for
-
Adobe Flash Player for Samsung tablet?
I recently purchased Samsung tablet. I need to take some courses that require Adobe Flash Player. When I tried downloading the file I received an error message saying my device doesn't support the file. I tried downloading the app with no luck. Is
-
I want to search any text in the inspector, like Chrome Developer Tools does. How can I do this?
-
JDev 11.1.1.4, JHS 11.1.1.3 I have setup a toolbarButton to make a method call (as per section 6.10.3.1 of the JHS dev guide), but when I run the app and click the button I get the error below (I get the same behavior in two different applications we
-
Revision: 15171 Revision: 15171 Author: [email protected] Date: 2010-03-31 10:21:49 -0700 (Wed, 31 Mar 2010) Log Message: In SpriteVisualElement.addingChild() need to set the nestLevel if ILayoutManagerClient or if IUITextField (this was missin
-
Read application server directory and file
Hi, I'm using the FM "RZL_READ_DIR_LOCAL" to retrieve the application server directory and filename. The returned result contain all the directory name and filename. Is there any other FM can separate the result into directory and file?? Regards,