B4X FEED B4J - Console application for text printing with jFX8print to thermal ticketprinter

اطلاعات موضوع

درباره موضوع در تاریخ, در دسته b4xfeed ایجاد شده و آغاز کننده آن practicalsoftمی باشد و موضوع آن: B4J - Console application for text printing with jFX8print to thermal ticketprinter است. این موضوع تا کنون 42 بازدید کننده و, 0 پاسخ داشته و 0 بار پسندیده شده...
نام دسته b4xfeed
نام موضوع B4J - Console application for text printing with jFX8print to thermal ticketprinter
آغاز کننده موضوع practicalsoft
تاریخ شروع
پاسخ‌ها
0
بازدیدها
42
پسندها
0
آخرین ارسال توسط PracticalSoft
Jun 6, 2020
11,559
4,422
Hello

I'm currently rewriting some code for a replacement of a serial thermal ticketprinter to an USB one.
In the old b4j console application, the code writes serial bytes to the printer to print the ticket.

With the new printer I assume that I need to use the JFX8Print library in order to send a print command to the USB printer.
I watched different threaths on the forum how you could manage printing, but It all includes creating a pane or form.
I couldn't find a way to get this working without the needs of JavaFX, because it's a non graphic application I'm writing.
I tried it with a pane, installed openjfx on the device with the printer connected, but receives the error message: "error: package javafx.scene does not exist", even when I point to the lib folder of Javafx:

Bash command java with javafx:

sudo java -jar b4j-bridge.jar --module-path /usr/lib/jvm/bellsoft-java13-arm32-vfp-hflt/legal/ --add-modules=javafx.base,javafx.controls,javafx.fxml,javafx.graphics,javafx.media,javafx.swing,javafx.web
...



 

عقب
بالا