Linux StarTSP StarRecipetTest - Can't load IA 32-bit .so on a IA 32-bit platform

View: New views
1 Messages — Rating Filter:   Alert me  

Linux StarTSP StarRecipetTest - Can't load IA 32-bit .so on a IA 32-bit platform

by mike_g :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi, I'm trying to run a test program for a StarTSP100 receipt printer. The prog came with the printer and uses jpos.

I have set up CUPS and can print using a simple c program; so that part is configured correctly. I cant get the JPOS example to compile though. At first I ran the command line instructions in the sourcefile header:

// usage instructions - Linux
// 1. compile from command line - javac -classpath jpos191-controls.jar:jcl.jar StarReceiptTest.java
// 2. execute from command line - java -classpath jpos191-controls.jar:jcl.jar:xercesimpl.jar:xml-apis.jar:commandemulator.jar:stario.jar:starjavapos.jar:. StarReceiptTest


Which produced the following error:
Exception in thread "main" java.lang.UnsatisfiedLinkError: /home/ricky/.commandemulator/libCommandEmulatorJ.so: Can't load IA 32-bit .so on a IA 32-bit platform
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1647)
        at java.lang.Runtime.load0(Runtime.java:769)
        at java.lang.Runtime.load(Runtime.java:757)
        at com.starmicronics.commandemulator.CommandEmulator.(CommandEmulator.java:246)
        at com.starmicronics.starjavapos.POSPrinterService.open(Unknown Source)
        at jpos.BaseJposControl.open(Unknown Source)
        at jpostest.Main.main(Main.java:59)
Java Result: 1

It seems to be some sort of linking error, and the path specified here: [quote]/home/ricky/.commandemulator/libCommandEmulatorJ.so[/quote] Seems to be wrong. Next, I created a project in netbeans and added all the libraries to it; but, when I compile I get the same error. I have the jpos.xml file in the same directory. I have edited it so that it uses my CUPS configured printer name. The printer.open function parameter was also modified to use the correct name (this is where the error is at).I have attached the source file if its of any help: StarReceiptTest.java Could someone please tell me what I am doing wrong here, and how I can fix it? It would be much appreciated. ATM I havent got a clue o_O
LightInTheBox - Buy quality products at wholesale price!