Skip to Content
0
Former Member
Jul 16, 2008 at 04:52 PM

Trouble with PIOS Printer example

20 Views

Hello gurus,

I have a problem. I'm trying to run an example from the tutorial, the one that aply the PIOS Printer API, and it throws me an error (awfull by the way) like this:

java.lang.ClassNotFoundException: com.sap.ip.me.api.pios.impl.connection.ConnectorImpl

and also it said: RFID (unknown source). Now the example is trying to implemente a printer device not a RFID Reader, so i really dont know what is happening. Anybody can help me with this.

I havent changed the code, so it is pretty much like this:

Connector con = Connector.getInstance();
DriverInfo[] df = con.listDrivers(ConnectionType.PRINTER);
PrinterParameters pm = new PrinterParameters(df[0]);
pm.setPrinterMode(PrinterParameters.GRAPHIC_MODE);
gp = (GraphicPrinter)con.open(pm);
String[] sfont = gp.getFontConfigurationManager().listFontNames();
PrinterFont pf =gp.getFont(sfont[0]);
gp.drawText(pf,10,10,"Test of my printer",0);
gp.doPrint(1);
gp.close();

And the stack trace indicated me that the exception is raised at

Connector con = Connector.getInstance();

I've already register the app. at the webconsole and assign it to my user. and pretty much did everything the guide told me to do.

Please its kind of urgent, somebody help me. I'll wait for your answer

KR,

MC