LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 04-05-2005, 10:49 PM   #1
The_Messiah
Member
 
Registered: Jan 2004
Distribution: Slackware 10.1
Posts: 119

Rep: Reputation: 15
Creating a launcher (could be java launcher)


Hey guys, I'm in the process of installing this game "Wyvern"

I'm pretty much done except for this last part, I don't understand.

Code:
*  To run the Wyvern Client, create a launcher for your system that contains the following command. (Assumes you've installed it in the directory: /wyvern/client

       java -Dwyvern.home="/wyvern/client/wyvern" \
       -cp "wyvernclient.jar;jl020.jar;jogg-0.0.5.jar;jorbis-0.0.12.jar;mp3sp.1.5.jar;vorbisspi0.7.jar" \
       wyvern.client.Client

    * Run your newly-created launcher to run the client. 

On Unix-based systems, the semicolons in the "-cp" parameter should be replaced with colons.
I'm not sure on what it means by "Create a launcher"

Anyone know what's going on?
 
Old 04-05-2005, 11:05 PM   #2
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 52
it means create a button to execute this command.
If you use KDE do a right clik in the desktop->new->file->link to application, and fill the proper fields
I gnome KDE's "link to application" is called Application Laucher.
 
Old 04-05-2005, 11:15 PM   #3
The_Messiah
Member
 
Registered: Jan 2004
Distribution: Slackware 10.1
Posts: 119

Original Poster
Rep: Reputation: 15
Ok, I've found out where to put those commands.

There's four fields:: Name, description, comment, and command.

Do I just put all three of those commands into the command field, or what?

Sorry for the newbishness.
 
Old 04-05-2005, 11:37 PM   #4
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 52
Code:
java -Dwyvern.home="/wyvern/client/wyvern" \
       -cp "wyvernclient.jar;jl020.jar;jogg-0.0.5.jar;jorbis-0.0.12.jar;mp3sp.1.5.jar;vorbisspi0.7.jar" \
       wyvern.client.Client
This is one command, not three. When you put a \ in the end of the line it means that the command will continiue in the next line. You do that to prevent of having very long lines. its exactly the same as writting in a console:

Code:
java -Dwyvern.home="/wyvern/client/wyvern"  -cp "wyvernclient.jar;jl020.jar;jogg-0.0.5.jar;jorbis-0.0.12.jar;mp3sp.1.5.jar;vorbisspi0.7.jar"  wyvern.client.Client
 
Old 04-05-2005, 11:38 PM   #5
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 52
yes, this goes to the command files.
 
Old 04-06-2005, 12:17 AM   #6
The_Messiah
Member
 
Registered: Jan 2004
Distribution: Slackware 10.1
Posts: 119

Original Poster
Rep: Reputation: 15
Ok, I can't figure out how to get it to work...I put this string into the command field

/root/j2re1.4.2_08/bin/java -Dwyvern.home="/wyvern/client/wyvern" -cp "wyvernclient.jar:jl020.jar:jogg-0.0.5.jar:jorbis-0.0.12.jar:mp3sp.1.5.jar:vorbisspi0.7.jar" /wyvern/client/wyvernclient

and whenever I try to open it nothing happened, so I made it run in a consol. And I got this error.

Exception in thread "main" java.lang.NoClassDefFoundError: /wyvern/client/wyvernclient

Anyone have any ideas?
 
Old 04-06-2005, 12:27 AM   #7
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 52
I don't see any /wyvern/client/wyvernclient in the original command
 
Old 04-06-2005, 12:34 AM   #8
The_Messiah
Member
 
Registered: Jan 2004
Distribution: Slackware 10.1
Posts: 119

Original Poster
Rep: Reputation: 15
I figured they might have wanted me to point to a certain file, I tried it a few different ways, with the same outcome.
 
Old 04-06-2005, 12:54 AM   #9
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 52
The command is java (the java interprinter), u use it when u have to execute the class wyvern.client.Client and you specify that the value of the property "wyvern.home", is /wyvern/client/wyvern, and you specify with -cp a list of jar files wyvernclient.jar:jl020.jar:jogg-0.0.5.jar:jorbis-0.0.12.jar:mp3sp.1.5.jar:vorbisspi0.7.jar, to search for needed classes.

Last edited by perfect_circle; 04-06-2005 at 01:04 AM.
 
Old 04-06-2005, 01:06 AM   #10
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 52
try running the command in the directory of the program for a start, and read the manual carfully
 
Old 04-06-2005, 01:11 AM   #11
The_Messiah
Member
 
Registered: Jan 2004
Distribution: Slackware 10.1
Posts: 119

Original Poster
Rep: Reputation: 15
Ok...correct me if I'm wrong, but I can't make much of your last post...it seems to me, that youu just explained the things that I'm doing...and that doesn't help me with my problem.

You'll have to excuse me, I don't really know much about java... :-/
 
Old 04-06-2005, 01:23 AM   #12
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 52
were is the program installed?
Can you find it?
 
Old 04-06-2005, 01:36 AM   #13
The_Messiah
Member
 
Registered: Jan 2004
Distribution: Slackware 10.1
Posts: 119

Original Poster
Rep: Reputation: 15
Wow... I did a ls of my wyvern dir and found a wyvernclient executable...ran that and I'm good.

Thanks for your help
and sorry for all the hassel.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
program launcher Slagazor Linux - Software 1 04-17-2005 08:40 PM
Creating root Application Launcher in GNOME rwillard Linux - Newbie 3 04-06-2005 09:59 AM
Help me please! mplayer launcher??? setlec_seta Mandriva 6 12-24-2004 07:09 AM
Creating a launcher for mplayer wnaLinux Slackware 6 11-02-2004 04:16 AM
Application Launcher jamoraqui Linux - Newbie 9 08-23-2004 06:23 AM


All times are GMT -5. The time now is 01:13 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration