JavaPOS, Star TSP100 and Linux

Has anyone gotten this combination to work? I can't even get the sample code to work. It compiles but won't communicate.

Error Message:

Java Code:

jpos.JposException: The device communications channel could not be opened, check the device and retry.
at com.starmicronics.starjavapos.POSPrinterStarBase.setDeviceEnabled(Unknown Source)
at jpos.BaseJposControl.setDeviceEnabled(Unknown Source)
at StarSlipTest.runTest(StarSlipTest.java:71)
at StarSlipTest.main(StarSlipTest.java:184)
StarSlipTest finished.

I have tried talking to the USB TSP100 via CUPS and it works fine although it looks ugly and lacks any real control so I have to go with JavaPOS to get true control and a good looking output. But I can't figure out how to get it to talk. And as I mentioned, this is Star's sample code. I haven't touched it except to fill in a couple sections that are unique to my printer (the name for example)

Re: JavaPOS, Star TSP100 and Linux

This being my first attempt at any JavaPOS work (and still fairly new to Java in general), I am suspecting the printer name is the key here. But I am not quite sure to know how the device is seen by JavaPOS. Is there some way to display a list of all the devices as JavaPOS sees them?

If I can get this sample code to run, then I am 99% the way to where I need to be. I really appreciate any assistance. I bet this would be helpful to others too.

I know in Linux (where I am trying to run this code) that I can get a list of USB attached devices using this command:

Java Code:

lsusb -v

I can see the printer, it is turned on and does function via CUPS (just ugly and limited control). So perhaps all I need is to get the printer's name correctly into the jpos.xml file.?.?.?.