Copy a file from hard disk to a jar
Is there any way to copy a file from hard disk to a jar file?
hajani wrote:
No, I want to copy a file into an other jar file (like a zip or a rar file)
Edited by: hajani on Dec 7, 2008 4:11 AMIf you really do mean 'jar' file an not 'zip' or 'rar' then you can use class java.util.jar.JarFile and write your own code. If you don't feel like writing a load of code then and you can guarantee that the 'jar' executable is going to be available then you could use Runtime.exec() or it's cousin ProcessBuilder. If you mean a 'zip' file then you could use class java.util.zip.ZipFile and write a load of code. If you mean a 'rar' file then you will either have to find a 'rar' class library or again use Runtime.exec().
Similar Messages
-
How to recovery the deleted files from hard disk like images,media files
How to recovery the deleted files from hard disk like images, media files by using c#.net
It's important to define deleted and recovery. You can recover file from the recycle bin using the Win API. Here's an
example in C/C++. You need to
pinvoke SHFileOperation. -
Cannot delete files from hard disk (after deleting from playlists)!
all of a sudden itunes stopped allowing me to automatically delete (with the warning) a downloaded podcast so I would have to go to the hard disk manually to delte the posdcast.
How do I get the system back to what it was where I delete a podcast and then get the warning and say ok to delete from hard disk?
TIA!Hi Chris:
2 part response:
I founf the problem--somehow my itunes folder was moved to a different part of my hard drive--once I moved it back I can delete.
I can delete as follows: when I right click and click on delete, I first delete the file from itunes library--then I get prompted if I want to delete from my hard disk by sending file to recycle bin--There is also a prompt if I do not want to see the warning--which I have on as a safety precaution. So I bet the default could remove from playlist and send file to recycle bin in one move. -
Delete file from hard disk etc.?
Can iTunes do the following, and how?
1. When I ask a file to be deleted from the Library, is there some way of asking for the file to be deleted from the hard disk itself?
2. If the location of the file has changed, can iTunes update its library and delete the unfound files from its list?Boot the computer in Windows Safe mode with network support (press F8 on the boot screen) as a test to see if that helps.
*http://www.bleepingcomputer.com/tutorials/how-to-start-windows-in-safe-mode/ -
How to recover Deleted file from HARD DISK
By mistake my entire AVCHD file of 90 Mts duration was deleted from my Hard Disk, this I realised after a week., in the meantime I have not added or deleted any file from this hard Disk. I had given my this hard disk to my service engineer to recover the video., he has tried and recover some 40 mb file., but I cant open this recovered video file in Premiere or any other video convertor programme., also I cant get any information about Video.
Can anybody in the forum help me and suggest how to recover my deleted Video from the Hard diskHi, hard disk data loss is actually a hard task for many users 'cause most of them think this kind of problems is a complicated situation. Here are some tips you need to know after data loss happened.
1. If you meet the file loss situation, keep calm and stop using your computer to do any read or write operation until you find the way to recover the lost files because any wrong operation.
2. If you've lost a file, time is of the essence. As new files saved to Mac hard drive or storage devices, the original files gets overwritten. So do not use the drive or disk which your deleted files are stored before at all, until you have completed the scanning and recovery process.
3. The system crashed or the files loss situation happens occasionally, so remember build a backup for the files periodically is strongly needed.
4. If you meet the file loss situation again, stop using the Mac or storage device right now, use another computer to process the files recovery.
5. Remember this, no matter at the normal time or after files recovery, build a backup for the files periodically is the best method to protect your files from data loss situation.
This post offers you more tips you may need: http://www.uflysoft.com/data-recovery-mac/mac-files-recovery.html -
I want my AVI files from Hard disk for FMLE
Is it possible to get AVI files from my Hard disk for FMLE if yes How..?
Thanks in advanceNot sure what you mean but if you want to use FMLE to stream video from your harddrive I think you also need Camtwist or Wirecast for that. I use Camtwist and FMLE for that. If you for example stream to Justin.tv remember to mute the sound on your channel there or you get a strange loop. It´s kind of tricky to set up a good stereosound for broadcasting and I use two soundcards and a small cheap Behringer mixer for that.
I think it´s possible to play them back from another computer too if the videocard on that computer have some sort of video out port you can hook up to your capture card on your broadcasting computer. You ´d need a capturecard that FMLE recognizes.
You can also just burn a DVD and play it back from an ordinary external DVD player that you hook up to your capturecard. Even works with a VCR if you have one and can get the files over to tape. But as I said you need a good capturecard that FMLE recognizes. -
HT1338 How do i delate files from hard disk
I don't know hat is happning, everytime i open programme iMovie it pups up my hard drive is full. But don't know how am i gonna delate. I delate everything that shows up on my destop folders. I delate almost everything that i copied from another devices.
See Where did my Disk Space go?
-
How to open a html file from hard disk
Hello everyone,
i want to display a html file by using java applet.
This is my current coding:
package mkbe.pg;
import java.net.*;
import java.applet.*;
public class HtmlReader extends Applet
URL userUrl;
public void start()
try{
userUrl = new URL(getDocumentBase(),"FILE:///c://2007/index.htm");
}catch(MalformedURLException error){
System.out.println("Error");
getAppletContext().showDocument(userUrl,"_blank");
}the program have no error and warning and the applet did run by appletviewer but the html file did'nt open.
Is it there's mistake in my coding?
If there is please tell me how to repair it.
ThanksFor an applet to read from a client's harddrive it will need permission.
This can be done by putting the applet in a jar file and signing it,
or by using the poiclytool to change the java.policy file to give FilePermission. -
I tried to download files to an application-garage band specifically-and I got the msg. 'Installer in trash'. It must have been done by accident, but is there a way to recover it? I'm guessing it might still be on the hard drive...
Double-click the Trash icon and drag the needed file out of it.
-
hi,
i have a following scenario
I have list of files in a directory. i want to read all those file names and put in a table.
eg. e:\backup\1.sql
e:\backup\2.sql
e:\backup is the directory containing files 1.sql 2.sql etc. I want to get the file names and store those names in a oracle table
any suggestions
thanks
kedarI believe you would need to write a Java stored procedure that would use the Java Directory object to iterate over the files in a directory for this sort of thing.
Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC -
Upload file from hard disk button does not work
I have run in safe mode, reset Firefox, upgraded all Adobe software, etc.
Boot the computer in Windows Safe mode with network support (press F8 on the boot screen) as a test to see if that helps.
*http://www.bleepingcomputer.com/tutorials/how-to-start-windows-in-safe-mode/ -
How can I copy outlook files to hard drive
How can I copy large outlook files to the external hard drive with out formatting it?
I currently have Macbook Pro Version OS X 10.9.5.
I tried all the ways copying outlook files, but it says larger files cannot be transferred. My outlook file is about 16gb.
Also tried trough Time Machine...Can anyone list of the steps here to copy these files to my hard drive?
Later, I want to copy these files from hard drive to the new Macbook Pro.....need urgent help please !!!If your external drive is FAT32 (MS-DOS) format, it won't take file larger than 4GB. There's no way around that, I'm afraid.
Matt -
i cant able to copy my files from my macbook to external hard disk,its showing "read-only",but i can able to transfer files in windows os,why cant i able to do tht in here?
to frederic1943
Its in NTFS Format...and i hav downloaded the file NTFS-3G,but still i dont know wht to do with that.will u pls help me here. -
How do i copy my files from my external hard drive onto my imac
how do i copy my files from my external hard drive onto my imac
You should be able to 'migrate them' without having to do so during a reinstall, from an external drive. In some cases, you may be able to use TimeMachine software even if the drive had not been used as a backup.
The usual way, though, is to drag & drop copy from one to another (volume or folder) you created in there and have open. Or drag an item on top of the icon of a hard disk drive when it is mounted on the desktop. I'm used to working with open folders and windows, because that works best; and then see if I want to change how things look inside their destination. This helps should I later want to burn them to a DVD and have it correct. And I want to know where they are.
I had more links to some information about importing or migrating data into a Mac from an external, a week ago, but can't find them now. A few good links to pages, but I think I posted what I did find directly to answer someones question about it; and believe the info was in an Apple Support article about TimeMachine, near the lower part of the page with blue words with a disclosure triangle, so you could read more in that page. But I don't believe these two are correct in that TimeMachine (some versions) only allow wireless backup to a drive in a base station unit such as Apple sells, for this. The link I saw simply said how to work around not using the wireless stuff. Maybe it was a dated item, not in these?
See a main general portal to TimeMachine support,
here: http://www.apple.com/support/timemachine/
Or basics that may not provide optional copy methods:
Mac Basics - Time Machine backs up your mac:
http://support.apple.com/kb/ht1427
Perhaps a search of Apple Support database (or even ASC discussions?) would yield ideas, and perhaps find what may work for the kind of files you want to copy, and where they can be found & used later. Are the files for specific applications? Or images, music, etc?
Good luck & happy computing!
edited. -
Trying to copy ANY file from my MacBook Pro to an external hard drive spins for 45 minutes then fails. I hate this computer and WISH I never would have wasted my money. Any ideas? WD My Passport 2TB Drive, had to buy a program to make the POS read files. Copies that would take seconds from a Windows based machine never complete. I have to close the transfer or shut off the machine half the time. Worst computer I have EVER owned, crashes non-stop, constantly freezes, and seems like EVERY operation is more complicated with this thing. Literally, my 1997 Compaq was FAR MORE reliable and user friendly.
This is one of the messages I keep getting; The Finder can’t complete the operation because some data in -- File Whatever -- can’t be read or written.(Error code -36)
I have copied things to the hard drive in the past, but it has always been incredibly slow, and now just seems to freeze and fail
Maybe you are looking for
-
I have Acrobat v 10.1.1 & am needing to upgrade my install package to 10.1.4. For some reason when I run msiexec /a acrostan.msi /p acrobatupd1014.msp I get the following error: "The upgrade patch cannot be installed by the Windows Installer service
-
Is there any way to get it another time installed? Or what can I do.
-
Need to re-download Flash CS5.5 Pro
I have a Flash CS5.5 Pro License and a new computer at work - the old computer has been wiped - I therefore I need to re-download and reinstall Flash 5.5 on my new Win 7 pc. I am an occasional Flash user only these days and am not going to cough for
-
Some Youtube video's missing from displaying on Apple TV
I have found that a lot of videos on youtube wont show up on apple tv. Is this due to copyright restrictions or to the format of some videos?
-
Dchain Spec.Status(ECC) wrongly Updated in CRM Products
Hi, The D.chain spec status from the ECC system is wrongly being updated in the CRM system. When D.chain spec status(MM03 -> Sales org. 1 tab -> D.chain spec status ) is maintained as inactive for a material and valid from date (MM03 -> Sales org. 1