Having a problem printing from Java

I've written a program in Java that is supposed to print a document. This program when run on Linux gives a "print services not found" exception . Whereas, the same program when run on Windows prints the document.
The printer on which the printing is done is an HP deskjet printer. This printer is on the network. The version of Linux is 7.2. The version of Java is 1.4. I am able to print documents from Linux Operating sys. The problem is printing documents from java.
Please can u advice on how I can overcome this problem or advice on another alternative.
Thank u
Dhanajay K.

Hello,
Did you solve your problem? I have the same problem.
In fact, I wrote a program using the JPS. Java finds the printers on Windows... JPS found the printers when I used LPD. But today I use CUPS, and JPS does not find any more the printers.
I believed that the JPS used "Printcap" to find the installed printers ? did'nt ?
I have well the "printcap" automatically generated by CUPS...
Thank you for all informations.

Similar Messages

  • I'm having problems printing from my 15" macbook pro to my HP wireless printer. It works sometimes but not reliably, it can spend hours "seating for printer". I can print from my i pad with no problems

    I'm having problems printing from my 15" macbook pro to my HP wireless printer. It works sometimes but not reliably, it can spend hours "seating for printer". I can print from my i pad with no problems

    Hi,
    Apple's AirPrint only support specific models while using wired or wireless network connection.
    Plugging a printer into a USB port of Apple base is not supported for AirPrint:
    AirPrint printers connected to the USB port of the Apple AirPort Base Station or Time Capsules are not supported with AirPrint.
    As well you must use AirPrint enabled printers for a such, none of your printers are AirPrint enabled:
    http://support.apple.com/kb/ht4356
    There are 3rd party solutions which allow sharing a printer connected to your Mac as AirPrint, Printopia as example provide a such:
    http://www.ecamm.com/mac/printopia/

  • I am having problems printing from my iPad via my AirPort Extreme network.

    I am having no success printing from my iPad via my AirPort Extreme based local network. I can use this to print wirelessly from my iMac OS X 10.7.5 and MacBook Pro OS X 10.6.8. I have 2 printer options: HP Laserjet (B&W) P1005 hard-wired to the iMac and HP Photosmart 7760 hard-wired to the AirPort Extreme. I believe I have checked all the correct boxes to enable the network and the iPad to connect, including ensuring that it is using the same network but when I try to select a printer I get the message that no printer can be found. Will it not work with an AirPort Extreme based network or only if this is connecting to wirelessly enabled printers which I do not have.
    Thanks for any suggestions.

    Hi,
    Apple's AirPrint only support specific models while using wired or wireless network connection.
    Plugging a printer into a USB port of Apple base is not supported for AirPrint:
    AirPrint printers connected to the USB port of the Apple AirPort Base Station or Time Capsules are not supported with AirPrint.
    As well you must use AirPrint enabled printers for a such, none of your printers are AirPrint enabled:
    http://support.apple.com/kb/ht4356
    There are 3rd party solutions which allow sharing a printer connected to your Mac as AirPrint, Printopia as example provide a such:
    http://www.ecamm.com/mac/printopia/

  • Problems printing from Google Chrome browser using my HP Officejet 6500 E709n Series printer

    Dear Sir or Madam:
    I am using Microsoft Windows XP Home Edition Version 2002 Service Pack 3 desktop computer.
    I have a HP Officejet 6500 E709n Series printer.
    I am encountering some problems printing from my Google Chrome browser in my Outlook.com account because when I try to change some settings in the print dialog interface the printout comes out incorrectly.
    Below are the 2 snapshots of the print dialog interface of Google Chrome browser before printing an email message from my Outlook.com account.
    Are there any software updates to correct this problem?
    Please reply back soon.
    Thanks.
    Sincerely,
    Etow

    Welcome to the forums Etow,
    I saw your post about the issue you are having with printing from Google Chrome. Have you tried disabling your pop up blocker to see if that will help? Also see this guide about Printing with Chrome.
    If the above does not help, try using Firefox or Internet Explorer to print.
    Have a great Friday
    R a i n b o w 7000I work on behalf of HP
    Click the “Kudos Thumbs Up" at the bottom of this post to say
    “Thanks” for helping!
    Click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution!

  • HT4356 I checked everything out and had no problem printing from IPAD/MINI using the HP Photosmart 6520 printer, but the next day, using same application, my HP did not show, but was looking for the AirPrint Printer, what am I doing wrong?

    Using IPAD2, IPAD MINi, HP photosmartE6520 set up on wireless network.  No problem printing from my devices, but the following day, it is looking for AirPrint printer, why? 

    Hello lenc48,
    Welcome to the HP Forums.
    I see that you are having a few issues when it comes to printing from your mac as well as some two sided printing issues.
    I do have a some suggestions that we can try in the attempt to troubleshoot this issue.
    First off, please make sure that you have the printer power cable connected directly to a wall outlet and not a power bar/strip. Here is a document that uses a LaserJet printer as an example but it is meant for HP products in general. Please click on the following link that explains the Issues when Connected to an Uninterruptible Power Supply/Power Strip/Surge Protector.
    Please remove the usb cable (if using wireless, disregard this step) from the printer and from the Mac and leave it disconnected until further notice.
    Please click on the first link that will give you instructions on Uninstalling the Printer Software.
    Once the software has been removed, please disable any anti virus protection that you may have on the Mac. 
    The next step we are going to take is downloading the HP Photosmart 6520 e-All-in-One Printer Full Feature Software and Drivers - OS X 10.9 Mavericks.
    The installation will prompt you when to connect the usb cable (You will see a prompt for a wireless connection as well if that is the connection type you would like to use) so please do not connect the cable until prompted to do so.
    If you are still having issues, feel free to write me back or you can contact HP Total care direct.  If you are calling within North America, the number is 1-800-474-6836 and for all other regions, click here: click here.
    Thanks for your time.
    Cheers, 
    Click the “Kudos Thumbs Up" at the bottom of this post to say “Thanks” for helping!
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    W a t e r b o y 71
    I work on behalf of HP

  • Problems printing from a Macbook Pro on a Kodak ESP7

    Hi,
    I am having problem printing from my Mac to the Kodak.  I have connected the mac to the printer through the settings as it can see it.  However, when I come to print it it says the printer is not responding and to check if it is turned on and properly connected.  I have tried reloading the printer etc but still cant get it to work.  I fired up my old windows laptop and that will print fine wirelessly so it can't be my BT Hub for the internet.
    Any suggestions would be appreciated as I dont want to go and have to buy another printer.
    Thanks for suggestions.
    Matt

    Using the OS X built-in network printing protocols
    requires a CUPS driver. Check on Brother's site to
    see if they now have a CUPS driver for your model,
    or you can try the open source hl1250 driver from:
    http://www.linuxprinting.org/macosx/hl1250/
    Unfortunately, I don't have an Intel Mac, so I don't
    know if any of these power PC drivers will work for
    you.
    Please let us know.
    I was told by a friend that the drivers are already built into the OS X 10.4.3, I hooked up the printer directly via USB and indeed it worked just fine. But, as I stated before, I just can't get the **** thing to work when the printer is connected to my PC and I try to print through the network.

  • Problems printing from iPhoto 6: Page setup & Preview

    I am having trouble printing from iPhoto v6. For starters, the miniture preview frame in the print screen does not conform to the paper size selection or image orientation. (It is always a big square.) Only part of a 4x6 image image is seen in the frame. This makes predicting the final result impossible. To make matters harder, the print dialog does not remember what paper size was last used and many internal "Advanced" options reset the paper size to "letter". Simple choosing any printer preset resets the paper size. Switching from advanced options to the iPhoto options seems to alter other selected options as wlll.
    I have the most current driver for my printer. I have no problem printing from Aperture or Photoshop. I have custom color profiles and am not entirely a novice, but I am wasting much paper and ink and spraying the inside of my printer!
    The use of the native iPhoto print routines seems mutually exclusive with using Advanced options. I understood that the first iterations of iPhoto wanted us to depend on the Mac Print routines, and it was always a little touchy but I would have hoped earlier problems would have been sorted out by now. I want to print my own pictures!
    Much confusion and no place to find good instructions. For example, should I be using "Full Page" or "Standard Prints" Standard settings in the print interface? There appear to be several places to select print sizes but they do not seem linked together nor is it obvious which one is determinitive. Under color options do I select Color Corrections <none> or <Colorsync> which then forces me to use driver recommended by Canon despite the fact I have a custom profile identified in Color sync utility. It just isn't working for me.
    Are others notiing that iPhoto print routines are no longer working for them? I would like to see the internal print routines working intuitively before additional efforts are made to facilitate purchase from outside printing sources!
    G5 2G Dual PowerMac 2yr old.   Mac OS X (10.4.4)   Canon i950 printer

    goldn:
    Welcome to the Apple Discussions. Just ran a test and I got a perfect card. Here's what I did.
    1 - create the card and type Command-P.
    2 - select Stylus Photo R200 under Printer
    3 - click on the Advanced button
    4 - in the bottom drop down menu select Paper Handling
    5 - select the radio button "Use documents paper size: 7.00 in x 10.00 in
    6 - now select Print Settings in the 3rd drop down menu
    7 - select the type of paper you're using and the print quality you want. I used Photo and High Speed. (also used plain paper for my test)
    9 - put a piece of 7 x 10 paper in the printer (yes, you'll have to trip the paper beforehand or use card stock designed for this)
    10 - click on Print
    11 - when the paper exits the printer quickly put it back in the printer
    That will do it. Now there is a caveat. Putting it back into the printer before drying tended to get my leading edge nipped. If you use heaver card stock I don't think that will happen but just be aware. If you wait a moment to put the page, turned over, back into the printer to let the ink dry a bit, all you'll have to do is press the middle button which will be blinking red and that will feed the other side thru when you're ready.

  • Problems Printing from Epson 2400 in Lightroom 2.3

    I'm in the process of switching over from a PC to a Mac. I've gotten lightroom running and transfered all my photos over. But I'm having two big problems printing from my Epson 2400.
    *8.5x11 prints are offset. The top of the picture starts about an inch lower than it should, and the bottom typically gets cut off.
    *Lightroom refuses to print 4x6 prints. It says it's printing, and the paper feeds in, but then the printer just spits out a blank page.
    I'm using the most current version of the Epson 2400 driver that I could find on the Epson web site.
    [Update] I used iPhoto 9 to print out some pictures, and they came out fine. So this seems to be a lightroom issue or a conflict between the lightroom/epson drivers.
    Any help would be greatly appreciated.
    Thanks!

    Further update. It appears that I can print perfectly from another account on the same mac. But the account on which my catalog resides doesn't work at all. Could my catalog have been corrupted when I transfered my photos and catalog over to the new mac from the pc? Is there any way that I can fix it? (I have tried optimize and relaunch; no luck.)
    I could -- as a last restort -- kill the catalog and reimport all my thousands of photos, but wouldn't I loose the keywords and adjustments?
    Any help would be greatly appreciated!

  • Problems printing from Adobe 9

    Hi, I am having problems printing from Adobe 9. I can open documents OK but when I try to print them it takes me through the normal print screens, then when I press print it says unable to print document followed by page not selected.
    I have also try to delete Adobe 9 and reinstall but when I come to reinstall, I have to click on the grey box at the top of my screen to agree to allow the instillation to take place and everything just freezes up and I have to ctr alt del to move on.
    Everything was working fine until the last couple of days
    Any help would be much appreciated

    My problem is the printing will eventually happen but I have to wait for as long as half an hour. What gives? Are there worms in the Acrobat 9 product? How can I resolve this problem?

  • Since the last update I have been unable to print from Firefox. No problem printing from Safari or any other program. I've seen a few responses to this problem but only to people running Windows. I'm on a Mac running v. 10.5.8

    Since the last update I have been unable to print from Firefox. No problem printing from Safari or any other program. I've seen a few responses to this problem but only to people running Windows. I'm on a Mac running v. 10.5.8.

    Also when I click on the link in my email to activate my account (in the hopes that a solve will be emailed to me) I get this message -
    "Something is wrong
    We could not activate your account. Please make sure that you have clicked the correct link in your email or typed in the correct address."
    Same message if I cut and paste the link.

  • I am suddenly having a problem printing 4x6 photos.  The print as though starting in the middle of an 8x10 sheet.  I've checked and double-checked the print settings.  Anyone else have this problem?

    I am suddenly having a problem printing 4x6 photos.  The print as though starting in the middle of an 8x10 sheet.  I've checked and double-checked the print settings.  Anyone else have this problem?

        jsavage9621,
    It pains me to hear about your experience with the Home Phone Connect.  This device usually works seamlessly and is a great alternative to a landline phone.  It sounds like we've done our fair share of work on your account here.  I'm going to go ahead and send you a Private Message so that we can access your account and review any open tickets for you.  I look forward to speaking with you.
    TrevorC_VZW
    Follow us on Twitter @VZWSupport

  • I am having difficulty in printing from my ipad to a Kodak Hero 9.1 WiFi printer. I am using Prin Pro Central as an App. The printer is not recognised on my Ipad. Any help or ideas would be appreciated.

    I am having difficulty in printing from my ipad to a Kodak Hero 9.1 WiFi printer. I am using Prin Pro Central as an App. The printer is not recognised on my Ipad. Any help or ideas would be appreciated.

    Versuche es mal ohne express vi s
    Eine Whileschleife, dessen Zähler Du als Zeitbasis verwendest,
    Sinusfunktionen als Signalquellen, g .....  ups english forum
    Try it without express vis
    a while loop with the index as timebase (multiply by your timestep to get t)
    sinus functions with 2 Pi  t  as signals
    In your vi in every interation of the while loop you generate an array of values where you always pich the same index   ...
     PS: here is my version
    Greetings from Germany
    Henrik
    LV since v3.1
    “ground” is a convenient fantasy
    '˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'

  • Anyone else have a problem printing from an iMac OS-X 10.9.3 to a wireless Epson Artisan printer? Sometimes it prints but must often I get "The printer is not connected" and I have to retry printing 8, 10 or 12 times before it will print?

    Anyone else have a problem printing from an iMac OS-X 10.9.3 to a wireless Epson 835 Artisan printer? Sometimes it prints but must often I get "The printer is not connected" and I have to retry printing 8, 10 or 12 times before it will print? I have followed all the instructions from Epson about upgrading, etc. but it is very frustrating when I have to repeatedly try to print. Epson says talk to Apple???

    Try checking thru these, maybe some help.
    Mac OS X: How to reset the printing system
    http://www.macworld.com/article/2029528/mac-troubleshooting-what-to-do-when-you- cant-print.html
    Also try deleting the printer from your printer Q system preferences, then reinstalling it (highlight the printer click the minus symbol, then click the plus symbol and add it again. Reboot, and try.

  • I am having a problem printing pdf forms from the USDA FSA web site

    The forms can be populated and printed but not saved. Each time I populate a form and try to print it the website stops responding. I have try without populating the form, I ve tryed different forms, different printer and system. restarting the computer, flushing my cache. I can print other pdf files, I can populate and print from other website. It only happening to me at the USDA FSA website after selecting an eform such as FSA 2002. Any help out there?

    You should be able to right click on the PDF in the site and save the form. Even if you can not, once the form is displayed it is actually saved to the TEMP folder and you could play with that version. You will not be able to save the form with any data included, only the form itself since you are using Reader (by the way, there is a separate forum for Reader that might provide better answers).
    To avoid the problems you mention with the web site, I would do the download of the form if at all possible and work directly in Reader on your system. That might solve the printing problem you are having. When I opened it yesterday, there was some linking to the site that I found a bit unusual, but I did not find anything in the PDF that would have done that -- I did not spend a lot of time looking for such things that would be typical of some JavaScript or such.

  • New problem printing from InDesign CS4 in Lion

    After having great success with Aisolve's earlier fix on printing from InDesign CS4 after upgrading to Lion, I'm having a new problems after installing the OS X 10.7.2 upgrade last week. When I try to print from  InDesign CS4 and Illustrator CS4 to my Lanier 445c/Ricoh C4500 at my workplace I get the following error message:
    "Printing Error: The Adobe Print Engine has failed to output your data due to an unknown problem."
    This seems like a different issue this time, as I'm able to print to my home printers, an HP LasertJet 2600n and an HP Photosmart C4270. I thought it might be a printer driver problems, but I've gone to Lanier's site and they don't have any new printer drivers for Mac OS X 10.7.
    I also some research on Adobe's site, and found this message affecting CS1, 2 & 3. I tried the only fix that seemed to apply to me, which was re-naming/deleting the InDesign Deafults and InDesign SavedData files. (I have this problems even when I'm printing a text-only file without any graphics.) This fix didn't work.
    I can print to the Lanier/Ricoh from Acrobat 9, and all my non-Adobe software just fine, so my work-around to date has been exporting to PDF and printing from there. My big problem is that I need the "Print Booklet" feature in InDesign for a big job I've got coming up this week. Can't do that from Acrobat. :-(
    Any help would be greatly appreciated!

    mmsteer,
    I think I may be able to help you with this problem, which I was having with CS4 when I first upgraded to Lion, and others were having with CS3. This fix is courtesy of Aisolve on these discussion boards:
    Remove the Adobe PDF PPDs from the following folders:
    OS/Library/Printers/PPDs/contents/Resources/en.lproj,
    OS/Library/Printers/PPDs/contents/Resources/Zh_CN.lproj,
    OS/Library/Printers/PPDs/contents/Resources/Ja.lproj,
    OS/Library/Printers/PPDs/contents/Resources/ko.lproj,
    OS/Library/Printers/PPDs/contents/Resources/Zh_TW.lproj,
    Be sure to go to your system Library, not your user Library.
    Also, regarding my current problem, I spoke with an Apple tech person and found that the 10.7.2 upgrade apparently is the culprit, and is incompatible with wireless printing to my Lanier printer. I CAN print connected through USB. That's a work-around for now, but I'll need to contact Lanier about upgrading their driver for OS X 10.7.2.
    Aisolve was helping me with this issue, too, and assures me that if I'm able to generate a postscript file (which I was), and able to generate a PDF by distlling it through Adobe Distiller (which I am), then I can safely assume that the problem lies with the hardware, in this case the printer driver. This lines up with what Apple told me.

Maybe you are looking for

  • Can Logic Pro X use a mic on a Duet and USB at the same time?

    Seems that it's either or. When it asks where you are getting your microphone from, it's not a per track basis. It did recognize the USB mic when I plugged it in but changed the setting and the mic off the Duet was gone. (Trying to record a podcast i

  • IHome doesn't charge or play my iPad or iPod anymore., iHome doesn't charge or play my iPad or iPod anymore.

    I got an iHome around 2 months ago. A few days ago I tried charging my iPod as usual from the USB port in the back it didn't work. So I decided to just plug it into the dock part it still didn't work. I plugged it into my MacBook and it worked so I k

  • Human Task / Task Service

    Hi, When you create a Human Task, there is a web service called "Task Service" which is created. So there is an invoke activity which calls the web service and a receive activity which receive the outcome. What I want to do is to write a java web ser

  • Set database in 10g Express

    Hi everybody, I'm a new user and I am having some issues getting a new database set up according to the instructions that I have been given. I need to set up a database, but I am unable to find the DBCA. Can anybody help? Thanks

  • Do I Need to Save Files when upgrading?

    Hi everyone, I'm upgrading from Premiere Elements 2 to 9 and would like to know if I have to save my other files, videos & projects to another drive or will the upgrade keep them where they are at, on my E drive? Thanks Jeff