Hi, i try to run the starter project sample from github (https://github.com/Esri/java-zip-starter-project)
I followed the instructions from https://developers.arcgis.com/java/install-and-set-up/
so finally the single Java Class App compiles without errors or warnings.
But if i run the the App i get a noclassdeffounderror:
Fehler: Hauptklasse com.mycompany.app.App konnte nicht gefunden oder geladen werden
Ursache:
(in englisch: error: main class com.mycompany.app.App could not be found or loaded,
cause: java.lang.NoClassDefFoundError: javafx/application/Application)
i found the Application Class in the javafx.graphics.jar and this jar is also in the build path:
so why doesn't the app start?
any help is appreciated
thank you!
There will be a setting somewhere in IntelliJ that needs correcting... I could try to diagnose this, but there is a much nicer way of getting going with the product. The zip approach is probably the hardest way of getting going and isn't what I'd recommend for a new project unless there is a particular reason.
What I'd recommend is following the gradle starter project approach - you'll likely have it working very quickly and its a much more modern approach to building apps.
It's also worth noting we've got 200+ samples using the gradle approach in this git repository.
Does this help? Happy to assist with the zip approach, but its not what I'd recommend if you can avoid it.