- 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:
...
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
...
برای دیدن لینک ها باید ثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید