sarxos / webcam-capture

The goal of this project is to allow integrated or USB-connected webcams to be accessed directly from Java. Using provided libraries users are able to read camera images and detect motion. Main project consist of several sub projects - the root one, which contains required classes, build-in webcam driver compatible with Windows, Linux and Mac OS, which can stream images as fast as your camera can serve them (up to 50 FPS). Main project can be used standalone, but user is able to replace build-in driver with different one - such as OpenIMAJ, GStreamer, V4L4j, JMF, LTI-CIVIL, FMJ, etc.
http://webcam-capture.sarxos.pl
MIT License
2.28k stars 1.11k forks source link

Problem with ubuntu 16 arm (orange pi) #598

Open hertzon opened 6 years ago

hertzon commented 6 years ago

Hi, i run https://github.com/rakeshbhatt10/WebCamJavaFXFXMLSample/blob/master/WebCamCaptureFXMLExample/src/fxml/controller/WebCamPreviewController.java

in windows runs perfectly...

but in linux embedded ubuntu 16 , java 1.8, orange pi, give error:

Exception in thread "JavaFX Application Thread" java.lang.NoClassDefFoundError: javafx/embed/swing/SwingFXUtils at cammeratest.FXMLDocumentController$3$1.run(FXMLDocumentController.java:136) at com.sun.javafx.application.PlatformImpl.lambda$null$174(PlatformImpl.java:295) at java.security.AccessController.doPrivileged(Native Method) at com.sun.javafx.application.PlatformImpl.lambda$runLater$175(PlatformImpl.java:294) at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95) at com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method) at com.sun.glass.ui.gtk.GtkApplication.lambda$null$50(GtkApplication.java:139) at java.lang.Thread.run(Thread.java:748)

please helpme to solve this

Best regards...

Nelson

sarxos commented 6 years ago

This missing class should be in jfxrt.jar. Can you verify you have it in your classpath? If yes, can you check if this JAR contains this class?

cjgriscom commented 6 years ago

ARM JavaFX does not contain SwingFXUtils. You can make a local copy of it in your project.

hertzon commented 6 years ago

I use vrl-0.4.3.2.3.jar and works fine, thanks