Vous êtes sur la page 1sur 8

Using a JPOS Star Printer on Snow Leopard

Created September 2010


This application note will show how to use a Star Micronics printer on Mac OS:X with the JavaPOS driver. While these directions show how to configure a TSP650 on version 1.9.13 of the JavaPOS Driver, these directions suffice for the following supported models. Models Supported: TSP650, TSP700II, SP700, TUP500, and HSP7000 Supported Interfaces: USB, Ethernet Table of Contents Configuring a USB Printer in the JavaPOS Driver.Page 2 Configuring a CashDrawer attached to a USB Printer in the JavaPOS driver.Page 4 Configuring an Ethernet Printer with the JavaPOS Driver Page 5 Configuring a CashDrawer attached to an Ethernet Printer in the JavaPOS Driver ..Page 7

Pre-Requisites: The latest JavaPOS driver for Mac OS:X which can be downloaded from the Star Micronics website: http://www.starmicronics.com/Supports/Download.aspx#MacJPOS See the Readme file for the specific configuration needed for your printer model. USB Printers need to be in vendor class, by turning off DIP switch 5. The NSB status back mode will need to be enabled, and which is done by, - Turning off DIP switch 8 on the TSP650 and TSP700II - Turning on memory switch 4-7 on the SP700 - Turning on memory switch 7-8 on the TUP500 - Using factory defaults with HSP7000.

Note: JavaPOS for Mac OS:X is currently only supported on 32-bit Java Runtime Environments. To verify the current Runtime Environment, in terminal, enter the following command: java version If the current version of Java Runtime Environment is 32-bit, the following output will appear:

Star Micronics America, Inc. 1150 King Georges Post Road, Edison, NJ 08837-3729 Tel: (732) 623-5500 Fax: (732) 623-5590 Web: www.starmicronics.com

Using a JPOS Star Printer on Snow Leopard

Configuring a USB Printer


1) Open the starjavapos_intel_mac_Ver1 folder. Right click on jpos.xml and click on Open With, then Other, and select TextEdit and then press the Open button.

1) Search for the printer model and copy the logical name (for example: TSP654_mac_usb_vendor_class).

2) In the starjavapos_intel_mac_Ver1 folder, open the StarReceiptTest.java file, search for the printer.open statement and paste the printers logical name into the printer.open section as shown below and then save the changes.

Star Micronics America, Inc. 1150 King Georges Post Road, Edison, NJ 08837-3729 Tel: (732) 623-5500 Fax: (732) 623-5590 Web: www.starmicronics.com

Using a JPOS Star Printer on Snow Leopard

3) Open Terminal and change the directory to the folder, by typing cd and then the path to the starjavapos_intel_mac_Ver1 folder. For example: cd /Users/tech/Desktop/starjavapos_intel_mac_Ver1

4) In the StarReceiptTest.java file, find the compile line usage instructions and copy javac -classpath jpos191controls.jar:jcl.jar StarReceiptTest.java, and then paste it in terminal, press Enter.

5) In the StarReceiptTest.java file, find the compile line usage instructions and copy java -classpath .:starjavapos.jar:stario.jar:jpos191-controls.jar:jcl.jar:xercesimpl.jar:xml-apis.jar StarReceiptTest and then paste it in terminal, press Enter.

Star Micronics America, Inc. 1150 King Georges Post Road, Edison, NJ 08837-3729 Tel: (732) 623-5500 Fax: (732) 623-5590 Web: www.starmicronics.com

Using a JPOS Star Printer on Snow Leopard Configuring a cash drawer attached to a USB Star Micronics Printer
1) In the starjavapos_intel_mac_Ver1 folder, open the StarCashDrawetest.java file, search for the cashDrawer.open statement. Make sure the Star_CashDrawer_mac_vendor_class statement is set as it is shown below. Be sure to save any changes made.

2) Open Terminal and change the directory to the folder, by typing cd and then the path to the starjavapos_intel_mac_Ver1 folder. For example: cd /Users/tech/Desktop/starjavapos_intel_mac_Ver1

3) In the StarCashDrawetest.java, find the compile line usage instructions and copy javac -classpath jpos191controls.jar:jcl.jar StarCashDrawerTest.java, and then paste it in terminal, press Enter.

4) In the StarReceiptTest.java file, find the compile line usage instructions and copy java -classpath jpos191controls.jar:jcl.jar StarReceiptTest.java and then paste it in terminal, press Enter.

Star Micronics America, Inc. 1150 King Georges Post Road, Edison, NJ 08837-3729 Tel: (732) 623-5500 Fax: (732) 623-5590 Web: www.starmicronics.com

Using a JPOS Star Printer on Snow Leopard Configuring an Ethernet Printer


1) Open the starjavapos_intel_mac_Ver1 folder. Right click on jpos.xml and click on Open With, then Other, and select TextEdit, and then press the Open button.

2) Search for the printer model (for example: TSP654_mac_ethernet) and change the IP address next to the TCP field to the current IP address that is configured on the printer and then save the changes.

3) Copy the printers logical name (for example: TSP654_mac_ethernet).

Star Micronics America, Inc. 1150 King Georges Post Road, Edison, NJ 08837-3729 Tel: (732) 623-5500 Fax: (732) 623-5590 Web: www.starmicronics.com

Using a JPOS Star Printer on Snow Leopard


4) In the starjavapos_intel_mac_Ver1 folder, open the StarReceiptTest.java file, search for the printer.open statement and paste the printers logical name into the printer.open section as shown below and then save the changes.

5) Open Terminal and change the directory to the folder, by typing cd and then the path to the starjavapos_intel_mac_Ver1 folder. For example: cd /Users/tech/Desktop/starjavapos_intel_mac_Ver1

6) In the StarReceiptTest.java file, find the compile line usage instructions and copy javac -classpath jpos191controls.jar:jcl.jar StarReceiptTest.java, and then paste it in terminal, press Enter.

7) In the StarReceiptTest.java file, find the compile line usage instructions and copy java -classpath .:starjavapos.jar:stario.jar:jpos191-controls.jar:jcl.jar:xercesimpl.jar:xml-apis.jar StarReceiptTest, and then paste it in Terminal, press Enter.

Star Micronics America, Inc. 1150 King Georges Post Road, Edison, NJ 08837-3729 Tel: (732) 623-5500 Fax: (732) 623-5590 Web: www.starmicronics.com

Using a JPOS Star Printer on Snow Leopard Configuring a cash drawer attached to an Ethernet Star Micronics Printer
2) Open the starjavapos_intel_mac_Ver1 folder. Right click on jpos.xml and click on Open With, then Other, and select TextEdit and then press the Open button.

3) Search for the Star_CashDrawer_mac_ethernet entry and change the IP address next to the TCP field to the current IP address that is configured on the printer and then save the changes.

4) In the starjavapos_intel_mac_Ver1 folder, open the StarCashDrawetest.java file, search for the cashDrawer.open statement. Make sure the Star_CashDrawer_mac_ethernet statement is set as it is shown below. If any changes are made, make sure to save the changes.

Star Micronics America, Inc. 1150 King Georges Post Road, Edison, NJ 08837-3729 Tel: (732) 623-5500 Fax: (732) 623-5590 Web: www.starmicronics.com

Using a JPOS Star Printer on Snow Leopard


5) Open Terminal and change the directory to the folder, by typing cd and then the path to the starjavapos_intel_mac_Ver1 folder. For example: cd /Users/tech/Desktop/starjavapos_intel_mac_Ver1

6) In the StarCashDrawetest.java file, find the compile line usage instructions and copy javac -classpath jpos191controls.jar:jcl.jar StarCashDrawerTest.java and then paste it in terminal, press Enter.

7) In the StarReceiptTest.java file, find the compile line usage instructions and copy java -classpath jpos191controls.jar:jcl.jar StarReceiptTest.java, and then paste it in terminal, press Enter.

Congratulations! You have successfully installed your JavaPOS device on Snow Leopard.

Star Micronics America, Inc. 1150 King Georges Post Road, Edison, NJ 08837-3729 Tel: (732) 623-5500 Fax: (732) 623-5590 Web: www.starmicronics.com

Vous aimerez peut-être aussi