![]() |
|
|||||||
| Register | FAQ | The Twelve Commandments | Members List | Calendar | Arcade | Find the Best VPN | Today's Posts | Search |
| General Linux Support For questions regarding use of LimeWire or WireShare or related questions on the Linux operating system. This includes installation questions and answers. (Check the Stickies marked in Red at top of this section.) |
![]() |
|
|
Thread Tools | Display Modes |
|
#11
|
|||
|
|||
|
I still don't get it.
My profile looks like this: ======================== # /etc/profile -*- Mode: shell-script -*- # (c) MandrakeSoft, Chmouel Boudjnah <[email protected]> loginsh=1 # 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 j------------------- Java is installed in: /usr/java/j2re1.4.1_03/bin What do I' do ????? dumb as a bag O' hammers |
|
#12
|
|||
|
|||
|
I have followed the procedure and i still cant run Java. When i do java -version it says java command not found. here is my profile :
PATH=/usr/java/j2re-1.4.0_03/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/julien/bin JAVA_HOME=/usr/java/j2re-1.4.0_03 PATH=/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/julien/bin export JAVA_HOME thnx a lot in advance 4 ur help ![]() gert |
|
#13
|
||||
|
||||
|
Quote:
Second, Your path statement with your $JAVA_HOME path statement should be written as follows: PATH=$JAVA_HOME/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/julien/bin So your profile should look like this: JAVA_HOME=/usr/java/j2re-1.4.0_03 PATH=$JAVA_HOME/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/julien/bin Next you would need to type: source /etc/profile or . /etc/profile #make sure there is a space between the period (.) and slash (/). or source ~/.bash_profile or . ~/.bash_profile #Make sure there is a space between the period (.) and tilde (~). or simply logout and then back in to your system to initialize your system to use the new changes to your shell environment. The dot/period (.) is the same as the "source" command on most systems that don't recognize the "source" command. HTH altoine |
|
#14
|
|||
|
|||
|
/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/schley/bin
Thats my path for right now, but what command do i use in terminal to change it :S? |
|
#15
|
|||
|
|||
|
There is no one command. You have to edit /etc/profile as root is in the instructions. Before you do anything, read the orignal post for datails and read the replies for additional hints. Make sure you understand what is going on before you change anything.
|
|
#16
|
|||
|
|||
|
Ok I opened it up with vi. only thing I can see to change is this
# Path manipulation if [ `id -u` = 0 ]; then pathmunge /sbin pathmunge /usr/sbin pathmunge /usr/local/sbin fi pathmunge /usr/X11R6/bin after |
|
#17
|
|||
|
|||
|
ok, im sorry for my lack of understanding on how to do this. i have installed the vm, but limewire installer wont reconize the vm. i am running mandrake 9.1 and my profile looks like this......
/* # /etc/profile -*- Mode: shell-script -*- # (c) MandrakeSoft, Chmouel Boudjnah <[email protected]> loginsh=1 JAVA_HOME=/usr/java/j2re1.4.0_01 PATH=$JAVA_HOME/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/pyriel/bin export JAVA_HOME # 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 */ im confused. .. .thank you for your time. |
|
#18
|
||||
|
||||
|
Quote:
rpm -ql j2re|more It should show your current (and more updated) java VM path as /usr/java/j2re1.4.2_01 or something to that extent. Put the updated path into your /etc/profile or ~/.bash_profile like so (Just an example. Your mileage may vary): <snip> JAVA_HOME=/usr/java/j2re1.4.2_01 PATH=$JAVA_HOME/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/pyriel/bin export JAVA_HOME <snip> HTH altoine Last edited by nDiScReEt; October 19th, 2003 at 12:52 AM. |
|
#19
|
|||
|
|||
|
Just want to say Thanks!!! I'm new to Linux and was able to walk thru installing JAVA.... Alll Looks well............
|
|
#20
|
|||
|
|||
|
I just installed Sun's JRE (v1.5.0_01), and LimeWire 4.6.0. I updated my /etc/profile file.
When I open a GNOME Terminal, and try to run LimeWire, it can't find my JRE. Apparently, neither GNOME Terminals nor X Terminals run /etc/profile, so my path doesn't get set appropriately. Yes, I can manually source /etc/profile, and then Java works fine. But I don' t want to have to do this every time. Is there any way to automatically set my path, so that GNOME and X Terminals inherit this updated path? (I want to do this system-wide, not just for one user.) Similarly, I really want to run LimeWire from the Gnome menu. However, when I try this (either via a shortcut, or via the Run Application dialog), nothing happens. I suspect that whatever path Gnome is using isn't set by /etc/profile. Any thoughts on how to change this path? (preferably system-wide) As a last resort, I edited "runLime.sh", and sourced /etc/profile within it. This is far from ideal. Any global fixes (which would enable me to run other Java apps from within Gnome) would be greatly appreciated. |
![]() |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| i need help; LW says please install the new version of java after installing Java | Logan_2468 | Windows | 7 | October 5th, 2009 11:07 PM |
| Installing Java | humbertoarte | Windows | 5 | October 11th, 2006 09:25 AM |
| Installing Java | m-life | Windows | 2 | March 5th, 2006 01:32 PM |
| Installing Java | chunkin | General Linux Support | 1 | September 8th, 2003 12:29 PM |
| Installing java | Unregistered | General Linux Support | 1 | March 3rd, 2002 05:29 AM |