Help with splitting a file

I'm Starting in Java programing and need some help.
Based in the information of txt file, I need to split a file.txt into "n" .txt files, depending of the blocks thats the file containt. It's delimited by """".
And put the name between "UZ0RN0" the second field
Example:
"01APR02","UZ0RN0","******************************************
EMHA PNR.UZ0RN0 CR01APR 0419Z MEX BY GS BT
MEX GS BT 01APR 0421Z 385310 MX
"01APR02","TSCS44","******************************************
etc.
My question is how do I split a file into parts eg split test.txt into UZ0RN0.txt, TSCS44.txt, etc.
Pls help. Where do I start? I just need help with the the manage of the java.nio.channels.FileChannel to generate several files
Thanks a lot.

Ok Thats is the final code:
This program divide a file.txt in "n" files.txt's according of the block's that the file.txt contain and catch the name of the second tokent to name the new file.txt
import java.io.*;
import java.nio.*;
import java.nio.ByteBuffer;
import java.nio.channels.FileChannel;
public class FileCopy {
     public static void main(String[] args) {
          if(args.length==0) {
               System.out.println("No existe archivo a copiar. Application usage is: \n" +
                                        "java -classpath. Filecopy \" filepath\"" );
               System.exit(1);
          File fromFile = new File(args[0]);
          if(!fromFile.exists()) {
               System.out.println("Archivo a copiar. " + fromFile.getAbsolutePath()
                                   + ", no existe.");
               System.exit(1);
          FileInputStream inFile = null;
          try{
               inFile = new FileInputStream(fromFile);
          } catch(FileNotFoundException e) {
               e.printStackTrace(System.err);
               //assert false;
          FileChannel inChannel = inFile.getChannel();
          try{
          int SizeFile = (int)inChannel.size();
          ByteBuffer buf = ByteBuffer.allocate(SizeFile);
          int length = 0;
          int lengthArch = 0;
          int NoArch = 0;
          int NoComilla = 0;
          String str = new String("");
          try{
               while ((length = inChannel.read(buf)) != -1 ) {
                    buf.rewind();
                    for (int i=0; i<length; i++) {
                    lengthArch++;
                    byte b = buf.get();
                    //Delimita caracter. Cada bloque tiene 6 "'s
                    if ( b == 34 ) {
                         NoArch++;
                         NoComilla++;
                    //Definir nombre del archivo
                    if (NoComilla==3) {
                         if ( b!=34) {
                         str += (char)b;
                    //Imprime archivo
                    if (NoComilla==6) {
                         fromFile = fromFile.getAbsoluteFile();                         //Asegura una ruta absoluta
                         File parentDir = new File(fromFile.getParent());          //Obtiene el directorio
                         File bFile = new File(parentDir,str + ".txt");               //Genera nuevo archivo
                         str = ("");
                         File toFile1 = createFile(bFile);
                         FileOutputStream outFile1 = null;
                         try{
                              outFile1 = new FileOutputStream(toFile1);
                         } catch(FileNotFoundException e) {
                              e.printStackTrace(System.err);
                              //assert false;
                         FileChannel outChannel1 = outFile1.getChannel();
                         // Write the files
                         try {
                         inChannel.transferTo(((i + 1) - lengthArch),lengthArch,outChannel1);
                         outFile1.close(); // Close the output stream & the channel
                         System.out.println("Archivo " + (NoArch/6) +": " + ((i +1) - lengthArch) + " long " + lengthArch);
                         } catch(IOException e) {
                              e.printStackTrace(System.err);
                              System.exit(1);
                         lengthArch = 0;
                         NoComilla = 0;
                    //System.out.print((char)b);
               buf.clear();
          System.out.println("Tamano del archivo de Origen " + SizeFile);
          System.out.println("EOF " + (NoArch/6) + " Archivos copiados.");
          catch(IOException e) {
               e.printStackTrace(System.err);
               System.exit(1);
          inFile.close();
          } catch(IOException e) {
               e.printStackTrace(System.err);
               System.exit(1);
          System.exit(0);
     // Metodo para crear un achivo y en caso de que exista hacer *+_backup.*
     public static File createFile(File aFile) {
          aFile = aFile.getAbsoluteFile();                         //Asegura una ruta absoluta
          File parentDir = new File(aFile.getParent());          //Obtiene el directorio
          String name = aFile.getName();                              //Obtiene el nombre del archivo
          int period = name.indexOf('.');                              //Busca el separador de la extension
          if(period == -1)                                             //Si no es
               period = name.length();                                   //Lo coloca al final del String
          String nameAdd = "_backup";                                   //Agrega "Backup" al nombre
          //Crea el objeto archivo que es unico
          File backup = new File(name.substring(0,period)
                                   + name.substring(period));
          while (backup.exists()) {                                   //Si el nombre ya existe....
               name = backup.getName();                              //Obtiene el nombre actual del archivo
               period += nameAdd.length();                              //Agrega el separador
               backup = new File(parentDir, name.substring(0,period) //agrega backup de nuevo
                                   + nameAdd + name.substring(period));
          return backup;
This is the example of the file with 2 blocks
"01APR02","UZ0RN0","******************************************
EMHA PNR.UZ0RN0 CR01APR 0419Z MEX BY GS BT
385310 MX
***1.ALCANTARA/JORGEALBERTO
FONE-MEX/N000
RCVD-PAX
TKT -T/OK
1 MX 7M 01APR MEXMTY HK 1 650A 815A
AB * FLT 7 7A
RCVD-PAX
MEX GS BT 01APR 0419Z 385310 MX
AB | FLT 7 7A
RCVD-PAX
MEX GS BT 01APR 0421Z 385310 MX
"01APR02","TSCS44","******************************************
.... PNR.TSCS44 CR25MAR 1834Z HDQ BY RM 1S
***1.1BRAVO/OCTAVIO
FONE-MTY1-81503300*A/A528
RLOC-HDQ1SJOXMWV/D4C2/86511574/MTY/1S/T/MX
/MXN
G FX-OSI YY 86511574 / VILLATOURS CENTRO P
CC D4C2
OSI MX TKNA 13235822315830
SSRSEATMXHS1MTYMEX0070K28MAR.16B
SSRSEATMXHS1MEXMTY0007K01APR.09B
1 MX 70K 28MAR MTYMEX HK 1 645A 815A
2 MX 7K 01APR MEXMTY HK 1 650A 815A
X3 SSRSEATMXNN1MTYMEX0070K28MAR.16B
RCVD-
HDQ RM 1S 25MAR 2205Z
X3 SSRSEATMXNN1MEXMTY0007K01APR.09B
RCVD-
HDQ RM 1S 25MAR 2231Z
X3 SSRSEATMXKK1MTYMEX0070K28MAR.16BN
X3 SSRSEATMXKK1MEXMTY0007K01APR.09BN
RCHDQ1SJOXMWV/D4C2/86511574/MTY/1S/T/MX
/MXN
HDQ RM 1S 26MAR 0055Z
Chao/Bye

Similar Messages

  • I need help with a PDF file that is an image, the "Read Out Loud' option does not work, please help!

    I need help with a PDF file that is an image, the "Read Out Loud' option does not work, please help!

    You mean an image such as a scanned document?
    If that is the case, the file doesn't contain any text for Reader Out Loud to read. In order to fix that, you would need an application such as Adobe Acrobat that does Optical Character Recognition to convert the images to actual text.
    You can also try to export the file as a Word document or something else using ExportPDF which I believe offers OCR and is cheaper than Acrobat.

  • Help with editing audio files (please)

    hi there,
    firstly sorry for posting in this section but i had no idea where else to do it.
    i recently went to an acoustic gig and recorded some songs from it using a sony ericsson phone. i have blue-toothed the files to my mac. there are a few songs on each recording are two things i would like to do with these files.
    1. i would like to split the files so they are separate for each song.
    2. i would like to try remove as much background noise as possible i.e. crowd making noise, or at least focus it on the actual music being played.
    i have download audacity but have no idea. i am looking for a possibly free way to do this and simple too. i am not going to go hardcore with the editing, just want to do it quick and easy.
    any help much appreciated, thanks, ravi.
    Message was edited by: irav_86

    You need to import your song to iTunes first.
    Than open Garage Band and click on bottom Right button (View/ Hide media browser).
    Click on Audio>iTunes>Music, and choose the song you want to edit. Then Just drag to your board and this will open new track, you will see line running vertically on your screen, this is showing you at what measure your song will start, just move to the beginning of a track (if you drop it too soon, just "pick" it up again and move it). This is very useful when you are trying to merge several track (e.g. for your iMovie, as you have only two tracks on it).
    Than Split and delete portion you don't want any more.
    To Slit a track, adjust your measure where you want to split it and go to Edit>Spit.
    Hope this helps.

  • [Need help with a swf file]

    Hello,
    I need help with a flash demo that I am creating. I have a
    main swf file that contains links to other sub swfs that I have
    created. What I really want this to do is... when I click on one of
    the link on the browser, the other swf have to load in the window.
    I tried to code it with .loadMovie,.... but for some weird reason,
    it is not showing up.
    Can anyone help me on this?
    Thanks

    you might have a security violation and you do have a
    load-target issue. remove that "_parent": there's no 2nd parameter
    in the loadMovie() method.
    if you want to replace the main swf with that url, loading
    into _root is fine. otherwise, you want to use a different
    target.

  • Need help with .cr2 RAW-files

    Hi,
    I've installed Aperture 2.1.2, and the newest RAW compability update (2.5).
    However, when I try to work with RAW files from my Canon EOS 1000D camera (nothing big, I know), all I see is "Unsupported image format".
    I really need help with this quick. The RAW files are in .cr2 format.

    as a last resort ...
    this is the update that added support for 1000d ... however the 3 releases post this should have it too ...
    http://www.apple.com/downloads/macosx/apple/application_updates/digitalcameraraw compatibilityupdate22.html
    but you can roll back your raw compatibility and see if that works ... then progressively go forward to current and see if/where the problem lies ...
    you could try a re-install of 2.5 ...
    http://support.apple.com/downloads/DigitalCamera_RAW_Compatibility_Update_25
    info on rolling back the update is in this thread:
    http://discussions.apple.com/thread.jspa?messageID=9097867

  • Begging for help with podcast xml file

    Hey All,
    I have a podcast on iTunes.  I am hosting the xml file and podcast mp3s on a friends server so Im not using any service.  Everything is working and Ive sucessfully added 4 podcasts so far, and it shows up correctly in iTunes on my PC.
    However my podcasts do not showup correct in the iTunes store website, or on idevices.  Meaning, I number my shows 001_"NAME" 002_"NAME" etc.  Yet in the iTunes store they show up out of order.  So my last show is not at the top its at the bottom, and they are all mixed up (like 002, 001, 004, 003 instead of  4,3,2,1)  Also the publish date is the same on two of them (and not what i have in the xml file) and doesnt show up at all on the other two.  I assume this is a problem with the xml file, yet I dont see any problems with it.  But it seems odd that it all works correctly in the actual iTunes program.  Ive tried different code, but im very much a noob at it, and everything i find online is from 5 - 10 years ago or wants you to host your podcasts with their site and I dont need that. 
    Here is the link to the show on the iTunes website so you can see what i mean:  http://itunes.apple.com/us/podcast/your-reality-recap/id501295325
    If anybody can, would you mind checking out the code in my xml file and letting me know if you see anything thats causing this issue?
    I zipped the xml file and put it here:  http://www.ericcurto.com/podcast/YRR.zip
    I would be truly greatfuly for any help with this.  Ive been trying to fix this for days and dont know what else to do. 
    Thanks!
    Eric

    Your feed is at http://www.ericcurto.com/podcast/YourRealityRecap.xml (please always post the feed URL, not its contents or a copy).
    I don't see the issues you mention. The order in the Store and when subscribing is what I would expect:
    The order in the Store depends on clicking the header to the column: the default is the first one. Some of the dates are a day out - this is quite commmon and is probably a time zone issue (it may be different where you are - I'm in the UK). I don't know why you are seeing a garbled order unless you've clicked on one of the other columns in the Store.

  • Help with building flash files for streaming

    I filmed a product demonstration for a client who wanted to put it on his website.  I edited the footage in PremPro CS4 and exported to Media Encoder as F4V file format.  After encoding imported footage into CS4 Encore, created timeline, chose, Flash from Format and swf for output.  Progressive Download which allows video to begin playing as it is downloaded (I believe), chose destinations and settings.  After transcoding I had 1 file folder, Sources that contained the following files _PGC_Bpge_entryPoint_Bbp_1.f4v, and then 3 separate files, *not* in the file folder called Sources.  They are
    AuthoredContent.xml, FlashDVD.swf, and Index.html.
    I submitted all files to client who gave them to web designer.  Designer said these were the wrong files and he could not use them. I called designer and basically he said I didn't know what I was doing.  I told him he needed all files to put up the flash video.  Anyway, am I missing something, doing something wrong?  Are there other files he needs?  He said he only needed 1 file.  Or is it the designer?  I'm not thin skinned so if it's me please tell me so, so I don't make the same errors.  Thanks.  All suggestions/comments are appreciated!

    <The client wants a control player, i.e. play, stop, pause, etc., that's it, so the viewer can simply provide the function themselves.  This is similar to youtube, blogger, etc.
    The web designer can use what you provided, which does what you describe the client wanting.  But the web designer may need to integrate what Encore provided onto a web page, and the client may not have made the expectations clear and may not know what is needed.  As I said, the Encore to flash player gives almost no options for the player controls and colors etc may be problems.
    <Encore did encode the f4v file.  When I exported from PremPro what preset should I hve chosen -- mpeg2 DVD, flv/f4v.  So the only file he needs in addition to what I gave him is the original f4v file?
    I don't know whether the f4v you exported from Premiere was progressive.  The f4v from Encore might be fine, or you might need to export from Premiere again.
    The other issue is that some "player" with controls needs to be provided by you or the web designer (who may have an issue with the client not getting the designer to lay all this out to begin with).  There are several threads about "flv players" you might check out.  Does the client have video on his site already?  If so, you can figure out what they are using, and it will help with your process.
    should I have chosen "flash server" instead of "progressive".  i must admit i never did this before.  other clients just have me post it to youtube and provide them with embed code.
    It depends on what they want.

  • Help with writing .bashrc file

    I would like help with writing a .bashrc file.
    The only thing I want right now is colored output and slashes for directories like what "ls -GF" does -- for each new terminal window.
    Can you guys give me a hand?
    Running Mac OS 10.4.6. Bash is default shell.
    Thanks.

    Hi Paul,
       You can get Apple's "ls" command to always output color with the following in your .bashrc:
    export CLICOLOR=""
    You can have an effect on the colors used with settings like the following:
    export LSCOLORS="gxfxcxdxbxegedabafacad"
       I have a color prompt in my bash startup scripts, bashrc.tgz. If you unpack the tarball in the root of your home directory, the files will be put in a ~/Library/init/bash directory. The file named "prompt" sets the color prompt string.
    Gary
    ~~~~
       I know you think you thought you knew what you
       thought I said, but I'm not sure you understood what
       you thought I meant.

  • Help with backing up files and opening from disk image.

    I am trying to back up my hard drive so that I can send my PowerBook in for repair. I used disk utility from my Panther install discs to create a disk image of my HD.
    The disk image was created successfully and mounts perfectly on my HD. I can open it and open all of my files from the disk image just fine when it is mounted on my PowerBook.
    However, when I take it to a different Mac, things start getting sketchy. I can open Word files just fine, but Excel files claim they are read-only and cannot open. I checked the permission back on my PowerBook to see what was up, and the files were read/write for the owner and read-only for groups and others, but they should still open as read-only files right? I even checked the permissions on the Word files to see if there was a difference, but there was no difference.
    I can take the external HD back to my PowerBook, remount it, and open everything fine, but then on the other Mac it is a no go.
    I need to back this up for when it is out on repair, but I need to know that the files will open in case I need to restore my disk.
    Can anyone help??
    BTW, I couldn't find the best forum to post this in, if there is a better one please direct me there...

    solution:
    I went into the Apple Store nearby today to send my PowerBook off for repair for a screen issue, and in the process got help with my backing up issue.
    It seems all one needs to do is copy the file from the external hard drive to the internal drive.
    It was that simple.
    Jason

  • Help with transferring music files from my Maxtor external HD

    Can anyone please help? I have been using Windows based PCs for a majority of my life. I recently purchased a Macbook. I have thousands of songs saved on a Maxtor external hard drive. I recently connected the HD to my Macbook and was able to successfully copy over all of the photos I have saved and only few of the audio files. I checked the audio files are saved in itunes format. Why can I not copy all of my music over? Please help!

    You could try something like this, if you haven't thought of it already. On the PC side make a new folder, probably at the top level, or perhaps next to the one folder that you could see on the Mac side. Or maybe inside the one folder you can see on the Mac side. Maybe create a new file in it, such as a simple text file. Then see if the new folder and file can be seen on the Mac side. If so, go back to the PC side and try copying one of the mp3 files that couldn't be seen into that new folder. Also, move one mp3, as distinct from copying. Back to the Mac side, see if you can see them.
    Now, if you could see the new text file, but can't see the copied mp3, that implies the problem is somehow with the mp3 files. Or the folders they are in.
    If you couldn't see the new folder, then the problem isn't the files, but (I guess) something obscure and arcane about the filesystem.
    Hopefully, the new folder and its contents will be visible on the Mac side, in which case the path forward should be clear.
    Do you have an extremely large number of song files in a single folder? Grasping at straws, but maybe the Mac has some dumb limit that's smaller than the equivalent limit on the PC side. I've never heard of such a thing, but when things are weird, it's a good time to think of oddball possibilities...

  • Need help with multiple iTunes files

    i had iTunes songs/files on an old pc for years, backed up on an external hard drive.  i then backed up that external drive with another newer external drive and hooked that newer drive to the mac.  i then imported all songs onto the mac iTunes library.
    now when i look at the song list in iTunes on the mac, there are three versions of every song - the first one will play but the next two versions give me the explanation point next to them and say they can't be found.  HOW DO I ELIMINATE THE SECOND AND THIRD COPIES OF EACH SONG THAT CANNOT BE FOUND - TRYING TO CLEAN THINGS UP.
    thanks

    This technique should help you identify which entries need to be removed.
    Lost & Found Playlists
    Create a playlist called Found, select everything in Music and drag it into the Found playlist (it may take some time to count the tracks that are to be dropped). Create a smart playlist called Lost matching All the rules Playlist is Music and Playlist is not Found. Your lost tracks will be in this playlist. Cmd+A should select all and Option-Delete should delete them.
    Or try Super Remove Dead Tracks.
    tt2

  • Oracle 9i: Help with loadjava jar files to call out web service from pl/sql

    I'm trying to build a web service client using dbws_callout_utility.zip (version used for prio 10g database). I followed the articles in oracle site to loadjava jar files (soap.jar, dms.jar, ejb.jar, jssl-1_1.jar, mail.jar, servlet.jar) into Oracle DB 9i before invoke jpub to gen stub class and wrappers in oracle 9i but i have many errors such as ora-29534 and ora-29521. As consequence i could not invoke jpublisher to generate code.
    Pls. help my with detail guide to overcome these errors, thanks in advance! My DB is Oracle 9.2.0.5

    Dear,
    I have read your article, it is useful for me. But I cannot Apply to my case. Please kindly help me. Thank you.
    When running, the error occurs:
    1:39:31 Execution failed: ORA-20000: soapenv:Server.userException - org.xml.sax.SAXParseException: Attribute name &quot;password&quot; associated with an element type &quot;user&quot; must be followed by the &apos; = &apos; character.
    My webservice Url: http://abc.com.vn:81/axis/ABC_WS_TEST.jws?wsdl
    I make PL/SQL (similiar as your example)
    FUNCTION INVOKESENDMT
    RETURN VARCHAR2
    AS
    l_request soap_api.t_request;
    l_response soap_api.t_response;
    l_return VARCHAR2(32767);
    l_url VARCHAR2(32767);
    l_namespace VARCHAR2(32767);
    l_method VARCHAR2(32767);
    l_soap_action VARCHAR2(32767);
    l_result_name VARCHAR2(32767);
    p_zipcode VARCHAR2(160);
    BEGIN
    --p_zipcode:='''TEST'' ; ''TEST'';''84912187098'';''84912187098'';''0'';''8118'';''1'';''000001'';''ThuNghiem'';''''';
    p_zipcode:='TEST';
    -- Set proxy details if no direct net connection.
    --UTL_HTTP.set_proxy('myproxy:4480', NULL);
    --UTL_HTTP.set_persistent_conn_support(TRUE);
    -- Set proxy authentication if necessary.
    --soap_api.set_proxy_authentication(p_username => 'TEST',
    -- p_password => 'TEST');
    l_url := 'http://abc.com.vn:81/axis/ABC_WS_TEST.jws';
    l_namespace := 'xmlns="' || l_url || '"';
    l_method := 'sendMT';
    l_soap_action := l_url || '#sendMT';
    l_result_name := 'sendMTResponse';
    l_request := soap_api.new_request(p_method => l_method,
    p_namespace => l_namespace);
    soap_api.add_parameter(p_request => l_request,
    p_name => 'user password sender receiver chargedflag servicenumber messagetype messageid textcontent binarycontent',
    p_type => 'xsd:string',
    p_value => p_zipcode);
    l_response := soap_api.invoke(p_request => l_request,
    p_url => l_url,
    p_action => l_soap_action);
    l_return := soap_api.get_return_value(p_response => l_response,
    p_name => l_result_name,
    p_namespace => l_namespace);
    RETURN l_return;
    END;

  • Need help with Dynamic Excel File Name please.

    I am try to output an excel file with dynamic date. 
    Here what I done.
    I am using SQL 2012.
    Create Execute SQL Task Connect Type: Excel
    Create Data Flow Task set to DelayValidation: True
    Create OLE DB Sourc
    Create Data Converstion
    Excel Destination
    Excel Connection, Expression, select ExcelFilePath
    @[User::sXLFilePath] +  @[User::sFileName] + RIGHT("0" + (DT_WSTR, 2) DATEPART("DD", GETDATE()), 2)+ RIGHT("0" + (DT_WSTR, 2) DATEPART("MM", GETDATE()), 2) + RIGHT((DT_WSTR,
    4) DATEPART("YYYY", GETDATE()), 2) +".csv"
    C:\ExcelOutPut\SOX_CAM_SQL_Report_010215.xls
    What I try to accomplish is output the file with each day append to it, date must be DDMMYY.
    I google it and found many samples, tested it, and none of them is work for me. 
    Any suggestions or some examples to share is greatly appreciate. 
    I am new to SSIS.  I found one poster have similar issue and inside the posted below, there was one suggestion to create variable and connection string but how do I bind that variable to Excel Connection manger.
    Please help.
    Thank you so much in advance.
    Ex: SOX_CAM_SQL_Report _020215.csv
           SOX_CAM_SQL_Report _030215.csv
    --Similar issue:
    https://social.msdn.microsoft.com/Forums/en-US/bda433aa-c8f8-47c9-9e56-efd20b8354ac/creating-a-dynamic-excel-file?forum=sqlintegrationservices
    Suggestion in the above posted but where can bind this to Excel Connection Manger. 
    Please help provide step by step.  Thanks.
    "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\\temp\\" + "ExcelTarget" + (DT_WSTR,4)DATEPART("yyyy",GETDATE())  +
    ".xls" + ";Extended Properties=\"EXCEL 8.0;HDR=YES\";"
    And yes, as you were intimating, the delay validation on the dataflow should be set.

    Hi NguyenBL,
    According to your description, you created ssis package to export data from database to excel, when the package runs, you want to create new excel and name the file with time stamp. If that is the case, we can achieve the goal by following steps:
    Create a script task used to create excel files.
    Create a data flow task to export data from database to excel.
    Add OLE DB source to data flow task.
    Add Excel Destination to data flow task.
    Create connection manager for OLE DB and Excel.
    Click Excel Connection Manager, in Properties window, click (…) button next to Expressions, then set ExcelFilePath with expression like below:
    "C:\\ETL Lab\\CreateNewExcel\\ExportData_"+REPLACE((DT_STR, 20, 1252)(DT_DBTIMESTAMP)@[System::StartTime], ":", "")+".xls"
    For detail information, please refer to the document:
    https://sqljourney.wordpress.com/2013/01/12/ssis-create-new-excel-file-dynamically-to-export-data/
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu
    Wendy Fu
    TechNet Community Support

  • I need help with a backup file that was deleted and now undeleted from my hard drive

    Last month (May 6, 2011), I was updating my iPod Touch 4G with the new software that came out. I always make a backup of my iPod's data before I update it. While my iPod was updating I left my iPod and computer alone and was doing things around the house with my mom. And when I was done I went in my room to see if it was done and my computer decides that it was going to freeze and crash on me (with my iPod plugged in and stuck on the updating or verifying software mode.) I managed to get my iPod back to working condition again but losing everything on my iPod. I formatted my computer hard drive but I managed to get back the backup I lost. I need help on getting the backup into iTunes so I can get my data back. I am not Jailbroken and I plan not to Jailbreak. I however saved the backup file in a folder other than the Mobilesync folder. I am also running on Windows XP. Someone please help me and thank you in advance!

    I was able to backup my iPod and I tried to restore my iPod again and it goes through the process and everything but it restores the temporary data that I had on there. It didn't restore application data or the current photos and videos that I had saved in Camera Roll before this all had happened. It is almost like it goes back to factory settings but I have some photos that were saved on the other backup that I was temporarily running on. The backup that I am looking to restore is the only backup file in the Mobilesync folder as of right now the others are saved somewhere safe for right now. Why doesn't it restore my application data or my Camera Roll pictures and videos that I saved before my computer crashed last month? Can this problem be fixed?

  • Need help with a manifest file

    I'm trying to make a jar file executable, and I've seen numerous questions and answers regarding this particular issue, and none of them helped me with my problem.
    I have a batch file that runs the application without any problem, but when I try to create a manifest with the main class attribute copied char by char from my batch file and run it, I get a message "could not find the main class".
    I been browsing the web for the past 4 hours* now and the only type of answers I see for that problem is something like this:
    ...Main-Class... "${main.class}".
    This type of solution is worthless to me, since it doesn't tell me why my path is correct when I use the .bat file and incorrect when used in a .jar file.
    Thanks,
    Omer.

    I read there the related topics.
    However, it wasn't even close to being helpful.
    I'm using ant and the inner build.xml syntax is probably eluding me somewhere.
    In fact, if it was possible to find an example build file that was written for ant 1.6 or later and contains the Main-Class attribute (I've seen some examples that contain an example file, but none of them contained the Main-Class attribute, and I found some Main-Class examples but none of them showed where they should go or how they should appear within the manifest file.
    I'm at the point when I'm about to give up the whole idea and provide the unprofessionally looking .bat file.
    I thank anyone who has put his mind to this issue, but if there is no build.xml example, I guess you can't help me.
    Thanks anyway.
    It's frustrating to see how the most flexible language there is to work with when coding, becomes next to impossible to work with when you need to deploy it.
    Update, 30.04.2008:
    I have managed to figure out that the problem wasn't with the main class, but with the classpath.
    I run the program from Intellij, and everything works perfectly. I use a batch file, and perfect. I try to use an Ant generated jar with the classpath attribute set exactly like the batch file's paths, and nothing.
    There is no error message either.
    The classpath is located under "/lib/*.jar" in the distribution directory, where the "program.jar" is located.
    I have come to the point that i would pay to see a proper working build.xml and to see the relative and absolute paths of the classpath.
    This is actually harder than developing an extremely rich server application.
    Edited by: omerk76 on Apr 30, 2008 11:04 AM

Maybe you are looking for

  • Revaluation of Activity type is not getting updated in Production Order

    Hi, I have run KSII , for actual activity price calculation. After this , the revalution of production orders was done. But I am not finding any entry in Production order with a value of variance between Actual Price and Plan Price of the Activity ty

  • Why are alpha/numeric keys inoperative on aluminum apple wireless keyboard

    This is a follow on to previous topic that i answered. I was able to get my wireless keyboard partially operational. It is paired and only partially functionall • Alpha numeric keys do not work • Delete Key (backward) and fn-Delete (forward) work • A

  • Exception occurs when list all certs in keystore!

    I import a xx.p12 certificate into the keystore.jks using pk12import utiliy, when i try to print the certificate infromation in the keystore using command: keytool -list -v -keystore keystore.jks, exections printed as below: #3: ObjectId: 2.5.29.31 C

  • Block Corruption In Free Space Chuck Of A Datafile

    Hi all, I have run into this issue where both dbv and rman have caught a block corruption on one of the datafiles. When I checked these blocks, they did not belong to any segments and I was able to verify that this block ID falls in the block_id + bl

  • Hava error in weblogic8.1

    my code with jspsmart to show picture in ie running in tomcat 4.0 is no           problem.but now have error when code           moving to weblogic8.1. erorr fellow:           <Error> <HTTP> <BEA-101019>           <[ServletContext(id=30587807,name=ma