So, I have two media servers, Ushare and x360 Media Server. Both work great, when run from the terminal. I created a desktop launcher (to run from the terminal) for each. Each command line is basically "sudo + the path to program + start command". Ushare works fine from the desktop launcher with the command line:
Code:
sudo /opt/ushare-1.1a-netou/src/ushare start
So, I tried to basically do the same for x360mediaserve:
Code:
sudo /opt/x360mediaserve-0.0.2/start <IP Address>
Of course with my computer IP address in the bracketed area. It opens the terminal, starts to run code but quits for unknown reason. I even tried changing the command with a "sudo su -" prefix instead. Does anyone have any idea why this would work for Ushare but not x360 Media Server?
When running the x360mediaserve command as is above, from within the terminal window, it returned the below:
Code:
[Barry@HOME ~]$ sudo /opt/x360mediaserve-0.0.2/start <IP Address>
[sudo] password for Barry:
Exception in thread "main" java.lang.NoClassDefFoundError: Run
Caused by: java.lang.ClassNotFoundException: Run
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Could not find the main class: Run. Program will exit.
Is there a way to possibly create a script, for desktop launcher, that will run the code in the terminal one line at a time, as opposed to the path and executable as above?