Any one knows if java print api can drive kitchen or bar printers

Any one has experience about java on control kitchen or bar printers?
I am developping a program used by POS. I need to control those printers which located
in kitchen, cashier places. I want to print order info to kitchen, and print check to customers.
I am not sure if java print api can easily control those printers.
any can have experience on it?

Not an elegant solution, but it works.
(When I wrote this program I had 3 problems:
1. I didnt know the java printing system
2. I can't install the POSprinter under linux and windows
3. I didnt have time
so I printed directly to the port)
boolean isLinux=true;
File ifile = new File ("/dev/lp0");
if (!ifile.canWrite()) { // Windows
ifile = new File ("blokk.txt");
isLinux=false;}
try {
FileWriter fw = new FileWriter(ifile);
fw.write(".....\r\n");
fw.write(".....\r\n");
fw.close();
} catch (Exception ex) { ex.printStackTrace();}
if (!isLinux) {
try {Runtime.getRuntime().exec("blokkprint.bat");}catch (Exception ex) { ex.printStackTrace();}}
/* blokkprint.bat contains: copy blokk.txt lpt1*/

Similar Messages

Maybe you are looking for

  • Adaptive Processing Server vs WEBI reporting server

    I'm planning for production configuration, I want to know when I perform following actions, which server is used? webi or Adaptiive Processing... 1. User refreshes a webi report    (webi?) 2. Schedule a webi report (webi and Adaptive Processing? ) I

  • Problems using Mac Mini with a Sharp 60" led 1080p

    My Mac Mini is connected to a Sharp LED 60 "and I use the VGA input but when I use 1080p resolution, then the text becomes blurred and chopped up. Why does this happen?

  • Layout Style "tree-form" with Wizard Style Layout checked

    Dear all, I am using layout style "tree-form" with Wizard Style Layout check box checked. intention is to display the hierarchy in tree and insertion with the help of Wizard for the last block. But with above settings, generated form is displaying as

  • Blu-ray Error code 25

    I am trying to burn a Blu-ray DVD the disc Info says 6.56 is used and 18.44GB is free. I am using a 25GB sony Blu-ray DVD. The error code says there is "not enough free storage", Code:"25", Note: "not enough hard disc space". Is this a problem with t

  • New tab default page

    Is there a way to set up a google search page to come up when I select "open a new tab". I see options to set it to blank, but not say to the google website. When I open Firefox, it brings up the google site, just not when I hit open new tab. Thank y