LinuxQuestions.org
Visit Jeremy's Blog.
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 01-23-2005, 06:27 PM   #1
liljhand
Member
 
Registered: May 2004
Location: Brampton, ONT.
Distribution: Ubuntu Hoary the Hedgehog
Posts: 90

Rep: Reputation: 15
creating an executable file


hi peepz
for running azureus, i always have to type some commands in console and that takes time.
cant i just make an executable file that runs the code by itself and then azureus starts by itself??

my default folder in consloe is /home/suhail . i only have to type cd Program\ Files (and then) cd azureus (and then i run ) java -cp swt.jar:swt-pi.jar:Azureus2.jar -Djava.library.path=./ org.gudy.azureus2.ui.swt.Main

im running mandrake 10.1. so how do i make it
 
Old 01-23-2005, 06:32 PM   #2
rgiggs
Member
 
Registered: Apr 2004
Location: berkeley, ca
Distribution: slk10, winxp
Posts: 313

Rep: Reputation: 30
hmm, i've used azureus before, but i never had to do all that. azureus comes with an executable named 'azureus,' (at least with the version i downloaded), which is exactly what you're looking for. it should be there already in your azureus directory: while you're in the azureus directory, try running './azureus'
also, why is there 'program files' on your linux system?

Last edited by rgiggs; 01-23-2005 at 06:36 PM.
 
Old 01-23-2005, 06:36 PM   #3
liljhand
Member
 
Registered: May 2004
Location: Brampton, ONT.
Distribution: Ubuntu Hoary the Hedgehog
Posts: 90

Original Poster
Rep: Reputation: 15
well i dunno y but when i click on the icon it does nuthin also ./azureus gives an error so when i went to the azureus site, this was the solution posted there. so i am using it.

about program files, i couldnt think of a good name so i just called the folder that. but i dont like windoze a single bit( and i have almost completely migrated to linux, almost)

Last edited by liljhand; 01-23-2005 at 06:37 PM.
 
Old 01-23-2005, 10:26 PM   #4
ColKurtz
Member
 
Registered: Jan 2005
Location: Earth
Distribution: Fedora
Posts: 40

Rep: Reputation: 15
Just make a script. Create a text file and put the CLI commands you type to start Azureus, one per line, in the order that you type them at the prompt. Name it startazureus (or whatever). Put it in your home directory and type ./startazureus to start the app.
 
Old 01-23-2005, 10:58 PM   #5
liljhand
Member
 
Registered: May 2004
Location: Brampton, ONT.
Distribution: Ubuntu Hoary the Hedgehog
Posts: 90

Original Poster
Rep: Reputation: 15
should it look like this:
cd Program\ Files
cd azureus
java -cp swt.jar:swt-pi.jar:Azureus2.jar -Djava.library.path=./ org.gudy.azureus2.ui.swt.Main

anywayyz i tried it and named it azureus.sh. and when i got to console i just have to type sh azureus.sh. But i want to make it so that when i double click the file, azureus opens. i dont wanna go to console and type it. BTW thanks 4 ur help
 
Old 01-23-2005, 11:56 PM   #6
ColKurtz
Member
 
Registered: Jan 2005
Location: Earth
Distribution: Fedora
Posts: 40

Rep: Reputation: 15
You can make an icon for the script that you create, instead of running it from the command line.

As far as what commands are in it, I guess your commands are correct. Whatever you first type to start Azureus, put that on the first line. Whatever command you type 2nd put on the 2nd line. Etc. Also -forgot to mention..you'll need to run chmod on the script to make it executable (chmod 755 [filename]).
 
  


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
Macos X like executable file rcainc Linux - Software 4 08-03-2005 06:01 AM
how do I lauch a file by its executable cjae SUSE / openSUSE 1 07-12-2005 12:51 PM
Linux Executable File Help (created from a .c file) MattG1981 Linux - Newbie 7 06-06-2004 05:54 PM
why/what's the difference between a file and an executable? sunowww General 6 06-05-2004 05:20 PM
ftp an executable file siwaporn Linux - General 5 03-16-2004 01:01 AM


All times are GMT -5. The time now is 10:55 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration