LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 05-24-2004, 10:29 AM   #16
Scorpio
Member
 
Registered: May 2004
Distribution: Ubuntu Warty
Posts: 61

Original Poster
Rep: Reputation: 15

When I double click it nothing happens, well the icon in the top left of the window changes to the script icon but nothing after that.

I've done the rest of what you said but it still won't launch.

Btw yes it's a java bittorrent client. And it uses GTK fot the gui as far as I know.
 
Old 05-24-2004, 10:37 AM   #17
drowstar
Member
 
Registered: Apr 2004
Location: Germany
Distribution: Slackware, Gentoo, Fedora
Posts: 205

Rep: Reputation: 30
OK, I am getting desperate here. Try this:
right click on the file, select open with, choose other, type sh, hit [enter].

Does it launch?

I will be at your side until this problem is exterminated!!! *evil laugh*
- drowstar
 
Old 05-24-2004, 10:42 AM   #18
Scorpio
Member
 
Registered: May 2004
Distribution: Ubuntu Warty
Posts: 61

Original Poster
Rep: Reputation: 15
It attempts to start. i.e. the sh is in the task bar then nothing just as with the shortcuts.

You're as determined as I am.
And I thank you for it.

Similar problem here --> http://www.linuxquestions.org/questions/history/176345
Couldn't post the link earlier due to my low post count.
 
Old 05-24-2004, 10:47 AM   #19
drowstar
Member
 
Registered: Apr 2004
Location: Germany
Distribution: Slackware, Gentoo, Fedora
Posts: 205

Rep: Reputation: 30
Scorpio, I am researching. Could you post the content of the script in question, please?
Thanks,
- drowstar
 
Old 05-24-2004, 10:49 AM   #20
Scorpio
Member
 
Registered: May 2004
Distribution: Ubuntu Warty
Posts: 61

Original Poster
Rep: Reputation: 15
#!/bin/bash

######## CONFIGURE ########

PROGRAM_DIR=$HOME/azureus/ # directory where all the files were extracted
JAVA_PROGRAM_DIR="/usr/java/j2re1.4.2_04/bin/" # use full path, ex. "/usr/java/j2re1.4.2_04/bin/"
ENABLE_SYSTRAY=FALSE # set to TRUE to enable sytray4j support (does not work under KDE 3.2 yet)

###########################



MSG0="ERROR:\nYou must edit this script and change PROGRAM_DIR to point to where you installed Azureus"
MSG1="Attempting to start Azureus..."


AZDIR=./
if [ ! -e id.azureus.dir.file ]; then
AZDIR=$PROGRAM_DIR
if [ ! -d $AZDIR ]; then
echo $MSG0
exit -1
fi
fi

cd ${AZDIR}


echo $MSG1

# build the classpath
JARS=`ls *.jar | grep -v Azureus2 | grep -v systray4j`

CLASSPATH="Azureus2.jar"
for FILE in $JARS; do CLASSPATH="${FILE}:${CLASSPATH}"; done


if [ "$ENABLE_SYSTRAY" == "TRUE" ]; then
CLASSPATH="systray4j.jar:${CLASSPATH}"
if [ -f systray4j.disabled ]; then
mv -f systray4j.disabled systray4j.jar
fi
else
if [ -f systray4j.jar ]; then
mv -f systray4j.jar systray4j.disabled
fi
fi


run=TRUE
while [ "$run" == "TRUE" ]; do
${JAVA_PROGRAM_DIR}java -cp $CLASSPATH -Djava.library.path="${AZDIR}" org.gudy.azureus2.ui.swt.Main "$1"

#check for auto-update files in user dir
if [ -f ~/Azureus/Azureus2-new.jar ]; then
mv -f ~/Azureus/Azureus2-new.jar Azureus2-new.jar
mv -f ~/Azureus/Updater.jar Updater.jar
fi

#finish auto-update
if [ -f Azureus2-new.jar ]; then
mv -f Azureus2.jar Azureus2-old.jar
mv -f Azureus2-new.jar Azureus2.jar
else
run=FALSE
fi
done
 
Old 05-24-2004, 10:53 AM   #21
drowstar
Member
 
Registered: Apr 2004
Location: Germany
Distribution: Slackware, Gentoo, Fedora
Posts: 205

Rep: Reputation: 30
PROGRAM_DIR=$HOME/azureus/ # directory where all the files were extracted
Is your azureus directory actually in "~/azureus"?
 
Old 05-24-2004, 10:56 AM   #22
Scorpio
Member
 
Registered: May 2004
Distribution: Ubuntu Warty
Posts: 61

Original Poster
Rep: Reputation: 15
It's extracted to /home/stephen/programs/azureus/
 
Old 05-24-2004, 11:07 AM   #23
drowstar
Member
 
Registered: Apr 2004
Location: Germany
Distribution: Slackware, Gentoo, Fedora
Posts: 205

Rep: Reputation: 30
Hi Scorpio,
edit this line:
PROGRAM_DIR=$HOME/azureus/ # directory where all the files were extracted
to look like this
PROGRAM_DIR=$HOME/programs/azureus/ # directory where all the files were extracted

Also, do
ls /usr/java/j2re1.4.2_04/bin/
and see, if it returns an error

Try clicking the file now. If it works, do the old dragging trick and you should be set.

I am optimistic now,
- drowstar
 
Old 05-24-2004, 11:11 AM   #24
Scorpio
Member
 
Registered: May 2004
Distribution: Ubuntu Warty
Posts: 61

Original Poster
Rep: Reputation: 15
A thousand thank yous.
It works after changing the program directory.
Didn't change the java path coz I have it installed in the path that's in the script.
I now have the shortcut up and running.

Scorpio.
 
Old 05-24-2004, 11:16 AM   #25
drowstar
Member
 
Registered: Apr 2004
Location: Germany
Distribution: Slackware, Gentoo, Fedora
Posts: 205

Rep: Reputation: 30
Nice!!!

Good luck to you!
 
  


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
creating desktop icon oingram Linux - Software 6 12-31-2004 04:39 AM
Creating a Javascript Desktop Icon gothrog Linux - Software 2 10-14-2004 06:15 PM
How does one creating printer icon on the desktop... SuSe/KDE? pwillikers Linux - Newbie 1 10-12-2004 07:39 PM
Creating Desktop Icon biggiefatts Linux - Software 4 05-27-2002 01:46 AM
Creating Desktop Program Icon ss109 Linux - General 4 03-15-2002 12:26 PM


All times are GMT -5. The time now is 12:30 PM.

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