• Post Reply Bookmark Topic Watch Topic
  • New Topic

javapos external library problems in netbeans  RSS feed

raya jaya
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
'm novice to Java, and currently ,I'm developing POS application using java. I bought an Epson POS printer for this project. Printer model is EPSON TM-U220. everything works fine when running in netbeand ide, however i've got following error when i'm (clean and build) and running in appname.jar or cmd (java -jar).
Exception in thread "main" java.lang.NoClassDefFoundError: jpos/JposExce
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
at java.lang.Class.getMethod0(Unknown Source)
at java.lang.Class.getMethod(Unknown Source)
at sun.launcher.LauncherHelper.getMainMethod(Unknown Source)
at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)
Caused by: java.lang.ClassNotFoundException: jpos.JposException
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 6 more

and then, when i add several .jar javapos library into dist/lib i've got following error:

Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: no jp_co_
epson_upos_firm_FirmNativeAccess in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at jp.co.epson.upos.pntr.CommonPrinterService.<clinit>(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at jp.co.epson.uposcommon.util.EpsonJposServiceInstanceFactory.createIns
tance(Unknown Source)
at jpos.loader.simple.SimpleServiceConnection.connect(Unknown Source)
at jpos.BaseJposControl.open(Unknown Source)

please help... what shoul i do?
sorry bad english
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!