Downloading URL on Mac

Hi,
I have written a program which accepts a url of file to be downloaded from network. This program is working on Windows and Linux but not on Mac.
The code is
public static File getRemoteFile(String url,String outputfile) throws Exception{       
        File file=null;
        file=new File(outputfile);       
        URL url = new URL(url);
        URLConnection ex = url.openConnection();
        BufferedInputStream in=new BufferedInputStream( ex.getInputStream() );
        byte value[]=new byte[in.available()];
        in.read(value);
        FileOutputStream out = new FileOutputStream( file );
        out.write( value);
        out.close();
        in.close();
        return file;      
Thanks

Look around for error messages. Post them here when you find them, if you can't understand them yourself.

Similar Messages

  • Can't download update for Mac onto PC

    I'm trying to download the update for Quicktime Macintosh 7.3 on a Windows computer and put it on my flash drive to install at home. I can't get to the download link. everytime I do, it takes me to the Quicktime page showing either XP or Vista and doesn't have a link to go to the Macintosh version. The download is about 50MB and my home computer is on dial-up. Any help would be appreciated.
    Thanks,
    John

    You did not mention for which OSX version for which you are trying to download the update(s).
    Try these:
    http://appldnld.apple.com.edgesuite.net/content.info.apple.com/QuickTime/061-413 0.20071213.Xy54EQ/QuickTime731_Leopard.dmg
    http://appldnld.apple.com.edgesuite.net/content.info.apple.com/QuickTime/061-412 7.20071213.3Ujvo/QuickTime731_Tiger.dmg
    http://appldnld.apple.com.edgesuite.net/content.info.apple.com/QuickTime/061-412 6.20071213.wgD6H/QuickTime731_Panther.dmg
    My general workaround to Apple's locking me out from cross-updating on the different platforms-from your Macintosh, navigate to the Apple downloads site, start the QuickTime updater download, and record the source URL when the download starts. You can then cancel the download on the Mac, take the source URL to your Windows machine, and use it to download the file onto your Windows machine. Then transfer the *.dmg file back to the Mac, and you are updated.

  • I downloaded an album from iTunes and some of the songs downloaded but others didn't there was an error message 8003 Unknown error occurred. While I downloaded the album to my phone, it wouldn't download to my mac, what am I doing wrong???

    I purchased an album on ITunes store, while the items downloaded to my phone, it didn't download to my mac. Some of the songs downloaded but not the majority, when I try to download the songs, it gives me an error 8003 Unknown error occured. What am I doing wrong? If I can't download this album, how do I get a credit??

    Hello mercdw,
    Once the music has been downloaded to your iPhone, you can transfer purchases from your device to iTunes.
    iTunes Store: Transferring purchases from your iOS device or iPod to a computer
    http://support.apple.com/kb/HT1848
    Alternatively, the following article provides further information regarding this error and steps that can help resolve the issue.
    "Error -50," "-5000," "8003," "8008," or "-42023"
    These alerts occur due to timeouts or conflicts trying to write a file during download.
    If you encounter this issue while accessing iTunes Store:
    See iTunes 9: "One Moment Please" or "Error (-50)" message when accessing iTunes Store
    If you encounter this issue while while downloading something from the iTunes Store:
    Delete your iTunes Downloads folder, located in:
    Mac OS X:
  ~/Music/iTunes/iTunes Media/Downloads   Note: "iTunes Media" may appear as "iTunes Music. Also, the tilde (~) refers to your Home directory.
    Windows Vista:
  \Users\username\Music\iTunes\iTunes Media\Downloads\
    Windows 7:
  \Users\username\My Music\iTunes\iTunes Media\Downloads\
    Windows XP:
  \Documents and Settings\username\My Documents\My Music\iTunes\iTunes Media\Downloads\
    After locating your iTunes Downloads folder:
    Quit iTunes.
    Delete the Downloads folder on your computer.
    Open iTunes.
    Choose Store > Check for Available Downloads.
    Enter your account name and password.
    If you encounter this issue while while downloading Digital Copies using Windows:
    Use MSCONFIG (directions for Windows XP and Windows Vista/Windows 7) to disable conflicting software.
    If using MSCONFIG steps resolves the issue, you may want to use the System Configuration Utility to turn on the third-party System Services and Startup Items one at a time (restarting your computer after turning on the item or items) to identify which System Service or Startup Item is causing the conflict.
    You can turn all of them back on by selecting the Normal Startup option under the General tab of the System Configuration Utility window, but please note that this may cause the issue to reoccur.
    If you are able to isolate the issue to a particular third-party software, you may wish to contact them to let them know of the conflict.
    iTunes: Advanced iTunes Store troubleshooting
    http://support.apple.com/kb/TS3297
    Cheers,
    Allen

  • Something keeps trying to download on my mac and I don't know what it is. It is not in the apple store and just comes out nowhere and request for my password to download something and I don't know what it is. How to make this stop?

    Something keeps trying to download on my mac and I don't know what it is. It is not in the apple store and just comes out nowhere and request for my password to download something and I don't know what it is. How to make this stop? It pops up every single day.

    Erica,
         I can, with 99.99% certainty, tell you that you are absolutely right in not wanting to download or install this "Helper," whatever it is (but we can be equally certain it would not "help" anything).
         I cannot comment as to Oglethorpe's recommendation of 'adwaremedic'; I am unfamiliar with it.  His links to the Apple discussion and support pages warrant your time and attention.
         It might be really simple -- Trying looking in your Downloads folder, trash anything that you don't know with certainty is something you want to keep, and then Secure Empty your Trash. Then remove the AdBlock extension, LastPass, and Web of Trust extensions to Safari and re-boot. If the issue goes away, still be extraordinarily careful in the future.
         Unfortunately, it's probably not going to be that simple to get rid of, in which case I'd then try the line by line editing in HT203987. 
         I have no further suggestions (other than a complete wipe and re-install...but that's a pain because trying to restore from Time Machine would simply ... restore the Mal).
       For the rest of us, please post when you find a solution.
         Best.
         BPW
      (Also, try to edit your second post -- black out your last name on the screenshot and re-post it for others)

  • Have iphoto 9.0 working on a mac osx 10.7.4 yesterday ilife with idvd was downloaded into my mac,i can't open my iPhoto now its telling me to update app, but when i do it says no new updates are available at this time,and iPhoto update mesg pops up again.

    Have iphoto 9.0 working on a mac osx 10.7.4 yesterday ilife with idvd was downloaded into my mac,i can't open my iPhoto now its telling me to update app, but when i do it says no new updates are available at this time,and iPhoto update mesg pops up again.

    Hi,
    I scoured the web looking everywhere for a solution to this.
    Exit Code 15
    OSX 8.5 with Work@Home DVD media for CS6
    I followed instructions to run 3rd party cleaner software
    I tried the adobe removal tool
    removing all copies of adobe software manually
    installing from a new account, safe mode, plist everything suggested that i found did not work.
    A colleague suggested that removing the below folder would allow the installation:
    /Library/Application Supports/Adobe
    They turned out to be correct, so i am passing this on, because this took far too many hours of my time.
    Cheers,
    Smokey

  • I cannot to download from the mac app store (There was an error in the App Store. Please try again later. (20))

    I cannot to download from the mac app store (There was an error in the App Store. Please try again later. (20))
    I traied to remove cookies and still don't working.

    Regretably, none of the above solutions has resolved this problem for me.
    Whenever I try to perform updates (in my case, Xcode and iPhoto both want to update), I receive the following error:
    An error occurred during purchase.
    (of course, I am not trying to purchase anything, it is a free update)
    If I press Retry, the above repeats until I press Cancel, then I see:
    We could not complete your request.
    There was an error in the App Store.  Please try again later.  (20)
    I have been "trying again later" for three weeks now, with no resolution in sight.

  • Why can't i watch a rent movie on my apple tv while it downloads on my mac computer

    why can't i watch a rent movie on my apple tv while it downloads on my mac computer

    to watch a rented movie on apple tv that you downloaded on your computer. You have to buy it to do this.

  • I'm unable to instantly watch netflix on my Powerbook G4  Mac OS X10.5.8.  Can I download the required Mac OS 10.4.11?

    I'm unable to instantly watch netflix on my Powerbook G4 Mac OSX 10.5.8.  Am I able to download the required Mac OS 10.4.11?  Thank you.

    What PowerBook model do you have? OS 10.4.11 Tiger is the OS just prior to your OS 10.5 Leopard. There is no download, free or purchase. You have to buy the install DVD. What makes you think Netflix will work with 10.4.11 when it possibly doesn't work with 10.5.8? It's prrobably you Mac hardware & not software.
     Cheer, Tom

  • I am facing the problem on downloading apps from Mac App Store, when I try to install the application from App store, I am getting an error message "Status_Code_Error" while click on "Login"

    I am facing the problem on downloading apps from Mac App Store, when I try to install the application from App store, I am getting an error message "Status_Code_Error" while click on "Login"

    Same problem here in Brazil.
    It seems to be a problem with logging in App Store in the Mac (Yosemite 10.10.2).
    When I tried the very same userid and password I was able to login in to use my iCloud account from the same computer and also from my iPhone.

  • When downloading on my Mac the Adobe Photoshop Lightroom 4

    i got the following error message: "Operation could not be completed (com.apple.installer.pagecontroller error-1)
    Couldn't open "Adobe Photoshop Lghtroom 4.pkg"

    Okay thank you. So will OS X Mountain Lion what I should be buying then?
    Date: Sat, 8 Sep 2012 19:50:39 -0600
    From: [email protected]
    To: [email protected]
    Subject: when downloading on my Mac the Adobe Photoshop Lightroom 4
        Re: when downloading on my Mac the Adobe Photoshop Lightroom 4
        created by John Waller in Photoshop Lightroom - View the full discussion
    Google the error message. http://forums.adobe.com/message/4450305 You are getting this error message because your computer doesn't meet the minimum system requirement. Check the link for tech specs :- http://www.adobe.com/products/photoshop-lightroom/tech-specs.html You need OSX 10.6.8 or later
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4683881#4683881
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4683881#4683881. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Photoshop Lightroom by email or at Adobe Forums
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • How many system can i download to my mac pro?

    how many system can i download to my mac pro?

    siren7400 wrote:
    ...I'd like to load OS 9 onto my Mac Mini and still have the option of using the already loaded OS X. Is this possible on this machine?...
    Very likely your best chance of managing that would be to use the software and instructions found here.

  • Hey Guys I Wanted To Know How Do I Change The Download/Install Location Of Apps I download From The Mac App Store Bac To The Dock Like In Snow Leopard?

    So Every Time I Download From The Mac App Store (In Lion) It Always Pops Up And Downloads/Installs In The iOS Feature Thing, So How Do I Change That So It Doenloads/Installs Straight 2 The Dock Like In Snow Leopard?? lol
    Specs...
    Macbook Pro (Early 2008)
    Intel Core 2 Duo
    4GB RAM (MAXED)

    Actually it does because the Dock is Snow Leopard's program launcher. For Lion, LaunchPad is the program launcher, not the Dock. Don't like that? Here's where you complain. Otherwise, you asked and I answered.

  • Is MAC OS X v10.6.8 same as MAC OS X Snow Leopard. Since i want to download MAC OS X LION can it be downloaded on my mac which has MAC OS X v10.6.8 ??

    Is MAC OS X v10.6.8 same as MAC OS X Snow Leopard. Since i want to download MAC OS X LION can it be downloaded on my mac which has MAC OS X v10.6.8 ??

    Yes, assuming you can run Lion, & can deal with no more Save or Save As... functions...
    Lion/101.7 System requirements
        •    x86-64 processor (Macs with an Intel Core 2 Duo, Intel Core i3, Intel Core i5, Intel Core i7, or Xeon processor.)
        •    At least 2GB of memory, (I say 4GB)
        •    Latest version of Mac OS X Snow Leopard (10.6.8), with the Mac App Store installed
        •    At least 4GB of disk space for downloading, (I say 40GB at least)
    Like Snow Leopard, Lion does not support PowerPC-based Macs (e.g., Power Macs, PowerBooks, iBooks, iMacs (G3-G5), eMacs).
    Lion also does not support 32-bit Intel Core Duo or Core Solo based Macs. Rosetta is no longer available in Lion, which means Lion no longer supports PowerPC applications.

  • Adobe reader download problem on mac.  when i try to download reader it says i need adobe air.  when i try to download adobe air it says it's no longer available or supported.  i deleted the old air because i got a message saying i needed to delete it.

    adobe reader download problem on mac.  when i try to download reader it says i need adobe air.  when i try to download adobe air it says it's no longer available or supported.  i deleted the old air because i got a message saying i needed to delete it. what should i do?  my operating system is Mac 10.7.5

    You don't need Adobe AIR to download or install Adobe Reader.
    Try downloading the offline installer from http://get.adobe.com/reader/enterprise/

  • I just downloaded update for Mac OS X 10.6.8 and afterwards everything go smaller - how to enlargen back?

    I just downloaded an update Mac OS X 10.6.8 and everything got smaller; how do I enlargen it back to what it was?

    You should probably think about upgrading your operating system to the newest one, which is Yosemite. It has the latest version Safari running.

Maybe you are looking for