CaveRenderPro » CaveRenderPro » Forum » RE: CaveRenderPro unter Linux

Als JavaFX-Anwendung läuft CaveRenderPro grundsätzlich auch unter Linux:
java -Xms1g -Xmx2g -Dprism.targetvram=1g -Dprism.maxvram=2g -Dprism.vsync=false -jar CaveRenderPro.jar
Vorher muss natürlich eine der beiden JVMs installiert werden:
1) Oracle JDK
sudo apt-get install oracle-java8-jdk
2) OpenJDK
sudo apt-get install openjdk-8-jre-headless
sudo apt-get install openjfx
Folgende Funktionen stehen allerdings nicht zur Verfügung, da unter Linux der Aufruf anderer Desktopprogramme nicht vorgesehen ist:
- Daten-Bearbeiten-Excel
- Export im PDF-Format (Zeichnungen-Zeichung-Vektorgrafik). Workaround: Export im SVG-Format und Aufruf von svg2pdf
- Alle Funktionen unter Info-Update und Info-Info
Hi there,
I've tried to run Cave Render Pro under Linux with recent Java installation and it fails to start with the following stacktrace :
2
3
4
5
6
7
8
9
10
(java:2071): Gdk-WARNING **: 11:27:17.895: XSetErrorHandler() called with a GDK error trap pushed. Don't do that.
Exception in Application start method
Exception in thread "JavaFX Application Thread" java.lang.IndexOutOfBoundsException: 0 >= 0
at javafx.controls/javafx.scene.control.MultipleSelectionModelBase$SelectedIndicesList.get(MultipleSelectionModelBase.java:664)
at javafx.controls/javafx.scene.control.MultipleSelectionModelBase$SelectedIndicesList.get(MultipleSelectionModelBase.java:627)
at javafx.controls/com.sun.javafx.scene.control.SelectedItemsReadOnlyObservableList.get(SelectedItemsReadOnlyObservableList.java:99)
at de.caverenderpro.controller.SetupController$50.updateItem(SetupController.java:1226)
at de.caverenderpro.controller.SetupController$50.updateItem(SetupController.java:1)
at javafx.controls/javafx.scene.control.TableCell.updateItem(TableCell.java:689)
at javafx.controls/javafx.scene.control.TableCell.indexChanged(TableCell.java:474)
I've launched it this way :
export PATH_TO_FX=~/bin/openjfx-17.0.1_linux-x64_bin-sdk/javafx-sdk-17.0.1/lib/
java --module-path $PATH_TO_FX --add-modules=javafx.controls,javafx.fxml,javafx.web -Xms1g -Xmx2g -Dprism.targetvram=1g -Dprism.maxvram=2g -Dprismvsync=false -jar ~/bin/CaveRenderPro/CaveRenderPro.jar
Java openjdk 17 and openjfx 17
It seems like there no longer any support for Java 8 on Ubuntu 20 (it not available if i run sudo apt install oracle-java8-jdk)
Let's hope you can help me ! :)

Sorry Java 17 is not supported yet.
I tried it, but Google Maps only works with Java 8. I want to offer this feature as long as possible. Java 8 support is officially available untill 2025.
I have no Linux system. Is here another forum user who could help?
Hi,
I tried to runn CaveRenderPro as described in this thread using openjdk.
Unfortunately when I try to run the jar file I run into an error:
Error: Could not find or load main class de.caverenderpro.CaveRenderPro
Caused by: java.lang.NoClassDefFoundError: javafx/application/Application
I use Linux Mint 20.3 and used the latest Cavernder Zip file.
Glück Tief
Tom

Mit der kommenden Release 9.1.0 werden in einer Betaversion OpenJDK 18 und JavaFX 18 unterstützt
- OpenJDK 18: https://jdk.java.net/18/
- JavaFX 18: https://gluonhq.com/products/javafx/