Desktop Launcher command line from terminal?
FedoraForum.org - Fedora Support Forums and Community
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2009
    Posts
    121

    Desktop Launcher command line from terminal?

    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?
    Last edited by bg3075; 12th June 2009 at 01:31 AM. Reason: addition
    Fedora 20 64-bit
    CPU AMD|PH II X2 545 3.0G AM3
    nVidia GeForce GT220 video card
    4GB DDR2 Memory

  2. #2
    Join Date
    Apr 2009
    Posts
    121
    So, I had it working great for a while, but now getting the same error as above...it looks like a problem with java. See also http://forums.fedoraforum.org/showth...highlight=java.

    All java links (even /usr/bin/java) point to '/usr/lib/jvm/jre-1.6.0-openjdk/bin/java', and contains information "ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.9, stripped", when run from 'file' command in gnome-terminal.

    I updated java (sun) according to instructions here: http://www.mjmwired.net/resources/mj...-f10.html#java

    Is there something additionally that should be done when installing/updating java, such as compiling or configuring?
    Last edited by bg3075; 5th July 2009 at 04:14 AM. Reason: added information
    Fedora 20 64-bit
    CPU AMD|PH II X2 545 3.0G AM3
    nVidia GeForce GT220 video card
    4GB DDR2 Memory

Similar Threads

  1. Launcher for terminal command
    By cruiser06 in forum Using Fedora
    Replies: 16
    Last Post: 27th December 2008, 03:51 AM
  2. create a shortcut (launcher) for root terminal on my desktop
    By oliver-fedora in forum Using Fedora
    Replies: 12
    Last Post: 31st May 2006, 02:51 AM

Tags for this Thread

Posting Permissions

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