I developed a Java program that open specific files when the user clicks on a Jlabel. The click event worked very well on my computer but after I package it to Jar distributable and install the software on another computer the program installs perfectly but does not open the linked videos when I click on the Jlabel. Below is the code I used after adding a Jlabel and a mouse click event on Netbeans . . { . . . try . . { . . . Runtime. getRuntime(). exec ("rundll32 url . dll, FileProtocolHandler "+" C:\users\abj\netbeans \lessons \src\vidz\vid1.mp4"); . . } catch (Exception e ) . . { JOptionPane. ShowMessageDailog (null, "Error" );
With the above code the program runs perfectly in my computer but after packaging to jar distributable and install in another computer the click and open video function when does not open the file and does not return any form of error either.
Please what can I do to resolve this issue. I need all the help you can give.
Thanks Goddy.