Linux - NewbieThis 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.
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.
I chmod' it ran it and everything....it printed on the screen a bunch of inflating creating etc etc.....now what do i do...i tried a search....but couldn't find it......i need java cause i wish to try this program http://www.tanveer.freeservers.com/p...shDownload.htm
Is there another script to execute after this or something?
Oh by the way i found a zip file which was created after all the inflating extracting stuff named javaws-1_2_0_01-linux-i586-i.zip i extracted it and it had a script file 'install.sh' i ran that and it asked this and i don't know where to go on: (above was all that licensing agreement stuff)
Code:
Do you agree to the above license terms? [yes or no]
yes
In order to use Java(tm) Web Start you must have a version of Java 2 standard edition
installed. If you do not, you can download one from http://java.sun.com.
Please enter the path of your installation (eg /usr/local/java/jdk1.2):
i tried various paths and i tried locating java but i couldn't find it.....hope this is enough info...
Anyway, which version do you have? It should have deflated into the directory into which it was. So if:
Java.whatever.bin was in:
/home/files/Java.whatever.bin
and you ran it from there, it should have decompressed there, and now you should move the decompressed folder to /usr/loca/bin/java with:
mv /path/to/decompressed/folder /usr/loca/bin/java
Oh and it's some graphic program which i found on tucows i found it interesting and wanted to try it, and it said i needed java, so i thought might aswell install it
You might have either a .bash_profile in your ~ directory to edit your $PATH or you might have /etc/profile to edit your path, either one is fine.
As for the folder, yes it probably is, so here is the command to move it (remember you must be root and that you are in the directory that this file exists):
mv j2re1.4.1_01 /usr/local/bin/java
Just like that, you can copy and paste if you'd like. Some people like to move the folder and have the name remain the same, no problems there, you will just have to follow with a symlink to /usr/local/bin/java afterwards, or adjust what you place in your $PATH to show the j2re1.4.1_01 as your java folder.
Oh and 1 more thing, you will actually want to add the bin subdirectory in the j2re1.4.1_01 folder. SO...
Enter the j2re1.4.1_01 folder, make sure you have a /bin directory there, if so, and if you choose to use my moving option then add this to your $PATH:
/usr/loca/bin/java/bin
I'm sorry MasterC but i kinda lost you after the move thing
I moved the folder via command to /usr/local/bin/java, now i am lost...
very very sorry hehe....
This is my profile....i don't know where to put it, sorry....
Code:
# /etc/profile -*- Mode: shell-script -*-
# (c) MandrakeSoft, Chmouel Boudjnah <chmouel@mandrakesoft.com>
# Users generally won't see annoyng core files
[ "$UID" = "0" ] && ulimit -S -c 1000000 > /dev/null 2>&1
if ! echo ${PATH} |grep -q /usr/X11R6/bin ; then
PATH="$PATH:/usr/X11R6/bin"
fi
if [ "$UID" -ge 500 ] && ! echo ${PATH} |grep -q /usr/games ; then
export PATH=$PATH:/usr/games
fi
umask 022
USER=`id -un`
LOGNAME=$USER
MAIL="/var/spool/mail/$USER"
HISTCONTROL=ignoredups
HOSTNAME=`/bin/hostname`
HISTSIZE=1000
if [ -z "$INPUTRC" -a ! -f "$HOME/.inputrc" ]; then
INPUTRC=/etc/inputrc
fi
# some old programs still use it (eg: "man"), and it is also
# required for level1 compliance for LI18NUX2000
NLSPATH=/usr/share/locale/%l/%N
export PATH PS1 USER LOGNAME MAIL HOSTNAME INPUTRC NLSPATH
export HISTCONTROL HISTSIZE
for i in /etc/profile.d/*.sh ; do
if [ -x $i ]; then
. $i
fi
done
unset i
# /etc/profile -*- Mode: shell-script -*-
# (c) MandrakeSoft, Chmouel Boudjnah <chmouel@mandrakesoft.com>
# Users generally won't see annoyng core files
[ "$UID" = "0" ] && ulimit -S -c 1000000 > /dev/null 2>&1
if ! echo ${PATH} |grep -q /usr/X11R6/bin ; then
PATH="$PATH:/usr/X11R6/bin"
fi
if [ "$UID" -ge 500 ] && ! echo ${PATH} |grep -q /usr/games ; then
export PATH=$PATH:/usr/games
fi
PATH="/usr/local/bin/java/bin"
umask 022
USER=`id -un`
LOGNAME=$USER
MAIL="/var/spool/mail/$USER"
HISTCONTROL=ignoredups
HOSTNAME=`/bin/hostname`
HISTSIZE=1000
if [ -z "$INPUTRC" -a ! -f "$HOME/.inputrc" ]; then
INPUTRC=/etc/inputrc
fi
# some old programs still use it (eg: "man"), and it is also
# required for level1 compliance for LI18NUX2000
NLSPATH=/usr/share/locale/%l/%N
export PATH PS1 USER LOGNAME MAIL HOSTNAME INPUTRC NLSPATH
export HISTCONTROL HISTSIZE
for i in /etc/profile.d/*.sh ; do
if [ -x $i ]; then
. $i
fi
done
unset i
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.