Cannot find file I'm trying to input from

I created a small text file called "Trial.txt" and tried inputting from it, but always got a runtime error saying the file cannot be found. Here's the relative code, but I'm not sure how I can identify the file.
File inputFile = new File("Trial.txt");
FileReader in = new FileReader(inputFile);
StreamTokenizer LetterFilter = new StreamTokenizer(in);

Problem solved. ;) Thanks for everyone who was willing to help!

Similar Messages

  • Cannot sync photos-says cannot find file, will not sync

    eveytime I try to sync, when it gets to photos, iTunes has an error window with no code that says "Cannot find file, cannot sync" Everthing else backs up and syncs except photos. My husband uses the same mac and he can sync just fine, no errors.

    For iPhoto the link said:
    If you're syncing from an iPhoto or Aperture album, use these steps to find the iPod Photo Cache folder in the default iPhoto Library or Aperture Library location:
    From the Finder, choose Home from the Go menu.
    Once there, open the Pictures folder and locate the iPhoto Library file. (For Aperture, this is called Aperture Library.)  If you have moved your iPhoto Library or Aperture Library to a different location, go to that location in Finder first.
    Control-click the iPhoto Library or Aperture Library file and choose Show Package Contents from the shortcut menu.
    In the next window, locate the iPod Photo Cache folder and drag it to the Trash. Important: Do not remove or modify any other file within the library package. Removing or modifying other files may cause data loss.
    Close the Finder window.
    Are you doing step 3?  You can also right click and select Show Package Contents.  It works both ways for me.  I just tried it.

  • System cannot find file specified during install officejet 6500

    I started my HP solution center software today to do some scanning over my wireless connection.  I received a message box indicating I needed to reinstall the original software that came with my OfficeJet 6500 wireless 709n printer.  when I started the software it recieved the message 'system cannot find file specified'.  No information was given on what file it was looking for.  I then downloaded the software from the HP site (OJ_AIO_6500_E709_Full_Win_WW_140_408.exe) and encountered the same result.  I hookup up my printer via USB and it appeared to go looking for driver updates.  After that the HP solution center software would run but would only connect to my printer if the USB was connected.  Still cannot run the printer software set.
    I recently upgraded my windows 8 64-bit to window 8.1.  It worked before that.  This is not the only software that was broken by the process.  Any help on how I can re-establish my wireless connection to my Officejet 6500 would be appreciated.  
    I also tried the Microsoft 'Fixit' solutions but they are not available for windows 8.1 :-)...

    Hello All,
    Try using the scrubber built into the CD or download.
    From original CD installation:
    1. Insert CD into drive, and then cancel the installer.
    2. Open  "Computer", and then right click on the CD drive and choose open.
    3. Open folder Util
    4. Open folder CCC
    5. Run the L3uninstall.exe (near the bottom of the list).
    6. When the uninstall has completed restart the computer
    7. Download and install the latest version of Adobe flash player
    http://www.adobe.com/support/flashplayer/downloads.html
    8. Restart the computer.
    9. Download and run the HP Printer Install Wizard.
    10. When it comes to the screen asking to accept the terms, don't yet. There will be a few options near the top of the Window. I need you to choose "Connection settings" or "Internet connection usage settings" (It will be something similar to what I just stated). It will give you the options to turn off automatic updates, I will need you to change all of these options to "Off" / "No".
    11. Once they're set to "Off" / "No", continue with the installation like you did before.
    If software was downloaded and extracted to your system:
    1. Type %temp% in the run field
    2. Look for, and open the folder starting with 7z (Example: 7zS2356)
    3. Open folder Util
    4. Open folder CCC
    5. Run the L3uninstall.exe (near the bottom of the list).
    6. When the uninstall has completed restart the computer
    7. Download and install the latest version of Adobe flash player
    http://www.adobe.com/support/flashplayer/downloads.html
    8. Restart the computer.
    9. Download and run the HP Printer Install Wizard.
    10. When it comes to the screen asking to accept the terms, don't yet. There will be a few options near the top of the Window. I need you to choose "Connection settings" or "Internet connection usage settings" (It will be something similar to what I just stated). It will give you the options to turn off automatic updates, I will need you to change all of these options to "Off" / "No".
    11. Once they're set to "Off" / "No", continue with the installation like you did before.
    Also, make sure all of the Windows Updates have been completed.
    Let me know if this works.
    Thank you,
    I worked on behalf of HP.

  • Version XI Cannot Find File USING VBA Shell Command

    I open Adobe Reader from an Access VBA Shell command.  After upgrading to Version 11, the Reader opens but I get the Error Message.  "Cannot Find File".
    This was on a Windows 7 Machine running MS Access 2012.  I had an older PX with XP and Access 2003 on it, so I ran the program on it with Version 10 and the Reader opened with the
    file passed to it using the Shell command.  I updated Adobe Reader to XI on the XP machine and I got the "Cannot Find File" message.  I went back to the Widows 7 machine anbd removed Version 11 and reinstalled Version 10 and the Shell command worked like it did before.  Does anyone know if there is a work a round for the Version 11 error as I have many many customers that may update to Version 11 and my program is not going to work for this particular function.
    Appreciate any help, thanks.

    Q1 Answer
    I use Shell because it has worked for years and it is a build in VBA function and ShellExecute uses Windows API, and I took the easy route.
    As I'm sure you know Shell is for exe, com or bat files and ShellExecute enables
    the opening of files such as txt, pdf... etc by file association.
    Q2 Answer
    The exact string is
    "C:\Program Files (x86)\Adobe\Reader 10.0\Reader\AcroRd32.exe" C:\FoxFales Data\FoxFalesStaff\Alerts\GenericSupplies.pdf
    The path for AcroRd32.exe is retreived by reading the registry entry  "HKEY_CLASSES_ROOT\Software\Adobe\Acrobat\Exe\"
    Q3 Answer
    If you paste the above command in the CMD shell you get the same result.  Reader Opens, but opens with
    the message  "Cannot Find File".
    Newest Results
    In the forum I found threads that indicated that if in Security (Enhanced) you had "Enable Protected Mode At Startup"
    enabled there were some unpleasant results.
    So I turned it off and lo and behold Reader XI with the Shell commandfrom VBA works!
    But as a matter of interest I turned it back on and tried the API call ShellExecute, as you so politely suggested,
    and...IT WORKED with "Enable Protected mode At Startup" enabled.
    I don't understand why Reader XI lets ShellExecute work and not Shell, but I'm happy I  have a solution
    Thanks for you help

  • Spotlight and finder cannot find files as of a certain date. What can be the problem and how to solve?

    Spotlight and search field in Outlook on MacBoon cannot find files as of a certain date. What can be the problem and how to solve?

    Reinstall on both.
    Reinstall Lion, Mountain Lion, or Mavericks without erasing drive
    Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    Repair
    When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported then click on the Repair Permissions button. When the process is completed, then quit DU and return to the main menu.
    Reinstall Mountain Lion or Mavericks
    OS X Mavericks- Reinstall OS X
    OS X Mountain Lion- Reinstall OS X
    OS X Lion- Reinstall Mac OS X
         Note: You will need an active Internet connection. I suggest using Ethernet
                     if possible because it isthree times faster than wireless.
    Restore your iPhone to reinstall iOS. Be sure to do this while connected to your computer and iTunes.
         Tap Settings > General > Reset > Erase all content and settings.

  • "cannot find file" after formatting and moving!!

    Wanted to have iTunes library included in Time Capsule backup. So had to reformat external hardrives where all my songs are from Windows do OS. Copied everything on other HD, reformatted HD with OS, copied back all songs. HD still has same name "MUSIC", but iTunes cannot find files.
    Changed in iTunes preferences the location of files to ensure it searches in the right place AND also replaced with text editor in "iTunes Music Library.xml" file all links with new address of HD (now after reformatting to OS I found it to be slightly different despite still same name).
    But iTunes still cannot find the files. Everything is the same as before, HD name, directory structure, file names, etc. ONLY difference is it all is on "OS formatted" drive. Don't want to lose ratings and playlists of over 15,000 songs....is there still a solution?

    The moment I "drag out" the Tunes Library File, then there is nothing left there, and when I open iTunes it is empty.
    That's as expected. That file is the database iTunes uses that keeps track of everything, so when you then launch iTunes, it's starting from scratch.
    I can import the Playlists from the XML and they do appear, but still no songs, all is empty. If I try to reimport from the new location, then they "do not fit into the playlists", meaning ratings etc. are lost.
    Then you apparently didn't get the XML file edited properly; it's not easy to do.
    Why does the simple location function in iTunes Preferences not work?
    It does, when used as designed. The preference is where new additions (imports & purchases) will be stored. It does not change the location for existing files.
    Put the original library file back. Then launch iTunes, Get Info on a representative track, and look at the path to where it thinks the files should be and compare that to the actual path. Any difference at all will break things. If there are differences (drive name slightly different, any difference in folder names/structure, etc.; letter case counts), try correcting them in Finder and see if that gets things working again. If not, then you'll have to use the Add to Library command to get back your tracks which will lose all your ratings, etc.
    Where does iTunes save the links to the original files so it can simply be changed?
    In the iTunes Library file, which cannot be manually edited.

  • Cannot find file #01, do you want to search?"

    We recorded a song yesterday and saved it as properly as the other sessions we also recorded. Today I want to open it, but it always says "Cannot find file #01, do you want to search?" But I've got the problem only with one file, the other songs are ok.
    The odd thing is: the file is there, also the tracks in the file and the recordings in the tracks appear. But the music inside the recordings is gone. Also the media file is empty. I'm quite desperate and my band will kill me. Can anybody help?

    Did you move the songs to the current folder AFTER you added them to iTunes? Sounds like you did. Big mistake. You may just have to delete you library and re-import them from the current folder. Once you've done that, leave the files where they are. iTunes can't track where you're moving your music to from one place to the next.

  • I get itunes can't find file when I tried to play a TV show I had purchased that was supposed to be in the cloud. There are several of these, including an entire season. In the store it shows that I purchased these shows when I checked them.

    I get itunes can't find file when I tried to play a TV show I had purchased. I then checked and had this problem with an entire TV season I had purchesed. The shows were supposed to be in the cloud. I went to the itunes store, went to the tv shows and they showed that I had purchesed them. They do not show up when I click on purchesed in the store.

    Try this...
    Empty/corrupt library after upgrade/crash
    Hopefully it's not been too long since you last upgraded iTunes, in fact if you get an empty/incomplete library immediately after upgrading then with the following steps you shouldn't lose a thing or need to do any further housekeeping. In the Previous iTunes Libraries folder should be a number of dated iTunes Library files. Take the most recent of these and copy it into the iTunes folder. Rename iTunes Library.itl as iTunes Library (Corrupt).itl and then rename the restored file as iTunes Library.itl. Start iTunes. Should all be good, bar any recent additions to or deletions from your library.
    See iTunes Folder Watch for a tool to catch up with any changes since the backup file was created.
    When you get it all working make a backup!
    tt2

  • Video download from SD card 2 iPad 2 interrupted, file corrupted.  Cannot find file to delete.  Does not appear in Photos, or is not visible using Windows File Manager.  Consumed 2.5G of space!  Can anyone help

    Video download from SD card to iPad 2 interrupted,  corrupted.  Cannot find file to delete.  Does not appear in Photos, or is not visible using Windows File Manager.  Consumed 2.5G of space!  Can anyone help?

    Video download from SD card to iPad 2 interrupted,  corrupted.  Cannot find file to delete.  Does not appear in Photos, or is not visible using Windows File Manager.  Consumed 2.5G of space!  Can anyone help?

  • I photo freezes under 'cannot find file'

    When I open iphoto it works fine for a few seconds but then it freezes and says 'cannot find file .........'
    I then have to force quit because it says it's 'not responding'
    I don't know why the files have gone from iphoto because I can still find them if I search for them and they seem to be in the correct place.
    For the moment I cannot use iphoto at all so please help!
    Thanks
    Chloe

    Chloe
    When it says that it cannot find a file, does it mention the file types?
    Some other things to try:
    Rebuild the database. Hold down the apple and option (or alt) keys and launch iPhoto. Use the resulting dialogue to rebuild. Choose the top three options.
    Create a new account (systempreferences -> accounts) and see if the problem is repeated there. If it is, then a re-install of the app might be indicated. If it's not, then it's likely the app is okay and the problem is something in the main account.
    Regards
    TD

  • None of the links in my TOC or INDEX work. Cannot find file is the error message.

    The files are on a networked drive. Win7. FM 8. I've renamed files. Regenerated. Created a new book. Nothing works.
    I do have hyphens and underscores in the file names but no other special characters.
    Need help urgently.
    The error message is:
    Cannot find file named
      \SOL\Data\TechDocs\DRAFT\Shiva\OperatorManual\096-0461-001C-1.
                 fm.
                 Make sure that the file exists.
    Note that the TOC and INDEX are listed in the book w/o a path while the body chapter has the entire path (above) listed in the book view.
    Thanks

    IIRC, FM8 had an issue with a path having more than 5 (or 6?) sub-folders. Try bringing the files up a few levels or create a mapped network drive down to the lower levels.

  • HT1329 I cannot find file itunes64.msi

    I cannot find file itunes64.msi so cannot update my software. What can I do as new versions will not download and I cannot remove itunes software as the .msi file is needed

    I did this in Windows 8.
    Go to Regedit -> Edit -> Find -> Type Itunes64.msi -> Find Next ->
    On the left side, There are a lot of folders, find the only open one named "SourceList", go to 1 folder above that, so it should the main folder of the source lest -> Right Click -> Delete -> OK
    Now you're ready to install your latest itunest. just close the RegEdit and install itunes64
    I just did this 10 minutes ago, hope it helps

  • Help.  My ITunes library content vanished. Cannot find files anywhere .

    Help.  My ITunes library content has vanished. Cannot find files anywhere .  Still accessing store via my phone and all my purchases are there etc but on my laptop the library is empty.. I have AVG and have put Itunes as exception as read that might be an issue.  Im really not sure what to do .

    Hi sooz180,
    Welcome to the Apple Support Communities! I understand you can see all of your purchased music on your iPhone but the library on your computer in iTunes is empty. If the music was purchased from iTunes you can get this music back to your iTunes Library two different ways. You can either transfer purchases from the iPhone to the iTunes Library, or you can just download the music again from the Purchased section of iTunes. I will post the information on both ways to recover your purchased music below.
    iTunes Store: Transferring purchases from your iOS device or iPod to a computer
    http://support.apple.com/kb/ht1848
    Download past purchases
    http://support.apple.com/kb/HT2519
    I hope this helps,  
    -Joe

  • -- A file association problem exists, which prevents the file you're trying to download from being associated with the correct application by the operating system using window 7  IE 11

    A file association problem exists, which prevents the file you're trying to download from being associated with the correct application by the operating system
    USING WINDOW 7  IE 11  HOW CAN I FIX???

    Try downloading the offline installers:
    Adobe Reader
    Flash Player for Internet Exporer - ActiveX
    Flash Player for Firefox - NPAPI

  • Ive downloaded my photos into iphoto and cannot find them. I inadvertantly deleted photos from my camera. Any chance to recover or find them?

    Ive downloaded my photos into iphoto from my Canon G10 and cannot find them. I inadvertantly deleted photos from my camera. Any chance to recover or find them?

    Do they show in "last import" or in photos view?
    You give us nothing to go on so we can only make really wild guesses
    you may be able to  recover them on the camera card using software like media recover
    LN

Maybe you are looking for

  • Cairngorm 3 Module Injection

    Hi, I'm using Cairngorm Module library in my application. While testing the debug version of my app, all modules are loaded correctly and all dependencies are successfully injected into these modules. However, after I export the release build and lau

  • FacesServlet rendering issue

    Hi, Am facing a pretty trivial issue. Can someone please help? My web.xml mapping is like this: <welcome-file-list> <welcome-file>index.html</welcome-file> <welcome-file>index.htm</welcome-file> <welcome-file>index.jsp</welcome-file> <welcome-file>de

  • Encryption of notepad file

    Hello Gurus, I need to encrypt a notepad file containing some information. This notepad is the result of an ABAP program. For encryption we need to run an executable file from MS DOS prompt. I have to open command prompt and then choose the .EXE file

  • Fine tuning JRockit in NetBeans6.1

    Hi i am a new JRockit user and i am facing some problem in tuning Jrockit in Netbeans6.1. Actually i am setting tunning options to netbeans6.1 VMOptions as -XgcPrio:pausetime -XpauseTarget:10ms. as i want the pause time to be 10ms but it shows the ou

  • List class implementation

    I want to inplement a list, it contains some records, and each record has got a few fields, and one of the fields is key. I need the records be sorted by the key field, and certain record can be covieniently located by the key. And basically I need s