SSH help needed - totally lost

I'm trying to generate an SSH key and copy it to my web host.
I've done the following:
in terminal ssh-keygen
saved it to /users/me/.ssh/id_rsa
Here is where I'm lost - in my web host control panel I'm supposed to upload the key. But where the heck is that directory on my computer? I cannot find anything named .ssh or ssh or id_rsa or anything. I don't know what to do to make this work.
Please help!!!
Denise

The .ssh directory you're using there is not visible in the Finder. Hit command-shift-G and type the full path to it, or use an FTP client which lets you browse hidden files.

Similar Messages

  • Help needed! - Lost firewire on Audigy c

    Hi there,
    I've been running an early Audigy PCI card on a 200 Athelon (OS is XP Pro) in the lounge as a home theatre system for some time.
    The firewire port has always functioned properly. I use is a lot to connect other dri'ves, etc.
    I'm not sure of the circumstances of when it ceased to work or what may have triggered it, but although it's seen in hardware as being AOK, whenever i plug a dri've or burner in, it just will not trigger and show the device.
    The external firewire cages and dri'ves show up fine on my other computer.
    Both have XP SP2 on them.
    I've just caught a hint searching Google, that there may have been a problem with this cards firewire and SP2, but i'm not sure if that's really the problem.
    Some guidance or means of testing would be really appreciated.
    Many thanks, Alvin

    Yep... did that already. Said my drivers were the most recent!
    Thanks anyway though.
    Alvin

  • Totally lost about N95 GPS. Help!

    Hi. I just recently bought a N95 and I know nuts about the GPS thing. When I open maps, I see this picture of a globe with a small icon of a satellite with a cross on it (I presume I am not connected to it). When i view satellite info, I am able to pick something up.
    When I rotate the globe and then press the GPS pos button, it focuses on Europe which Im not at (not zoom in).
    Btw, Im from Singapore and im using Starhub network.
    Can anyone help me? Im totally lost.

    Hi frostshardz
    Firstly if you are using v12.0.013 or later software on your N95 it is a lot quicker to obtain fix with A-GPS feature, although an active connection via WLAN or Network is needed.
    Go outside away from buildings and tress with clear view of sky. Open slider and hold phone at 45degrees, don't cover "#" key as GPS antenna beneath it. Low cloud or rain will make satellite acquisition a lot longer.
    If you go to Menu > Tools > GPS data > (searching for + calculating data) > Position > Options > Satellite status
    This shows any number of satellites up to five - empty rectangle = not locked on - black filled rectangle = signal acquired; you need a minimum of 3 solid bars for lock-on and triangulation to work.
    Once satellites are locked on you should be able to zoom into your position provided that active connection has been set to "as needed" rather than "never" in options > settings in Maps application, to allow download of sufficient map detail.
    Happy to have helped forum in a small way with a Support Ratio = 37.0

  • Hi help needed. Just updated my I phone 4 for first time since I bought it (I know, I know). Lost everything. What I really want back is my notes. Any ideas. Please. Somewhat desperate!!!!

    Help needed. Just updated my I phone 4 and lost all my notes, and no I didn't put them in the I cloud. Please help. Need those notes!

    You could always check to make sure itunes is updated to 10.7 but im sure gdgmacdude is
    right.
    thanks
    gdgmacdude
    Hey dude
    are there anymore hardware failure errors u know of
    im kinda a novice apple man and could use all the help i can get
    capp

  • Hi i need you help, I have lost my iphone yesterday . Still my mobile is ringing. I want to know the location of my phone.

    Hi i need you help,
    I have lost my iphone yesterday .
    Still my mobile is ringing. I want to know the location of my phone.
    I did't installed the Findmyiphone App.
    I have purcheased last month only.
    Please Please Please help me.

    Hi I have't sync my device with Icloud till now.
    so I am not able to login with Apple id.
    Any other posibilities?

  • I am totally lost with this instalation with Adobe Photoshop, can anyone HELP ME ????

    I am Totally Lost with the installing of my Adobe Photoshop CS6 ---- I have downloaded the 3 files ( directions & 2 installation setup programs)  NOW WHAT?????

    Cailinb1420473 do you receive any specific error messages when trying to install Creative Suite 6?  For information on how to install Creative Suite 6 please see Install Adobe Creative Suite 6.  If you have any questions regarding the document you are welcome to update this discussion.

  • IPhone 4 reset itself, photos lost -URGENT HELP NEEDED

    Hi there,
    Urgent help needed!!
    Tonight I was taking extremely important photos throughout an event on my iPhone 4, however, my iPhone 4 ran out of battery once I was near a charger I plugged it in and for some reason my iPhone had reset itself. Back up icloud options were from yesterday, but the photos that I was taking at the event are needed urgently. Is there any way possible I can recover the photos that were taken?
    Thanks in advance!!!!

    Slymm71 wrote:
    just had similar problem got email from find my phone saying initiating full phone wipe this cannot be stopped ***? i own the phone from new and registerred in m name but wiped whilst i was using it !!!
    See your other post... 
    https://discussions.apple.com/message/18876037#18876037

  • So totally lost!

    I am so totally lost right now. I have been trying for two days to get my cd burner to work and can't. I am trying to make a cd for my husband who is in honduaras. I am sending a box there tomorrow but have had no luck with the cd. I'm not up to date with all the new hardware and software out now lol. Is there any other way to get music off my computer? Its old a Mac OS X 10.3.9. What do I need? MP3 player or an ipod? How do they work? Please help! This is so important,i'm almost ready just to pack my computer up and send it. I am a complete idiot about this so if you can help,please explain it to me in terms I can understand lol.

    Hi and welcome....
    Open the System Profiler (Applications/Utilities)
    Select: Disc Burning under Contents on the left.
    If your Mac can burn to CD's you should see: CD-Write -R -RW
    Its old a Mac OS X 10.3.9.
    In order to transfer music to an iPod you would need to upgrade to Leopard v10.5 since that is the minimum requirement for iTunes which you need to copy the music from the computer to the iPod.
    http://www.apple.com/itunes/download/
    If your Mac is a G3 you could install an older version of iTunes but you would still need to upgrade to Tiger v10.4.10 in order to burn CD's. http://support.apple.com/kb/DL857
    Carolyn

  • Dead (but not) iBook G4... Much Help Needed!

    There I was, minding my own business, checking my Facebook page and reading a few emails when all of a sudden...
    "You need to restart your computer. Hold the power button for a few seconds blah blah blah"...
    So I do.
    It restarts.
    Same thing, but this time I hadn't even opened anything.
    So I restart again.
    This time, it doesn't even get to the log-in screen.
    I try again and again and nothing.
    I "safe boot" the iBook and I can log in and look around and grabbed the "panic.log" file, which means nothing to me.
    Can't find my install disks, Apple want to charge me £70 (or more) for a new set... I'm getting a copy of Leopard soon anyway (friend, un-wanted upgrade disk etc), I'm going to run the Diagnostic thing as soon as I've burnt the dmg to CD using Windows (yes, it CAN be done!)...
    In the mean time, can someone help decifer the log? What the **** is actually wrong with my iBook? it can't be a hardware problem because it boots up in "safe boot"... I removed any new programs I install that may have screwed it up... Totally lost now.
    Thanks
    --------------------------------------LOG BELOW----------------------------------------
    Thu Nov 30 18:12:08 2006
    Unresolved kernel trap(cpu 0): 0x400 - Inst access DAR=0x00000000E6FAE000 PC=0x0000000000000000
    Latest crash info for cpu 0:
    Exception state (sv=0x2DD55280)
    PC=0x00000000; MSR=0x40009030; DAR=0xE6FAE000; DSISR=0x40000000; LR=0x002C84A4; R1=0x178E3DC0; XCP=0x00000010 (0x400 - Inst access)
    Backtrace:
    0x002C8440 0x0003C884 0x000A9314
    Proceeding back via exception chain:
    Exception state (sv=0x2DD55280)
    previously dumped as "Latest" state. skipping...
    Exception state (sv=0x2E298780)
    PC=0x00000000; MSR=0x0000D030; DAR=0x00000000; DSISR=0x00000000; LR=0x00000000; R1=0x00000000; XCP=0x00000000 (Unknown)
    Kernel version:
    Darwin Kernel Version 8.8.0: Fri Sep 8 17:18:57 PDT 2006; root:xnu-792.12.6.obj~1/RELEASE_PPC
    panic(cpu 0 caller 0xFFFF0004): 0x400 - Inst access
    Latest stack backtrace for cpu 0:
    Backtrace:
    0x00095138 0x00095650 0x00026898 0x000A7E04 0x000AB780
    Proceeding back via exception chain:
    Exception state (sv=0x2DD55280)
    PC=0x00000000; MSR=0x40009030; DAR=0xE6FAE000; DSISR=0x40000000; LR=0x002C84A4; R1=0x178E3DC0; XCP=0x00000010 (0x400 - Inst access)
    Backtrace:
    0x002C8440 0x0003C884 0x000A9314
    Exception state (sv=0x2E298780)
    PC=0x00000000; MSR=0x0000D030; DAR=0x00000000; DSISR=0x00000000; LR=0x00000000; R1=0x00000000; XCP=0x00000000 (Unknown)
    Kernel version:
    Darwin Kernel Version 8.8.0: Fri Sep 8 17:18:57 PDT 2006; root:xnu-792.12.6.obj~1/RELEASE_PPC
    Sun Dec 23 20:15:29 2007
    panic(cpu 0 caller 0x000A8C00): Uncorrectable machine check: pc = 00000000006DE038, msr = 0000000000149030, dsisr = 42000000, dar = 0000000014E80000
    AsyncSrc = 0000000000000000, CoreFIR = 0000000000000000
    L2FIR = 0000000000000000, BusFir = 00000000fff00000
    Latest stack backtrace for cpu 0:
    Backtrace:
    0x000954F8 0x00095A10 0x00026898 0x000A8C00 0x000A7E90 0x000ABB80
    Proceeding back via exception chain:
    Exception state (sv=0x2DE0F280)
    PC=0x006DE038; MSR=0x00149030; DAR=0x14E80000; DSISR=0x42000000; LR=0x006DDC10; R1=0x1768BC70; XCP=0x00000008 (0x200 - Machine check)
    Backtrace:
    0x00418132 0x00709EC8 0x00705828 0x0071A094 0x002D1B8C 0x002D0A54
    0x000A9714
    Kernel loadable modules in backtrace (with dependencies):
    com.apple.iokit.AppleAirPort2(405.1)@0x6db000
    dependency: com.apple.iokit.IONetworkingFamily(1.5.0)@0x593000
    dependency: com.apple.iokit.IOPCIFamily(1.7)@0x4ec000
    Exception state (sv=0x30FA3000)
    PC=0x00000000; MSR=0x0000D030; DAR=0x00000000; DSISR=0x00000000; LR=0x00000000; R1=0x00000000; XCP=0x00000000 (Unknown)
    Kernel version:
    Darwin Kernel Version 8.11.0: Wed Oct 10 18:26:00 PDT 2007; root:xnu-792.24.17~1/RELEASE_PPC
    Sun Dec 23 21:00:17 2007
    panic(cpu 0 caller 0x000A8C00): Uncorrectable machine check: pc = 0000000000705594, msr = 0000000000149030, dsisr = 42000000, dar = 00000000007AC000
    AsyncSrc = 0000000000000000, CoreFIR = 0000000000000000
    L2FIR = 0000000000000000, BusFir = 0000000000000000
    Latest stack backtrace for cpu 0:
    Backtrace:
    0x000954F8 0x00095A10 0x00026898 0x000A8C00 0x000A7E90 0x000ABB80
    Proceeding back via exception chain:
    Exception state (sv=0x39CDDA00)
    PC=0x00705594; MSR=0x00149030; DAR=0x007AC000; DSISR=0x42000000; LR=0x0071A078; R1=0x1783BD30; XCP=0x00000008 (0x200 - Machine check)
    Backtrace:
    0x01E14080 0x0071A078 0x002D1B8C 0x002D0A54 0x000A9714
    Kernel loadable modules in backtrace (with dependencies):
    com.apple.iokit.AppleAirPort2(405.1)@0x6db000
    dependency: com.apple.iokit.IONetworkingFamily(1.5.0)@0x593000
    dependency: com.apple.iokit.IOPCIFamily(1.7)@0x4ec000
    Exception state (sv=0x314E3500)
    PC=0x00000000; MSR=0x0000D030; DAR=0x00000000; DSISR=0x00000000; LR=0x00000000; R1=0x00000000; XCP=0x00000000 (Unknown)
    Kernel version:
    Darwin Kernel Version 8.11.0: Wed Oct 10 18:26:00 PDT 2007; root:xnu-792.24.17~1/RELEASE_PPC
    Sun Dec 23 22:14:32 2007
    panic(cpu 0 caller 0x000A8C00): Uncorrectable machine check: pc = 000000000070552C, msr = 0000000000149030, dsisr = 42000000, dar = 00000000E00FC000
    AsyncSrc = 0000000000000000, CoreFIR = 0000000000000000
    L2FIR = 0000000000000000, BusFir = 0000000000000000
    Latest stack backtrace for cpu 0:
    Backtrace:
    0x000954F8 0x00095A10 0x00026898 0x000A8C00 0x000A7E90 0x000ABB80
    Proceeding back via exception chain:
    Exception state (sv=0x39CA9000)
    PC=0x0070552C; MSR=0x00149030; DAR=0xE00FC000; DSISR=0x42000000; LR=0x0071A078; R1=0x177D3D30; XCP=0x00000008 (0x200 - Machine check)
    Backtrace:
    0x01F4E75C 0x0071A078 0x002D1B8C 0x002D0A54 0x000A9714
    Kernel loadable modules in backtrace (with dependencies):
    com.apple.iokit.AppleAirPort2(405.1)@0x6db000
    dependency: com.apple.iokit.IONetworkingFamily(1.5.0)@0x593000
    dependency: com.apple.iokit.IOPCIFamily(1.7)@0x4ec000
    Exception state (sv=0x2C1C9780)
    PC=0x00000000; MSR=0x0000D030; DAR=0x00000000; DSISR=0x00000000; LR=0x00000000; R1=0x00000000; XCP=0x00000000 (Unknown)
    Kernel version:
    Darwin Kernel Version 8.11.0: Wed Oct 10 18:26:00 PDT 2007; root:xnu-792.24.17~1/RELEASE_PPC
    Mon Dec 24 10:52:53 2007
    panic(cpu 0 caller 0x000A8C00): Uncorrectable machine check: pc = 000000000070552C, msr = 0000000000149030, dsisr = 42000000, dar = 0000000001021000
    AsyncSrc = 0000000000000000, CoreFIR = 0000000000000000
    L2FIR = 0000000000000000, BusFir = 00000000fff00000
    Latest stack backtrace for cpu 0:
    Backtrace:
    0x000954F8 0x00095A10 0x00026898 0x000A8C00 0x000A7E90 0x000ABB80
    Proceeding back via exception chain:
    Exception state (sv=0x318B5C80)
    PC=0x0070552C; MSR=0x00149030; DAR=0x01021000; DSISR=0x42000000; LR=0x0071A078; R1=0x17843D30; XCP=0x00000008 (0x200 - Machine check)
    Backtrace:
    0x00000000 0x0071A078 0x002D1B8C 0x002D0A54 0x000A9714
    Kernel loadable modules in backtrace (with dependencies):
    com.apple.iokit.AppleAirPort2(405.1)@0x6db000
    dependency: com.apple.iokit.IONetworkingFamily(1.5.0)@0x593000
    dependency: com.apple.iokit.IOPCIFamily(1.7)@0x4ec000
    Exception state (sv=0x318B1C80)
    PC=0x00000000; MSR=0x0000D030; DAR=0x00000000; DSISR=0x00000000; LR=0x00000000; R1=0x00000000; XCP=0x00000000 (Unknown)
    Kernel version:
    Darwin Kernel Version 8.11.0: Wed Oct 10 18:26:00 PDT 2007; root:xnu-792.24.17~1/RELEASE_PPC
    Sat Dec 29 21:10:01 2007
    panic(cpu 0 caller 0x000A8C00): Uncorrectable machine check: pc = 00000000006F9B40, msr = 0000000000149030, dsisr = 40000000, dar = 000000009072D1E8
    AsyncSrc = 0000000000000000, CoreFIR = 0000000000000000
    L2FIR = 0000000000000000, BusFir = 0000000000000000
    Latest stack backtrace for cpu 0:
    Backtrace:
    0x000954F8 0x00095A10 0x00026898 0x000A8C00 0x000A7E90 0x000ABB80
    Proceeding back via exception chain:
    Exception state (sv=0x391AC280)
    PC=0x006F9B40; MSR=0x00149030; DAR=0x9072D1E8; DSISR=0x40000000; LR=0x0071ED08; R1=0x178B3D80; XCP=0x00000008 (0x200 - Machine check)
    Backtrace:
    0x00000000 0x0071ED08 0x0003CA1C 0x000A9714
    Kernel loadable modules in backtrace (with dependencies):
    com.apple.iokit.AppleAirPort2(405.1)@0x6db000
    dependency: com.apple.iokit.IONetworkingFamily(1.5.0)@0x593000
    dependency: com.apple.iokit.IOPCIFamily(1.7)@0x4ec000
    Exception state (sv=0x2D2E7C80)
    PC=0x00000000; MSR=0x0000D030; DAR=0x00000000; DSISR=0x00000000; LR=0x00000000; R1=0x00000000; XCP=0x00000000 (Unknown)
    Kernel version:
    Darwin Kernel Version 8.11.0: Wed Oct 10 18:26:00 PDT 2007; root:xnu-792.24.17~1/RELEASE_PPC
    Sat Dec 29 21:36:13 2007
    panic(cpu 0 caller 0x000A8C00): Uncorrectable machine check: pc = 000000000070552C, msr = 0000000000149030, dsisr = 40000000, dar = 0000000092AC345C
    AsyncSrc = 0000000000000000, CoreFIR = 0000000000000000
    L2FIR = 0000000000000000, BusFir = 0000000000000000
    Latest stack backtrace for cpu 0:
    Backtrace:
    0x000954F8 0x00095A10 0x00026898 0x000A8C00 0x000A7E90 0x000ABB80
    Proceeding back via exception chain:
    Exception state (sv=0x396D9000)
    PC=0x0070552C; MSR=0x00149030; DAR=0x92AC345C; DSISR=0x40000000; LR=0x0071A078; R1=0x1782BD30; XCP=0x00000008 (0x200 - Machine check)
    Backtrace:
    0x01F50140 0x0071A078 0x002D1B8C 0x002D0A54 0x000A9714
    Kernel loadable modules in backtrace (with dependencies):
    com.apple.iokit.AppleAirPort2(405.1)@0x6db000
    dependency: com.apple.iokit.IONetworkingFamily(1.5.0)@0x593000
    dependency: com.apple.iokit.IOPCIFamily(1.7)@0x4ec000
    Exception state (sv=0x30E52500)
    PC=0x00000000; MSR=0x0000D030; DAR=0x00000000; DSISR=0x00000000; LR=0x00000000; R1=0x00000000; XCP=0x00000000 (Unknown)
    Kernel version:
    Darwin Kernel Version 8.11.0: Wed Oct 10 18:26:00 PDT 2007; root:xnu-792.24.17~1/RELEASE_PPC

    Ok... Tried it
    Loaded up first time with AirPort off. I let it settle down, did a few simple things (Word, Preview, Spotlight). Did some complex stuff (Photoshop, Illustrator, Logic 7)... All fine.
    Turned AirPort on: CRASHED
    But then...
    Loaded up second time with AirPort off. Let it settle. Turned AirPort on....
    DIDN'T CRASH!
    Checked the panic.log for the last crash and again, AirPort came up in that same part of the log.
    Is it worth me taking this to my nearest dealer/reseller/service shop? Would they be able to do anything (cheaply-ish - as long as it costs a lot less than buying a new MacBook/2nd Hand iBook)? It seems to me like an inconsistent error but I don't want to get my hopes up, start using it, and then have it break on me all over again....!

  • Help needed in Finding Download location for Sun One Portal 7

    Hi,
    help needed for finding download location for Sun ONE Portal 7. I tried to find in Oracle Download page ,
    http://www.oracle.com/us/sun/sun-products-map-075562.html, But unable to find.
    Please share the link for download location.
    I am totally new in Sun ONE Portal.
    Thanks,
    Edited by: 945439 on Oct 5, 2012 3:41 AM

    try edelivery.oracle.com under sun products.

  • Help needed with Vista 64 Ultimate

    "Help needed with Vista 64 UltimateI I need some help in getting XFI Dolby digital to work
    Okay so i went out and I bought a yamaha 630BL reciever, a digital coaxial s/pdif, and a 3.5mm phono plug to fit perfectly to my XFI Extreme Music
    -The audio plays fine and reports as a PCM stream when I play it normally, but I can't get dolby digital or DTS to enable for some reason eventhough I bought the DDL & DTS Connect Pack for $4.72
    When I click dolby digital li've in DDL it jumps back up to off and has this [The operation was unsuccessful. Please try again or reinstall the application].
    Message Edited by Fuzion64 on 03-06-2009 05:33 AMS/PDIF I/O was enabled under speakers in control panel/sound, but S/PDIF Out function was totally disabled
    once I set this to enabled Dolby and DTS went acti've.
    I also have a question on 5. and Vista 64
    -When I game I normally use headphones in game mode or 2. with my headphones, the reason for this is if I set it on 5. I get sounds coming out of all of the wrong channels.
    Now when I watch movies or listen to music I switch to 5. sound in entertainment mode, but to make this work properly I have to open CMSS-3D. I then change it from xpand to stereo and put the slider at even center for 50%. If I use the default xpand mode the audio is way off coming out of all of the wrong channels.
    How do I make 5. render properly on vista

    We ended up getting iTunes cleanly uninstalled and were able to re-install without issue.  All is now mostly well.
    Peace...

  • Help needed by new Iphone 4s owner

    Help needed please - both my hubby and I have iphone 4s - I've just gone to download music onto my phone and have somehow managed to download all his stuff onto my phone and lost all of mine Is there anyway I can get my info back and delete his without restoring to back to factory settings (this was the first time I connected mine to the laptop to download and I'm not very good with the computer as you can see from my problem !) xx

    Thank you but I've not managed to download any I tunes yet but have got all his contacts and none of mine - thats what I'm trying to restore (sorry if not clear in question but as I said before I'm useless on computers)

  • URGENT HELP NEEDED - iPhone 3Gs no longer detected or charged by MacBook

    My iPhone 3Gs (3.1) has been running fine, until several hours ago today, when I plugged it to my MacBook, the iPhone is no longer detected - it doesn't show up in iTunes, nor it is charged. I tried opening iPhoto, and it wasn't there too. Not with Image Capture too. I tried charging it using the out-of-box wall charger using the same out-of-box USB cable I use for MacBook, and it can be charged without any problem. Then I put it into Recovery mode, and there iTunes can see it. I don't want to restore it before I figure out exactly what went wrong, as I don't want the restore process somehow gets stuck in the middle that the connection is lost again.
    I've tried reinstalled iTunes, including completely removal of Apple Mobile Device Support, as instructed by Apple. But still no luck.
    I've tried switching to another USB port of my MacBook. No luck.
    My iTunes is the latest 9.0.1, and my Mac OSX is 10.6.1. My iPhone is on 3.1, upgraded from 3.0.
    I've read from web that it seems I'm not the only one out there having this problem. But none of them seem having any real working solution.
    Urgent help needed & appreciated. Millions of thanks in advance.
    Gary

    1. I used both cables - theirs & mine ... and on several macs
    2. yes, same cable for wall & mac
    3. as said, i did completely remove & install itunes (incl. apple mobile device support), as instructed on the apple webpage
    anyway, did a restore just now. it seems okay now. but the problem is i have no idea what cause this, and i can't replicate the problem. so i don't know when it will happen again ... maybe a bug with os 3.1 ... others on web said os 3.1 is quite buggy ...

  • Help Needed REP-1800 Formatter error VGS-1701 Not enough memory

    Hi. Gents
    Help needed
    I’m working on a Report, it gets some 2 million records and the report pages are approximately 52,000
    It works fine if the pages are lesser then 48,000 or the data is less let say one and half a million, the problem occurs only after 48000 + pages formatted.
    Report is generated successfully when trying to go to the last page it throw an error.
    REP-1800 Formatter error
    VGS-1701 Not enough memory
    I have already gone through the metalink DOC Id 95505.1 as well as OTN
    But all in vain,
    Any comments or help much appreciated.
    Details are:
    Reports 6i (Clients/Server) on Windows platform
    (Windows XP Professional with SP 2)
    Database: Oracle9i Enterprise Edition Release 9.2.0.5.0
    Computer:
    Pentium(R) 4, CPU 3.00GHz, 1 GB of RAM
    Still 20 GB free space
    Thanks & Regards

    I don't see the point in making a report with more than 48,000 pages, I think Al Gore will not be happy when you start printing it...
    The problem might be caused by the fact that Reports needs to format all output at once, and then even 1GB of memory will probably be not enough. Formatting all pages at once is needed if you use pagination with displaying total number of pages. If you have this, try to get that out of the report definition and try again.

  • Help needed:Printing HTML file using javax.print

    Hi
    I am using the following code which i got form the forum for rpinting an HTML file.
    The folllowing code is working fine, but the problem is the content of HTML file is not getting printed. I am geeting a blank page with no content. What is the change that is required in the code? ALso is there any simpler way to implement this. Help needed ASAP.
    public boolean printHTMLFile(String filename) {
              try {
                   JEditorPane editorPane = new JEditorPane();
                   editorPane.setEditorKit(new HTMLEditorKit());
                   //editorPane.setContentType("text/html");
                   editorPane.setSize(500,500);
                   String text = getFileContents(filename);
                   if (text != null) {
                        editorPane.setText(text);                    
                   } else {
                        return false;
                   printEditorPane(editorPane);
                   return true;
              } catch (Exception tce) {
                   tce.printStackTrace();
              return false;
         public String getFileContents(String filename) {
              try {
                   File file = new File(filename);
                   BufferedReader br = new BufferedReader(new FileReader(file));
                   String line;
                   StringBuffer sb = new StringBuffer();
                   while ((line = br.readLine()) != null) {
                        sb.append(line);
                   br.close();
                   return sb.toString();
              } catch (Exception tce) {
                   tce.printStackTrace();
              return null;
         public void printEditorPane(JEditorPane editorPane) {
                   try {
                        HTMLPrinter htmlPrinter = new HTMLPrinter();
                        htmlPrinter.printJEditorPane(editorPane, htmlPrinter.showPrintDialog());
                   } catch (Exception tce) {
                        tce.printStackTrace();
         * Sets up to easily print HTML documents. It is not necessary to call any of the setter
         * methods as they all have default values, they are provided should you wish to change
         * any of the default values.
         public class HTMLPrinter {
         public int DEFAULT_DPI = 72;
         public float DEFAULT_PAGE_WIDTH_INCH = 8.5f;
         public float DEFAULT_PAGE_HEIGHT_INCH = 11f;
         int x = 100;
         int y = 80;
         GraphicsConfiguration gc;
         PrintService[] services;
         PrintService defaultService;
         DocFlavor flavor;
         PrintRequestAttributeSet attributes;
         Vector pjlListeners = new Vector();
         Vector pjalListeners = new Vector();
         Vector psalListeners = new Vector();
         public HTMLPrinter() {
              gc = null;
              attributes = new HashPrintRequestAttributeSet();
              flavor = null;
              defaultService = PrintServiceLookup.lookupDefaultPrintService();
              services = PrintServiceLookup.lookupPrintServices(flavor, attributes);
              // do something with the supported docflavors
              DocFlavor[] df = defaultService.getSupportedDocFlavors();
              for (int i = 0; i < df.length; i++)
              System.out.println(df.getMimeType() + " " + df[i].getRepresentationClassName());
              // if there is a default service, but no other services
              if (defaultService != null && (services == null || services.length == 0)) {
              services = new PrintService[1];
              services[0] = defaultService;
         * Set the GraphicsConfiguration to display the print dialog on.
         * @param gc a GraphicsConfiguration object
         public void setGraphicsConfiguration(GraphicsConfiguration gc) {
              this.gc = gc;
         public void setServices(PrintService[] services) {
              this.services = services;
         public void setDefaultService(PrintService service) {
              this.defaultService = service;
         public void setDocFlavor(DocFlavor flavor) {
              this.flavor = flavor;
         public void setPrintRequestAttributes(PrintRequestAttributeSet attributes) {
              this.attributes = attributes;
         public void setPrintDialogLocation(int x, int y) {
              this.x = x;
              this.y = y;
         public void addPrintJobListener(PrintJobListener pjl) {
              pjlListeners.addElement(pjl);
         public void removePrintJobListener(PrintJobListener pjl) {
              pjlListeners.removeElement(pjl);
         public void addPrintServiceAttributeListener(PrintServiceAttributeListener psal) {
              psalListeners.addElement(psal);
         public void removePrintServiceAttributeListener(PrintServiceAttributeListener psal) {
              psalListeners.removeElement(psal);
         public boolean printJEditorPane(JEditorPane jep, PrintService ps) {
                   if (ps == null || jep == null) {
                        System.out.println("printJEditorPane: jep or ps is NULL, aborting...");
                        return false;
                   // get the root view of the preview pane
                   View rv = jep.getUI().getRootView(jep);
                   // get the size of the view (hopefully the total size of the page to be printed
                   int x = (int) rv.getPreferredSpan(View.X_AXIS);
                   int y = (int) rv.getPreferredSpan(View.Y_AXIS);
                   // find out if the print has been set to colour mode
                   DocPrintJob dpj = ps.createPrintJob();
                   PrintJobAttributeSet pjas = dpj.getAttributes();
                   // get the DPI and printable area of the page. use default values if not available
                   // use this to get the maximum number of pixels on the vertical axis
                   PrinterResolution pr = (PrinterResolution) pjas.get(PrinterResolution.class);
                   int dpi;
                   float pageX, pageY;
                   if (pr != null)
                        dpi = pr.getFeedResolution(PrinterResolution.DPI);
                   else
                        dpi = DEFAULT_DPI;
                   MediaPrintableArea mpa = (MediaPrintableArea) pjas.get(MediaPrintableArea.class);
                   if (mpa != null) {
                        pageX = mpa.getX(MediaPrintableArea.INCH);
                        pageY = mpa.getX(MediaPrintableArea.INCH);
                   } else {
                        pageX = DEFAULT_PAGE_WIDTH_INCH;
                        pageY = DEFAULT_PAGE_HEIGHT_INCH;
                   int pixelsPerPageY = (int) (dpi * pageY);
                   int pixelsPerPageX = (int) (dpi * pageX);
                   int minY = Math.max(pixelsPerPageY, y);
                   // make colour true if the user has selected colour, and the PrintService can support colour
                   boolean colour = pjas.containsValue(Chromaticity.COLOR);
                   colour = colour & (ps.getAttribute(ColorSupported.class) == ColorSupported.SUPPORTED);
                   // create a BufferedImage to draw on
                   int imgMode;
                   if (colour)
                        imgMode = BufferedImage.TYPE_3BYTE_BGR;
                   else
                        imgMode = BufferedImage.TYPE_BYTE_GRAY;
                   BufferedImage img = new BufferedImage(pixelsPerPageX, minY, imgMode);
                   Graphics myGraphics = img.getGraphics();
                   myGraphics.setClip(0, 0, pixelsPerPageX, minY);
                   myGraphics.setColor(Color.WHITE);
                   myGraphics.fillRect(0, 0, pixelsPerPageX, minY);
                        java.awt.Rectangle rectangle=new java.awt.Rectangle(0,0,pixelsPerPageX, minY);
                   // call rootView.paint( myGraphics, rect ) to paint the whole image on myGraphics
                   rv.paint(myGraphics, rectangle);
                   try {
                        // write the image as a JPEG to the ByteArray so it can be printed
                        Iterator writers = ImageIO.getImageWritersByFormatName("jpeg");
                        ImageWriter writer = (ImageWriter) writers.next();
                                       // mod: Added the iwparam to create the highest quality image possible
                        ImageWriteParam iwparam = writer.getDefaultWriteParam();
                        iwparam.setCompressionMode(ImageWriteParam.MODE_EXPLICIT) ;
                        iwparam.setCompressionQuality(1.0f); // highest quality
                        ByteArrayOutputStream out = new ByteArrayOutputStream();
                        ImageOutputStream ios = ImageIO.createImageOutputStream(out);
                        writer.setOutput(ios);
                        // get the number of pages we need to print this image
                        int imageHeight = img.getHeight();
                        int numberOfPages = (int) Math.ceil(minY / (double) pixelsPerPageY);
                        // print each page
                        for (int i = 0; i < numberOfPages; i++) {
                             int startY = i * pixelsPerPageY;
                             // get a subimage which is exactly the size of one page
                             BufferedImage subImg = img.getSubimage(0, startY, pixelsPerPageX, Math.min(y - startY, pixelsPerPageY));
                                                 // mod: different .write() method to use the iwparam parameter with highest quality compression
                             writer.write(null, new IIOImage(subImg, null, null), iwparam);
                             SimpleDoc sd = new SimpleDoc(out.toByteArray(), DocFlavor.BYTE_ARRAY.JPEG, null);
                             printDocument(sd, ps);
                             // reset the ByteArray so we can start the next page
                             out.reset();
                   } catch (PrintException e) {
                        System.out.println("Error printing document.");
                        e.printStackTrace();
                        return false;
                   } catch (IOException e) {
                        System.out.println("Error creating ImageOutputStream or writing to it.");
                        e.printStackTrace();
                        return false;
                   // uncomment this code and comment out the 'try-catch' block above
                   // to print to a JFrame instead of to the printer
                   /*          JFrame jf = new JFrame();
                             PaintableJPanel jp = new PaintableJPanel();
                             jp.setImage( img );
                             JScrollPane jsp = new JScrollPane( jp );
                             jf.getContentPane().add( jsp );
                             Insets i = jf.getInsets();
                             jf.setBounds( 0, 0, newX, y );
                             jf.setDefaultCloseOperation( JFrame.DISPOSE_ON_CLOSE );
                             jf.setVisible( true );*/
                   return true;
              * Print the document to the specified PrintService.
              * This method cannot tell if the printing was successful. You must register
              * a PrintJobListener
              * @return false if no PrintService is selected in the dialog, true otherwise
              public boolean printDocument(Doc doc, PrintService ps) throws PrintException {
                   if (ps == null)
                   return false;
                   addAllPrintServiceAttributeListeners(ps);
                   DocPrintJob dpj = ps.createPrintJob();
                   addAllPrintJobListeners(dpj);
                   dpj.print(doc, attributes);
                   return true;
              public PrintService showPrintDialog() {
                   return ServiceUI.printDialog(gc, x, y, services, defaultService, flavor, attributes);
              private void addAllPrintServiceAttributeListeners(PrintService ps) {
                   // add all listeners that are currently added to this object
                   for (int i = 0; i < psalListeners.size(); i++) {
                   PrintServiceAttributeListener p = (PrintServiceAttributeListener) psalListeners.get(i);
                   ps.addPrintServiceAttributeListener(p);
              private void addAllPrintJobListeners(DocPrintJob dpj) {
                   // add all listeners that are currently added to this object
                   for (int i = 0; i < pjlListeners.size(); i++) {
                   PrintJobListener p = (PrintJobListener) pjlListeners.get(i);
                   dpj.addPrintJobListener(p);
              // uncomment this also to print to a JFrame instead of a printer
              /* protected class PaintableJPanel extends JPanel {
                   Image img;
                   protected PaintableJPanel() {
                        super();
                   public void setImage( Image i ) {
                        img = i;
                   public void paint( Graphics g ) {
                        g.drawImage( img, 0, 0, this );
    Thanks
    Ram

    Ram,
    I have had printing problems too a year and a half ago. I used all printing apis of java and I still find that it is something java lacks. Now basically you can try autosense. To check whether your printer is capable of printing the docflavor use this PrintServiceLookup.lookupPrintServices(flavor, aset); . If it lists the printer then he can print the document otherwise he can't. I guess that is why you get the error.
    Regards,
    Kevin

Maybe you are looking for

  • Sales analysis problem

    sales analysis problem scenario: there are many plants and customers, the relationship between them is n:n, and every customer has a classification. my question is how to calculate the number of the plant that sold to one classification of the custom

  • WebDynpro app stopped working (Object not found in lookup of JPA_DEFAULT)

    Hi, my scenario is as as described in my posting (java.lang.IllegalArgumentException: model object must not be null). after i got everything up and working it suddenly stopped. the wedynpro project is implicitly stopped, beacuse earecipe could not st

  • Dynamic VARIANT FOR Fiscal Period and dates

    Hi We have a custom transaction with date and fiscal period as vairable parameters and need to know if we can generate a DYNAMIC VARIANT for these based on FISCAL PERIOD. Replies will rewarded

  • Premiere Pro CS5.5 stürzt bei "importieren" ab

    Hallo zusammen Nach erfolglosem Suchen in unmengen Foren habe ich nun beschlossen hier zu fragen. Ich habe einen iMac und mit der Software auf dem neusten Stand (OSX 10.9). Ich arbeite seit einiger Zeit an einem Kurzfilm in Adobe Premiere Pro CS5.5 u

  • Premiere Elements 9 Won't Let Me Export Video.  What's Wrong?

    So I have been trying to edit a recent Let's Play video for my Youtube channel, but there is a huge problem.  The program won't let me export my video.  I tried to export it as a .mpg; but it will never finish rendering.  I've tried other formats and