Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

695
Visualizações
JposException: Can't connect printer device (issue on linux only)

I've developed a java application that works perfectly on windows when i print a receipt. The issue comes when the same java application is tested it in Ubuntu 14.04, and gives me this:

jpos.JposException: Can't connect printer device=SRP-350II
    at com.bixolon.jpos.services.printers.PrinterBaseService.claim(PrinterBaseService.java:256)
    at jpos.BaseJposControl.claim(BaseJposControl.java:296)
    at PruebaPOSImpresion.main(PruebaPOSImpresion.java:36)

It seems that the app finds the printer declared in jpos.xml since does the "open", but not the "claim". And it's strange that when i execute the "check health" on the printer (with the printer utility) it can print the test page with no problem.

Any help or suggestion is appreciated.

over 4 years ago · Santiago Trujillo
2 Respostas
Responde à pergunta

0

Try to refer this solution Java POS printer error

Check your Jpos.xml path directory.. Windows vs Ubuntu File paths in Java (Linux)

over 4 years ago · Santiago Trujillo Relatório

0

Give permissions to /dev/bus/usb/, so the jpos connection will recognize the connected printer

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda