Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 11th June 2009, 01:27 AM
bg3075 Offline
Registered User
 
Join Date: Apr 2009
Posts: 116
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?
__________________
Fedora 15
CPU AMD|PH II X2 545 3.0G AM3
nVidia GeForce GT220 video card
Sony CDRW/DVD CRX330E
NEC DVD+-RW ND-3530A
WD 250GB Primary SATA HDD
WD 40BG Secondary SATA HDD
4GB DDR2 Memory

Last edited by bg3075; 12th June 2009 at 01:31 AM. Reason: addition
Reply With Quote
  #2  
Old 28th June 2009, 03:35 PM
bg3075 Offline
Registered User
 
Join Date: Apr 2009
Posts: 116
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?
__________________
Fedora 15
CPU AMD|PH II X2 545 3.0G AM3
nVidia GeForce GT220 video card
Sony CDRW/DVD CRX330E
NEC DVD+-RW ND-3530A
WD 250GB Primary SATA HDD
WD 40BG Secondary SATA HDD
4GB DDR2 Memory

Last edited by bg3075; 5th July 2009 at 04:14 AM. Reason: added information
Reply With Quote
Reply

Tags
command, desktop, launcher, line, terminal

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Launcher for terminal command cruiser06 Using Fedora 16 27th December 2008 02:51 AM
create a shortcut (launcher) for root terminal on my desktop oliver-fedora Using Fedora 12 31st May 2006 02:51 AM


Current GMT-time: 20:43 (Saturday, 25-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat