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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-05-2005, 10:49 PM
|
#1
|
Member
Registered: Jan 2004
Distribution: Slackware 10.1
Posts: 119
Rep:
|
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?
|
|
|
04-05-2005, 11:05 PM
|
#2
|
Senior Member
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783
Rep:
|
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.
|
|
|
04-05-2005, 11:15 PM
|
#3
|
Member
Registered: Jan 2004
Distribution: Slackware 10.1
Posts: 119
Original Poster
Rep:
|
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.
|
|
|
04-05-2005, 11:37 PM
|
#4
|
Senior Member
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783
Rep:
|
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
|
|
|
04-05-2005, 11:38 PM
|
#5
|
Senior Member
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783
Rep:
|
yes, this goes to the command files.
|
|
|
04-06-2005, 12:17 AM
|
#6
|
Member
Registered: Jan 2004
Distribution: Slackware 10.1
Posts: 119
Original Poster
Rep:
|
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?
|
|
|
04-06-2005, 12:27 AM
|
#7
|
Senior Member
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783
Rep:
|
I don't see any /wyvern/client/wyvernclient in the original command
|
|
|
04-06-2005, 12:34 AM
|
#8
|
Member
Registered: Jan 2004
Distribution: Slackware 10.1
Posts: 119
Original Poster
Rep:
|
I figured they might have wanted me to point to a certain file, I tried it a few different ways, with the same outcome.
|
|
|
04-06-2005, 12:54 AM
|
#9
|
Senior Member
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783
Rep:
|
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.
|
|
|
04-06-2005, 01:06 AM
|
#10
|
Senior Member
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783
Rep:
|
try running the command in the directory of the program for a start, and read the manual carfully
|
|
|
04-06-2005, 01:11 AM
|
#11
|
Member
Registered: Jan 2004
Distribution: Slackware 10.1
Posts: 119
Original Poster
Rep:
|
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... :-/
|
|
|
04-06-2005, 01:23 AM
|
#12
|
Senior Member
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783
Rep:
|
were is the program installed?
Can you find it?
|
|
|
04-06-2005, 01:36 AM
|
#13
|
Member
Registered: Jan 2004
Distribution: Slackware 10.1
Posts: 119
Original Poster
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 08:32 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|