Results 1 to 5 of 5
  1. #1
    asdfg is offline Senior Member
    Join Date
    Nov 2016
    Posts
    163
    Rep Power
    3

    Default Insert video into javaFX

    Why it is so complicated to load it, and constant problems with path-finding.
    It was discusses here today:
    javafx - How to load video in java FX - Stack Overflow

    On first computer it works.
    But i have used the same code on diffrend computer, and I get error logs:

    Exception in Application start method
    java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.sun.javafx.application.LauncherImpl.launchAppl icationWithArgs(LauncherImpl.java:389)
    at com.sun.javafx.application.LauncherImpl.launchAppl ication(LauncherImpl.java:328)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at sun.launcher.LauncherHelper$FXHelper.main(Unknown Source)
    Caused by: java.lang.RuntimeException: Exception in Application start method
    at com.sun.javafx.application.LauncherImpl.launchAppl ication1(LauncherImpl.java:917)
    at com.sun.javafx.application.LauncherImpl.lambda$lau nchApplication$155(LauncherImpl.java:182)
    at java.lang.Thread.run(Unknown Source)
    Caused by: MediaException: MEDIA_INACCESSIBLE : e
    at javafx.scene.media.Media.<init>(Media.java:409)
    at OP.Videos.start(Videos.java:27)
    at com.sun.javafx.application.LauncherImpl.lambda$lau nchApplication1$162(LauncherImpl.java:863)
    at com.sun.javafx.application.PlatformImpl.lambda$run AndWait$175(PlatformImpl.java:326)
    at com.sun.javafx.application.PlatformImpl.lambda$nul l$173(PlatformImpl.java:295)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.javafx.application.PlatformImpl.lambda$run Later$174(PlatformImpl.java:294)
    at com.sun.glass.ui.InvokeLaterDispatcher$Future.run( InvokeLaterDispatcher.java:95)
    at com.sun.glass.ui.win.WinApplication._runLoop(Nativ e Method)
    at com.sun.glass.ui.win.WinApplication.lambda$null$14 8(WinApplication.java:191)
    ... 1 more
    Exception running application OP.Videos


    If I put 3x slashes ( instead 2, after "file://) , I get new error:


    #
    # A fatal error has been detected by the Java Runtime Environment:
    #
    # EXCEPTION_ILLEGAL_INSTRUCTION (0xc000001d) at pc=0x000007fef2d55c01, pid=6948, tid=0x0000000000001054
    #
    # JRE version: Java(TM) SE Runtime Environment (8.0_121-b13) (build 1.8.0_121-b13)
    # Java VM: Java HotSpot(TM) 64-Bit Server VM (25.121-b13 mixed mode windows-amd64 compressed oops)
    # Problematic frame:
    # C [msvcr120.dll+0x95c01]
    #
    # Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
    #
    # An error report file with more information is saved as:
    # E:\workplace\GameDev\hs_err_pid6948.log
    #
    # If you would like to submit a bug report, please visit:
    # Java Crash Reporting Page
    # The crash happened outside the Java Virtual Machine in native code.
    # See problematic frame for where to report the bug.
    #

    And I simply want a code, who would play video from my project. Without play/stop/resize buttons.

  2. #2
    SurfMan's Avatar
    SurfMan is offline Godlike
    Join Date
    Nov 2012
    Location
    The Netherlands
    Posts
    1,989
    Rep Power
    8

    Default Re: Insert video into javaFX

    # A fatal error has been detected by the Java Runtime Environment:

    This means a crash of the JVM. I see you are running this on the latest version 121. Try to run this code on an earlier JRE.
    "It's not fixed until you stop calling the problem weird and you understand what was wrong." - gimbal2 2013

  3. #3
    asdfg is offline Senior Member
    Join Date
    Nov 2016
    Posts
    163
    Rep Power
    3

    Default Re: Insert video into javaFX

    if I do this:

    First, clean your project:

    Project > Clean

    If that doesn't fix things...

    Second check your project specific java compiler:

    Project > Properties > Java Compiler
    It means all my project files will be deleted or ...?

  4. #4
    benji2505 is offline Senior Member
    Join Date
    Sep 2014
    Location
    MA, USA
    Posts
    398
    Rep Power
    5

    Default Re: Insert video into javaFX

    seems to be a known problem for a certain build. Check this.
    Some people report that installing the 32bit version of the msvcr120.dll helped. Try it

  5. #5
    asdfg is offline Senior Member
    Join Date
    Nov 2016
    Posts
    163
    Rep Power
    3

    Default Re: Insert video into javaFX

    Instaklled windows 7 32bit service pack 1. Works now.

Similar Threads

  1. JavaFX
    By bodylojohn in forum New To Java
    Replies: 1
    Last Post: 02-14-2014, 06:11 PM
  2. JavaFX Book | Learn JavaFX More In Depth
    By SnakeDoc in forum JavaFX
    Replies: 0
    Last Post: 05-17-2013, 11:10 PM
  3. problem with playing video in javafx application
    By kiranblighty in forum JavaFX
    Replies: 1
    Last Post: 02-27-2010, 12:09 AM
  4. JavaFX Script and JavaFX Mobile
    By levent in forum Java Software
    Replies: 1
    Last Post: 01-27-2010, 04:48 PM
  5. Replies: 3
    Last Post: 02-28-2009, 09:17 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •