* [gentoo-user] limewire won't start
@ 2006-03-27 6:52 maxim wexler
2006-03-27 7:01 ` Chad Feller
0 siblings, 1 reply; 11+ messages in thread
From: maxim wexler @ 2006-03-27 6:52 UTC (permalink / raw
To: gentoo-user
Hi everybody,
Anybody have this happen:
heathen@sarawak ~ $ limewire
/usr/bin/limewire: line 4: java: command not found
Someone in a forum said do this:
sarawak heathen # /usr/sbin/env-update && source
/etc/profile
>>> Regenerating /etc/ld.so.cache...
Didn't work.
Someone else said do this:
sarawak heathen # java-config -v
Traceback (most recent call last):
File "/usr/bin/java-config", line 14, in ?
from java_config import jc_options
ImportError: No module named java_config
Limewire has been working fine up til now. I didn't
touch java. Did it just disappear? How?
heathen@sarawak ~ $ emerge -pv limewire
These are the packages that I would merge, in order:
Calculating dependencies ...done!
[ebuild R ] net-p2p/limewire-4.8.1 +gtk 0 kB
Total size of downloads: 0 kB
Doesn't say anything about not having java.
Finally, from the emerge.log:
1135235218: >>> emerge (11 of 23)
dev-java/java-config-1.2.11-r1 to /
1135235218: === (11 of 23) Cleaning
(dev-java/java-config-1.2.11-r1::/usr/portage
/dev-java/java-config/java-config-1.2.11-r1.ebuild)
1135235218: === (11 of 23) Compiling/Merging
(dev-java/java-config-1.2.11-r1::/us
r/portage/dev-java/java-config/java-config-1.2.11-r1.ebuild)
1135235232: === (11 of 23) Post-Build Cleaning
(dev-java/java-config-1.2.11-r1::/
usr/portage/dev-java/java-config/java-config-1.2.11-r1.ebuild)
1135235233: >>> AUTOCLEAN: dev-java/java-config
1135235233: --- AUTOCLEAN: Nothing unmerged.
1135235233: ::: completed emerge (11 of 23)
dev-java/java-config-1.2.11-r1 to /
1135235233: >>> emerge (12 of 23)
dev-java/blackdown-jre-1.4.2.02 to /
1135235233: === (12 of 23) Cleaning
(dev-java/blackdown-jre-1.4.2.02::/usr/portag
e/dev-java/blackdown-jre/blackdown-jre-1.4.2.02.ebuild)
1135235233: === (12 of 23) Compiling/Merging
(dev-java/blackdown-jre-1.4.2.02::/u
sr/portage/dev-java/blackdown-jre/blackdown-jre-1.4.2.02.ebuild)
1135239863: === (12 of 23) Post-Build Cleaning
(dev-java/blackdown-jre-1.4.2.02::
/usr/portage/dev-java/blackdown-jre/blackdown-jre-1.4.2.02.ebuild)
1135239863: >>> AUTOCLEAN: dev-java/blackdown-jre
1135239863: --- AUTOCLEAN: Nothing unmerged.
1135239863: ::: completed emerge (12 of 23)
dev-java/blackdown-jre-1.4.2.02 to /
1135239863: >>> emerge (13 of 23)
dev-java/blackdown-jdk-1.4.2.02 to /
1135239863: === (13 of 23) Cleaning
(dev-java/blackdown-jdk-1.4.2.02::/usr/portag
e/dev-java/blackdown-jdk/blackdown-jdk-1.4.2.02.ebuild)
1135239864: === (13 of 23) Compiling/Merging
(dev-java/blackdown-jdk-1.4.2.02::/u
sr/portage/dev-java/blackdown-jdk/blackdown-jdk-1.4.2.02.ebuild)
1135251583: === (13 of 23) Post-Build Cleaning
(dev-java/blackdown-jdk-1.4.2.02::
/usr/portage/dev-java/blackdown-jdk/blackdown-jdk-1.4.2.02.ebuild)
1135251584: >>> AUTOCLEAN: dev-java/blackdown-jdk
1135251584: --- AUTOCLEAN: Nothing unmerged.
1135251584: ::: completed emerge (13 of 23)
dev-java/blackdown-jdk-1.4.2.02 to /
-Maxim
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] limewire won't start
2006-03-27 6:52 [gentoo-user] limewire won't start maxim wexler
@ 2006-03-27 7:01 ` Chad Feller
2006-03-28 3:19 ` maxim wexler
0 siblings, 1 reply; 11+ messages in thread
From: Chad Feller @ 2006-03-27 7:01 UTC (permalink / raw
To: gentoo-user
methinks java is not in your path. if you type:
"which java"
does it return anything? that failing find out where it (java) is on
your system. something like this should help:
"locate javac | grep bin"
(I chose javac instead of java as you shouldn't get a mile of output,
but likewise you could do a "locate java" instead - nevertheless they
should be in the same place). if locate returns something, then take a
peek at your path ("echo $PATH") and that should reveal your problem.
maxim wexler wrote:
> Hi everybody,
>
> Anybody have this happen:
>
> heathen@sarawak ~ $ limewire
> /usr/bin/limewire: line 4: java: command not found
>
> Someone in a forum said do this:
>
> sarawak heathen # /usr/sbin/env-update && source
> /etc/profile
>
>>>> Regenerating /etc/ld.so.cache...
>>>>
>
> Didn't work.
>
> Someone else said do this:
>
> sarawak heathen # java-config -v
> Traceback (most recent call last):
> File "/usr/bin/java-config", line 14, in ?
> from java_config import jc_options
> ImportError: No module named java_config
>
> Limewire has been working fine up til now. I didn't
> touch java. Did it just disappear? How?
>
> heathen@sarawak ~ $ emerge -pv limewire
>
> These are the packages that I would merge, in order:
>
> Calculating dependencies ...done!
> [ebuild R ] net-p2p/limewire-4.8.1 +gtk 0 kB
>
> Total size of downloads: 0 kB
>
> Doesn't say anything about not having java.
>
> Finally, from the emerge.log:
>
> 1135235218: >>> emerge (11 of 23)
> dev-java/java-config-1.2.11-r1 to /
> 1135235218: === (11 of 23) Cleaning
> (dev-java/java-config-1.2.11-r1::/usr/portage
> /dev-java/java-config/java-config-1.2.11-r1.ebuild)
> 1135235218: === (11 of 23) Compiling/Merging
> (dev-java/java-config-1.2.11-r1::/us
> r/portage/dev-java/java-config/java-config-1.2.11-r1.ebuild)
> 1135235232: === (11 of 23) Post-Build Cleaning
> (dev-java/java-config-1.2.11-r1::/
> usr/portage/dev-java/java-config/java-config-1.2.11-r1.ebuild)
> 1135235233: >>> AUTOCLEAN: dev-java/java-config
> 1135235233: --- AUTOCLEAN: Nothing unmerged.
> 1135235233: ::: completed emerge (11 of 23)
> dev-java/java-config-1.2.11-r1 to /
> 1135235233: >>> emerge (12 of 23)
> dev-java/blackdown-jre-1.4.2.02 to /
> 1135235233: === (12 of 23) Cleaning
> (dev-java/blackdown-jre-1.4.2.02::/usr/portag
> e/dev-java/blackdown-jre/blackdown-jre-1.4.2.02.ebuild)
> 1135235233: === (12 of 23) Compiling/Merging
> (dev-java/blackdown-jre-1.4.2.02::/u
> sr/portage/dev-java/blackdown-jre/blackdown-jre-1.4.2.02.ebuild)
> 1135239863: === (12 of 23) Post-Build Cleaning
> (dev-java/blackdown-jre-1.4.2.02::
> /usr/portage/dev-java/blackdown-jre/blackdown-jre-1.4.2.02.ebuild)
> 1135239863: >>> AUTOCLEAN: dev-java/blackdown-jre
> 1135239863: --- AUTOCLEAN: Nothing unmerged.
> 1135239863: ::: completed emerge (12 of 23)
> dev-java/blackdown-jre-1.4.2.02 to /
> 1135239863: >>> emerge (13 of 23)
> dev-java/blackdown-jdk-1.4.2.02 to /
> 1135239863: === (13 of 23) Cleaning
> (dev-java/blackdown-jdk-1.4.2.02::/usr/portag
> e/dev-java/blackdown-jdk/blackdown-jdk-1.4.2.02.ebuild)
> 1135239864: === (13 of 23) Compiling/Merging
> (dev-java/blackdown-jdk-1.4.2.02::/u
> sr/portage/dev-java/blackdown-jdk/blackdown-jdk-1.4.2.02.ebuild)
> 1135251583: === (13 of 23) Post-Build Cleaning
> (dev-java/blackdown-jdk-1.4.2.02::
> /usr/portage/dev-java/blackdown-jdk/blackdown-jdk-1.4.2.02.ebuild)
> 1135251584: >>> AUTOCLEAN: dev-java/blackdown-jdk
> 1135251584: --- AUTOCLEAN: Nothing unmerged.
> 1135251584: ::: completed emerge (13 of 23)
> dev-java/blackdown-jdk-1.4.2.02 to /
>
> -Maxim
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] limewire won't start
2006-03-27 7:01 ` Chad Feller
@ 2006-03-28 3:19 ` maxim wexler
2006-03-28 4:16 ` Chad Feller
0 siblings, 1 reply; 11+ messages in thread
From: maxim wexler @ 2006-03-28 3:19 UTC (permalink / raw
To: gentoo-user
--- Chad Feller <cfeller@unr.nevada.edu> wrote:
> methinks java is not in your path. if you type:
>
> "which java"
>
> does it return anything? that failing find out
> where it (java) is on
> your system. something like this should help:
>
> "locate javac | grep bin"
>
> (I chose javac instead of java as you shouldn't get
> a mile of output,
> but likewise you could do a "locate java" instead -
> nevertheless they
> should be in the same place). if locate returns
> something, then take a
> peek at your path ("echo $PATH") and that should
> reveal your problem.
>
heathen@sarawak ~ $ which java
which: no java in (/usr/local/bin:/usr/bin:/bin)
heathen@sarawak ~ $ locate javac | grep bin
/opt/blackdown-jdk-1.4.2.02/bin/javac
heathen@sarawak ~ $ echo $PATH
/usr/local/bin:/usr/bin:/bin
Hey, you're right! How'd that happen? I wonder does
this have something to do with an emerge -C openssh?
Before it ran it warned me that openssh was part of my
profile and could cause me problems. But java? Too weird!
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] limewire won't start
2006-03-28 3:19 ` maxim wexler
@ 2006-03-28 4:16 ` Chad Feller
2006-03-28 22:33 ` maxim wexler
0 siblings, 1 reply; 11+ messages in thread
From: Chad Feller @ 2006-03-28 4:16 UTC (permalink / raw
To: gentoo-user
maxim wexler wrote:
> --- Chad Feller <cfeller@unr.nevada.edu> wrote:
>
>
>> methinks java is not in your path. if you type:
>>
>> "which java"
>>
>> does it return anything? that failing find out
>> where it (java) is on
>> your system. something like this should help:
>>
>> "locate javac | grep bin"
>>
>> (I chose javac instead of java as you shouldn't get
>> a mile of output,
>> but likewise you could do a "locate java" instead -
>> nevertheless they
>> should be in the same place). if locate returns
>> something, then take a
>> peek at your path ("echo $PATH") and that should
>> reveal your problem.
>>
>>
>
> heathen@sarawak ~ $ which java
> which: no java in (/usr/local/bin:/usr/bin:/bin)
> heathen@sarawak ~ $ locate javac | grep bin
> /opt/blackdown-jdk-1.4.2.02/bin/javac
> heathen@sarawak ~ $ echo $PATH
> /usr/local/bin:/usr/bin:/bin
>
> Hey, you're right! How'd that happen? I wonder does
> this have something to do with an emerge -C openssh?
> Before it ran it warned me that openssh was part of my
> profile and could cause me problems. But java? Too weird!
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
So we have to get Java back into your path... I've got Sun Java, so mine
will be slightly different than yours, but in your /etc/env.d/ and
/etc/env.d/java directory you should have a couple of files in there.
First you will have something like /etc/env.d/java/20sun-jdk-1.4.2.10.
Each file in /etc/env.d/java/ represents each version of java you have
installed on your system (thus you could have multiple versions and
switch between them). my /etc/env.d/java/20sun-jdk-1.4.2.10 contains
the following.
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header:
/var/cvsroot/gentoo-x86/dev-java/sun-jdk/files/sun-jdk-1.4.2.10,v 1.2
2006/01/08 23:27:53 nichoj Exp $
VERSION="Sun JDK 1.4.2.10"
JAVA_HOME=/opt/sun-jdk-1.4.2.10
JDK_HOME=/opt/sun-jdk-1.4.2.10
JAVAC=${JAVA_HOME}/bin/javac
ADDPATH="${JAVA_HOME}/bin:${JAVA_HOME}/jre/bin:${JAVA_HOME}/jre/javaws"
ADDLDPATH="${JAVA_HOME}/jre/lib/i686/:${JAVA_HOME}/jre/lib/i686/native_threads/:${JAVA_HOME}/jre/lib/i686/client/:${JAVA_HOME}/jre/lib/i686/server/"
MANPATH="/opt/sun-jdk-1.4.2.10/man"
ENV_VARS="JAVA_HOME JDK_HOME JAVAC ADDPATH ADDLDPATH MANPATH"
You should also have something like /etc/env.d/20java This would be the
version of java you currently have set (active). In my case, because I
only have one java installed, it will largely be the same. its contents
are:
# Autogenerated by java-config
# Command: --set-system-vm=sun-jdk-1.4.2.10
JDK_HOME=/opt/sun-jdk-1.4.2.10
JAVAC=/opt/sun-jdk-1.4.2.10/bin/javac
PATH="/opt/sun-jdk-1.4.2.10/bin:/opt/sun-jdk-1.4.2.10/jre/bin:/opt/sun-jdk-1.4.2.10/jre/javaws"
ROOTPATH="/opt/sun-jdk-1.4.2.10/bin:/opt/sun-jdk-1.4.2.10/jre/bin:/opt/sun-jdk-1.4.2.10/jre/javaws"
LDPATH="/opt/sun-jdk-1.4.2.10/jre/lib/i686/:/opt/sun-jdk-1.4.2.10/jre/lib/i686/native_threads/:/opt/sun-jdk-1.4.2.10/jre/lib/i686/client/:/opt/sun-jdk-1.4.2.10/jre/lib/i686/server/"
# VERSION="Sun JDK 1.4.2.10"
MANPATH=${MANPATH}:/opt/sun-jdk-1.4.2.10/man
JAVA_HOME=/opt/sun-jdk-1.4.2.10
Now if you have a file in /etc/env.d/java/<something> but don't have an
/etc/env.d/20java (or if you do, it is empty), then you should be able
to fix that with java-config (man java-config). However if both files
/etc/env.d/java/<something> and /etc/env.d/20java seem legit, then we
need to see why bash isn't sourcing the env.d files. In fact now that I
think about it, that might be your problem, as your path did seem to be
quite short. Mine for instance is:
echo $PATH
/usr/lib/ccache/bin:/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.4.5:/opt/sun-jdk-1.4.2.10/bin:/opt/sun-jdk-1.4.2.10/jre/bin:/opt/sun-jdk-1.4.2.10/jre/javaws:/usr/qt/3/bin:/usr/games/bin
Before I start speculating any further, let me know where the above
leads you...
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] limewire won't start
2006-03-28 4:16 ` Chad Feller
@ 2006-03-28 22:33 ` maxim wexler
2006-03-28 23:39 ` Chad Feller
2006-03-29 3:21 ` Ryan Tandy
0 siblings, 2 replies; 11+ messages in thread
From: maxim wexler @ 2006-03-28 22:33 UTC (permalink / raw
To: gentoo-user
> So we have to get Java back into your path... I've
> got Sun Java, so mine
> will be slightly different than yours, but in your
> /etc/env.d/ and
> /etc/env.d/java directory you should have a couple
> of files in there.
> First you will have something like
> /etc/env.d/java/20sun-jdk-1.4.2.10.
> Each file in /etc/env.d/java/ represents each
> version of java you have
> installed on your system (thus you could have
> multiple versions and
> switch between them). my
> /etc/env.d/java/20sun-jdk-1.4.2.10 contains
> the following.
>
> # Copyright 1999-2004 Gentoo Foundation
> # Distributed under the terms of the GNU General
> Public License v2
> # $Header:
>
/var/cvsroot/gentoo-x86/dev-java/sun-jdk/files/sun-jdk-1.4.2.10,v
> 1.2
> 2006/01/08 23:27:53 nichoj Exp $
>
> VERSION="Sun JDK 1.4.2.10"
> JAVA_HOME=/opt/sun-jdk-1.4.2.10
> JDK_HOME=/opt/sun-jdk-1.4.2.10
> JAVAC=${JAVA_HOME}/bin/javac
>
ADDPATH="${JAVA_HOME}/bin:${JAVA_HOME}/jre/bin:${JAVA_HOME}/jre/javaws"
>
ADDLDPATH="${JAVA_HOME}/jre/lib/i686/:${JAVA_HOME}/jre/lib/i686/native_threads/:${JAVA_HOME}/jre/lib/i686/client/:${JAVA_HOME}/jre/lib/i686/server/"
> MANPATH="/opt/sun-jdk-1.4.2.10/man"
> ENV_VARS="JAVA_HOME JDK_HOME JAVAC ADDPATH ADDLDPATH
> MANPATH"
>
> You should also have something like
> /etc/env.d/20java This would be the
> version of java you currently have set (active). In
> my case, because I
> only have one java installed, it will largely be the
> same. its contents
> are:
>
> # Autogenerated by java-config
> # Command: --set-system-vm=sun-jdk-1.4.2.10
> JDK_HOME=/opt/sun-jdk-1.4.2.10
> JAVAC=/opt/sun-jdk-1.4.2.10/bin/javac
>
PATH="/opt/sun-jdk-1.4.2.10/bin:/opt/sun-jdk-1.4.2.10/jre/bin:/opt/sun-jdk-1.4.2.10/jre/javaws"
>
ROOTPATH="/opt/sun-jdk-1.4.2.10/bin:/opt/sun-jdk-1.4.2.10/jre/bin:/opt/sun-jdk-1.4.2.10/jre/javaws"
>
LDPATH="/opt/sun-jdk-1.4.2.10/jre/lib/i686/:/opt/sun-jdk-1.4.2.10/jre/lib/i686/native_threads/:/opt/sun-jdk-1.4.2.10/jre/lib/i686/client/:/opt/sun-jdk-1.4.2.10/jre/lib/i686/server/"
> # VERSION="Sun JDK 1.4.2.10"
> MANPATH=${MANPATH}:/opt/sun-jdk-1.4.2.10/man
> JAVA_HOME=/opt/sun-jdk-1.4.2.10
>
> Now if you have a file in
> /etc/env.d/java/<something> but don't have an
> /etc/env.d/20java (or if you do, it is empty), then
> you should be able
> to fix that with java-config (man java-config).
> However if both files
> /etc/env.d/java/<something> and /etc/env.d/20java
> seem legit, then we
> need to see why bash isn't sourcing the env.d files.
> In fact now that I
> think about it, that might be your problem, as your
> path did seem to be
> quite short. Mine for instance is:
>
> echo $PATH
>
/usr/lib/ccache/bin:/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.4.5:/opt/sun-jdk-1.4.2.10/bin:/opt/sun-jdk-1.4.2.10/jre/bin:/opt/sun-jdk-1.4.2.10/jre/javaws:/usr/qt/3/bin:/usr/games/bin
>
> Before I start speculating any further, let me know
> where the above
> leads you...
heathen@sarawak ~ $ ls /etc/env.d
00basic 05portage.envd 30java-finalclasspath
50ncurses binutils
01hostname 09ati 45qt3
50qtdir3 gcc
02distcc 10MozillaFirefox 46kdepaths-3.4
60ladspa java
03opengl 10mozilla 50gconf
70less
05binutils 10xorg 50glib2
99kde-env
05gcc 20java 50gtk2
99limewire
heathen@sarawak ~ $ ls /etc/env.d/java
20blackdown-jdk-1.4.2.02 20blackdown-jre-1.4.2.02
When I do the following limewire comes back:
PATH=$PATH:/path/to/java/bin
export PATH
But it doesn't survive a reboot.
Somebody said put those commands into ~/.bash_profile.
How would that work? I mean what's the syntax? Just
like they are there. This is all I got in
.bash_profile now:
heathen@sarawak ~ $ cat .bash_profile
# /etc/skel/.bash_profile:
# $Header:
/var/cvsroot/gentoo-x86/app-shells/bash/files/dot-bash_profile,v
1.1 2005/04/30 00:08:01 vapier Exp $
# This file is sourced by bash for login shells. The
following line
# runs your .bashrc and is recommended by the bash
info pages.
[[ -f ~/.bashrc ]] && . ~/.bashrc
>
>
>
> --
> gentoo-user@gentoo.org mailing list
>
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] limewire won't start
2006-03-28 22:33 ` maxim wexler
@ 2006-03-28 23:39 ` Chad Feller
2006-03-29 16:05 ` maxim wexler
2006-03-29 3:21 ` Ryan Tandy
1 sibling, 1 reply; 11+ messages in thread
From: Chad Feller @ 2006-03-28 23:39 UTC (permalink / raw
To: gentoo-user
maxim wexler wrote:
>
>> So we have to get Java back into your path... I've
>> got Sun Java, so mine
>> will be slightly different than yours, but in your
>> /etc/env.d/ and
>> /etc/env.d/java directory you should have a couple
>> of files in there.
>> First you will have something like
>> /etc/env.d/java/20sun-jdk-1.4.2.10.
>> Each file in /etc/env.d/java/ represents each
>> version of java you have
>> installed on your system (thus you could have
>> multiple versions and
>> switch between them). my
>> /etc/env.d/java/20sun-jdk-1.4.2.10 contains
>> the following.
>>
>> # Copyright 1999-2004 Gentoo Foundation
>> # Distributed under the terms of the GNU General
>> Public License v2
>> # $Header:
>>
>>
> /var/cvsroot/gentoo-x86/dev-java/sun-jdk/files/sun-jdk-1.4.2.10,v
>
>> 1.2
>> 2006/01/08 23:27:53 nichoj Exp $
>>
>> VERSION="Sun JDK 1.4.2.10"
>> JAVA_HOME=/opt/sun-jdk-1.4.2.10
>> JDK_HOME=/opt/sun-jdk-1.4.2.10
>> JAVAC=${JAVA_HOME}/bin/javac
>>
>>
> ADDPATH="${JAVA_HOME}/bin:${JAVA_HOME}/jre/bin:${JAVA_HOME}/jre/javaws"
>
> ADDLDPATH="${JAVA_HOME}/jre/lib/i686/:${JAVA_HOME}/jre/lib/i686/native_threads/:${JAVA_HOME}/jre/lib/i686/client/:${JAVA_HOME}/jre/lib/i686/server/"
>
>> MANPATH="/opt/sun-jdk-1.4.2.10/man"
>> ENV_VARS="JAVA_HOME JDK_HOME JAVAC ADDPATH ADDLDPATH
>> MANPATH"
>>
>> You should also have something like
>> /etc/env.d/20java This would be the
>> version of java you currently have set (active). In
>> my case, because I
>> only have one java installed, it will largely be the
>> same. its contents
>> are:
>>
>> # Autogenerated by java-config
>> # Command: --set-system-vm=sun-jdk-1.4.2.10
>> JDK_HOME=/opt/sun-jdk-1.4.2.10
>> JAVAC=/opt/sun-jdk-1.4.2.10/bin/javac
>>
>>
> PATH="/opt/sun-jdk-1.4.2.10/bin:/opt/sun-jdk-1.4.2.10/jre/bin:/opt/sun-jdk-1.4.2.10/jre/javaws"
>
> ROOTPATH="/opt/sun-jdk-1.4.2.10/bin:/opt/sun-jdk-1.4.2.10/jre/bin:/opt/sun-jdk-1.4.2.10/jre/javaws"
>
> LDPATH="/opt/sun-jdk-1.4.2.10/jre/lib/i686/:/opt/sun-jdk-1.4.2.10/jre/lib/i686/native_threads/:/opt/sun-jdk-1.4.2.10/jre/lib/i686/client/:/opt/sun-jdk-1.4.2.10/jre/lib/i686/server/"
>
>> # VERSION="Sun JDK 1.4.2.10"
>> MANPATH=${MANPATH}:/opt/sun-jdk-1.4.2.10/man
>> JAVA_HOME=/opt/sun-jdk-1.4.2.10
>>
>> Now if you have a file in
>> /etc/env.d/java/<something> but don't have an
>> /etc/env.d/20java (or if you do, it is empty), then
>> you should be able
>> to fix that with java-config (man java-config).
>> However if both files
>> /etc/env.d/java/<something> and /etc/env.d/20java
>> seem legit, then we
>> need to see why bash isn't sourcing the env.d files.
>> In fact now that I
>> think about it, that might be your problem, as your
>> path did seem to be
>> quite short. Mine for instance is:
>>
>> echo $PATH
>>
>>
> /usr/lib/ccache/bin:/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.4.5:/opt/sun-jdk-1.4.2.10/bin:/opt/sun-jdk-1.4.2.10/jre/bin:/opt/sun-jdk-1.4.2.10/jre/javaws:/usr/qt/3/bin:/usr/games/bin
>
>> Before I start speculating any further, let me know
>> where the above
>> leads you...
>>
>
> heathen@sarawak ~ $ ls /etc/env.d
> 00basic 05portage.envd 30java-finalclasspath
> 50ncurses binutils
> 01hostname 09ati 45qt3
> 50qtdir3 gcc
> 02distcc 10MozillaFirefox 46kdepaths-3.4
> 60ladspa java
> 03opengl 10mozilla 50gconf
> 70less
> 05binutils 10xorg 50glib2
> 99kde-env
> 05gcc 20java 50gtk2
> 99limewire
> heathen@sarawak ~ $ ls /etc/env.d/java
> 20blackdown-jdk-1.4.2.02 20blackdown-jre-1.4.2.02
>
> When I do the following limewire comes back:
>
> PATH=$PATH:/path/to/java/bin
> export PATH
>
> But it doesn't survive a reboot.
>
> Somebody said put those commands into ~/.bash_profile.
> How would that work? I mean what's the syntax? Just
> like they are there. This is all I got in
> .bash_profile now:
>
> heathen@sarawak ~ $ cat .bash_profile
> # /etc/skel/.bash_profile:
> # $Header:
> /var/cvsroot/gentoo-x86/app-shells/bash/files/dot-bash_profile,v
> 1.1 2005/04/30 00:08:01 vapier Exp $
>
> # This file is sourced by bash for login shells. The
> following line
> # runs your .bashrc and is recommended by the bash
> info pages.
> [[ -f ~/.bashrc ]] && . ~/.bashrc
>
>
>
>>
>> --
>> gentoo-user@gentoo.org mailing list
>>
>>
>>
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
The problem here is that you don't want to hard code it into your
.bash_profile as that is only local (to that specific user). you could
do it in /etc/profile, but that would only work until the next java
upgrade... it looks like you have a java in /etc/env.d/java. what
happens if you run java-config (man java-config for the syntax). you
can use it to show the view the current jvm/jdk as well as set it, which
is what we'll want to do if it isn't set.
also, what is contained in /etc/env.d/20java ?
also for giggles, can you put the output of the command "env" here as well?
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] limewire won't start
2006-03-28 23:39 ` Chad Feller
@ 2006-03-29 16:05 ` maxim wexler
0 siblings, 0 replies; 11+ messages in thread
From: maxim wexler @ 2006-03-29 16:05 UTC (permalink / raw
To: gentoo-user
> http://mail.yahoo.com
> >
> The problem here is that you don't want to hard code
> it into your
> .bash_profile as that is only local (to that
> specific user).
I'm OK with that.
you could
> do it in /etc/profile, but that would only work
> until the next java
> upgrade... it looks like you have a java in
> /etc/env.d/java. what
> happens if you run java-config (man java-config for
> the syntax). you
> can use it to show the view the current jvm/jdk as
> well as set it, which
> is what we'll want to do if it isn't set.
sarawak heathen # java-config
Traceback (most recent call last):
File "/usr/bin/java-config", line 14, in ?
from java_config import jc_options
ImportError: No module named java_config
>
> also, what is contained in /etc/env.d/20java ?
heathen@sarawak ~ $ cat /etc/env.d/20java
# Autogenerated by java-config
# Command: --set-system-vm=blackdown-jdk-1.4.2.02
JDK_HOME=/opt/blackdown-jdk-1.4.2.02
JAVAC=/opt/blackdown-jdk-1.4.2.02/bin/javac
PATH="/opt/blackdown-jdk-1.4.2.02/bin:/opt/blackdown-jdk-1.4.2.02/jre/bin"
ROOTPATH="/opt/blackdown-jdk-1.4.2.02/bin:/opt/blackdown-jdk-1.4.2.02/jre/bin"
LDPATH="/opt/blackdown-jdk-1.4.2.02/jre/lib/i386/:/opt/blackdown-jdk-1.4.2.02/jre/lib/i386/native_threads/:/opt/blackdown-jdk-1.4.2.02/jre/lib/i386/classic/:/opt/blackdown-jdk-1.4.2.02/jre/lib/i386/server/"
# VERSION="Blackdown JDK 1.4.2.02"
MANPATH=${MANPATH}:/opt/blackdown-jdk-1.4.2.02/man
JAVA_HOME=/opt/blackdown-jdk-1.4.2.02
>
> also for giggles, can you put the output of the
> command "env" here as well?
MANPATH=/usr/local/share/man:/usr/share/man:/usr/share/binutils-data/i686-pc-linux-gnu/2.16.1/man:/usr/share/gcc-data/i686-pc-linux-gnu/3.3.6/man::/opt/blackdown-jdk-1.4.2.02/man:/usr/qt/3/doc/man
HOSTNAME=sarawak
TERM=xterm
SHELL=/bin/bash
WINDOWID=16777230
QTDIR=/usr/qt/3
MOZILLA_FIVE_HOME=/usr/lib/mozilla
XTERM_SHELL=/bin/bash
USER=heathen
LS_COLORS=no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=01;32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.sh=01;32:*.csh=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.mng=01;35:*.xcf=01;35:*.pcx=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.avi=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.mov=01;35:*.qt=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.pdf=00;32:*.ps=00;32:*.txt=00;32:*.patch=00;32:*.diff=00;32:*.log=00;32:*.tex=00;32:*.doc=00;32:*.mp3=00;36:*.wav=00;36:*.mid=00;36
:*.midi=00;36:*.au=00;36:*.ogg=00;36:*.flac=00;36:*.aac=00;36:
GDK_USE_XFT=1
PAGER=/usr/bin/less
CONFIG_PROTECT_MASK=/etc/gconf /etc/terminfo
XINITRC=/etc/X11/xinit/xinitrc
MAIL=/var/mail/heathen
PATH=/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.3.6:/opt/ati/bin:/opt/blackdown-jdk-1.4.2.02/bin:/opt/blackdown-jdk-1.4.2.02/jre/bin:/usr/qt/3/bin:/usr/kde/3.4/bin:/opt/limewire
DISTCC_LOG=
PWD=/home/heathen
JAVA_HOME=/opt/blackdown-jdk-1.4.2.02
EDITOR=/bin/nano
JAVAC=/opt/blackdown-jdk-1.4.2.02/bin/javac
QMAKESPEC=linux-g++
KDEDIRS=/usr
DISTCC_VERBOSE=0
DCCC_PATH=/usr/lib/distcc/bin
XTERM_VERSION=XTerm(204)
JDK_HOME=/opt/blackdown-jdk-1.4.2.02
SHLVL=4
HOME=/home/heathen
LESS=-R
PYTHONPATH=/usr/lib/portage/pym
LOGNAME=heathen
CVS_RSH=ssh
GCC_SPECS=
CLASSPATH=.
LESSOPEN=|lesspipe.sh %s
INFOPATH=/usr/share/info:/usr/share/binutils-data/i686-pc-linux-gnu/2.16.1/info:/usr/share/gcc-data/i686-pc-linux-gnu/3.3.6/info
DISPLAY=:0.0
OPENGL_PROFILE=xorg-x11
LADSPA_PATH=/usr/lib/ladspa
G_BROKEN_FILENAMES=1
CONFIG_PROTECT=/usr/lib/mozilla/defaults/pref
/usr/lib/X11/xkb /usr/kde/3.4/share/config
/usr/kde/3.4/env /usr/kde/3.4/shutdown
/usr/share/config
XAUTHORITY=/home/heathen/.Xauthority
_=/usr/bin/env
speaking of giggles:
heathen@sarawak ~ $ echo $PATH
/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.3.6:/opt/ati/bin:/opt/blackdown-jdk-1.4.2.02/bin:/opt/blackdown-jdk-1.4.2.02/jre/bin:/usr/qt/3/bin:/usr/kde/3.4/bin:/opt/limewire
overnight the elves must have been adding stuff to my
path statement; I sure didn't ;0
>
>
>
> --
> gentoo-user@gentoo.org mailing list
>
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] limewire won't start
2006-03-28 22:33 ` maxim wexler
2006-03-28 23:39 ` Chad Feller
@ 2006-03-29 3:21 ` Ryan Tandy
2006-03-29 16:16 ` maxim wexler
1 sibling, 1 reply; 11+ messages in thread
From: Ryan Tandy @ 2006-03-29 3:21 UTC (permalink / raw
To: gentoo-user
maxim wexler wrote:
>> So we have to get Java back into your path... I've
>> got Sun Java, so mine
<MASSIVE SNIPPAGE>
Have you run 'env-update && source /etc/profile' recently? env-update
rebuilds your environment (variables like PATH) based on what's in
/etc/env.d. java-config and friends don't set env variables themselves
- they put them in /etc/env.d, and are supposed to call env-update as
part of their cleanup. If this didn't happen for some reason, running
it by hand may help.
HTH.
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] limewire won't start
2006-03-29 3:21 ` Ryan Tandy
@ 2006-03-29 16:16 ` maxim wexler
2006-03-29 16:43 ` Uwe Thiem
0 siblings, 1 reply; 11+ messages in thread
From: maxim wexler @ 2006-03-29 16:16 UTC (permalink / raw
To: gentoo-user
--- Ryan Tandy <tarpman@gmail.com> wrote:
> maxim wexler wrote:
> >> So we have to get Java back into your path...
> I've
> >> got Sun Java, so mine
> <MASSIVE SNIPPAGE>
>
> Have you run 'env-update && source /etc/profile'
> recently? env-update
> rebuilds your environment (variables like PATH)
> based on what's in
> /etc/env.d. java-config and friends don't set env
> variables themselves
> - they put them in /etc/env.d, and are supposed to
> call env-update as
> part of their cleanup. If this didn't happen for
> some reason, running
> it by hand may help.
>
> HTH.
> --
See my reply to Ryan. Somehow overnight my complete
path statement returned. I don't remember the last
time I ran env-update etc. Correct me if I'm wrong,
but isn't it run automatically after completion of
emerge <some package>. Perhaps this is something I
should set up in cron, which I have yet to configure
or use.
> gentoo-user@gentoo.org mailing list
>
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] limewire won't start
2006-03-29 16:16 ` maxim wexler
@ 2006-03-29 16:43 ` Uwe Thiem
2006-03-30 0:44 ` Ryan Tandy
0 siblings, 1 reply; 11+ messages in thread
From: Uwe Thiem @ 2006-03-29 16:43 UTC (permalink / raw
To: gentoo-user
On 29 March 2006 18:16, maxim wexler wrote:
>
> See my reply to Ryan. Somehow overnight my complete
> path statement returned. I don't remember the last
> time I ran env-update etc. Correct me if I'm wrong,
> but isn't it run automatically after completion of
> emerge <some package>. Perhaps this is something I
> should set up in cron, which I have yet to configure
> or use.
No, it doesn't run automatically, and you shouldn't run it from cron. You
really have to watch etc-update and decide what it should overwrite and what
you prefer to edit yourself. Think of a shorewall update overwriting all your
rules, policies and other configuration. Thanks, no!
Uwe
--
Why do consumers keep buying products they will live to curse?
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2006-03-30 0:58 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-27 6:52 [gentoo-user] limewire won't start maxim wexler
2006-03-27 7:01 ` Chad Feller
2006-03-28 3:19 ` maxim wexler
2006-03-28 4:16 ` Chad Feller
2006-03-28 22:33 ` maxim wexler
2006-03-28 23:39 ` Chad Feller
2006-03-29 16:05 ` maxim wexler
2006-03-29 3:21 ` Ryan Tandy
2006-03-29 16:16 ` maxim wexler
2006-03-29 16:43 ` Uwe Thiem
2006-03-30 0:44 ` Ryan Tandy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox