Re: Where to find setup for env variable? [a question]

2010-04-14 Thread Paul Chany
Hi,

Paul E Condon  writes:

> On 20100414_113944, Paul Chany wrote:
>>
>> I have setup somewhere the JAVA_HOME environment variable, but
>> don't know where?
>
> When I am reading this thread there are already two search
> suggestions that are better than what I might have come up with. My
> post is to find out where the setting was actually done. I would
> have thought it could only be in /etc or /home --- but wierd things
> can happen. Where is it? How long did the search command take to
> run? And some idea of the size of your working environment?

I find finally the setup of JAVA_HOME in /home/myusername/.profile
file.

Thank you all for help!

--
Regards, Paul Chany
You can freely correct me in my English.
http://csanyi-pal.info


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/87iq7ttlo6@gmail.com



Re: Where to find setup for env variable?

2010-04-14 Thread Bob McGowan

Paul Chany wrote:

Liam O'Toole  writes:

  

On 2010-04-14, Paul Chany  wrote:



  

I have setup somewhere the JAVA_HOME environment variable, but
don't know where?
  

---SNIP---

Maybe /etc/environment?



Here on my GNU/Linux Lenny system this file is empty.

--
Regards, Paul Chany
You can freely correct me in my English.
http://csanyi-pal.info
  


Given that you have (presumably) installed some or all 'openjdk' 
packages, you could get a list of the installed files, per package, and 
see if any of the names listed point to anything of "interest".


Files in /etc, /etc/... (where ... might be 'openjdk'?), files in /lib 
or /usr/lib that are not library files, etc. could either be the source, 
or point to other files to check.


This is a 'brute force' sort of technique, but it has helped me in a 
couple of cases where all else had failed.


Bob


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/4bc5f317.1020...@symantec.com



Re: Where to find setup for env variable? [a question]

2010-04-14 Thread Paul E Condon
On 20100414_113944, Paul Chany wrote:
> Hi,
> 
> I have setup somewhere the JAVA_HOME environment variable, but don't
> know where?

...snip

When I am reading this thread there are already two search suggestions
that are better than what I might have come up with. My post is to
find out where the setting was actually done. I would have thought it
could only be in /etc or /home --- but wierd things can happen. Where
is it? How long did the search command take to run? And some idea of
the size of your working environment?

If the cause for that particular location appears to be something that
involved user volition, it could still be useful to know what mistakes
can be made. Better than learning from ones mistakes is learning from
others experience. TIA

-- 
Paul E Condon   
pecon...@mesanetworks.net


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20100414141130.ga22...@big.lan.gnu



Re: Where to find setup for env variable?

2010-04-14 Thread Mart Frauenlob
On 14.04.2010 12:24, Paul Chany wrote:

> Maybe must I use grep to find the file containing 'JAVA_HOME'?
> If yes, I dont' know the exact expression of that grep command.

grep -sIr 'JAVA_HOME' /etc/


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4bc5a875@chello.at



Re: Where to find setup for env variable?

2010-04-14 Thread Camaleón
On Wed, 14 Apr 2010 12:24:17 +0200, Paul Chany wrote:

> Jochen Schulz writes:
> 
>> Paul Chany:
>>>
>>> I have setup somewhere the JAVA_HOME environment variable, but don't
>>> know where?
>>
>> ~/.xsession?
> 
> No. :(
> 
> Maybe must I use grep to find the file containing 'JAVA_HOME'? If yes, I
> dont' know the exact expression of that grep command.

I have saved a one-liner. You can try with:

***
find /* -type f -exec grep -H 'JAVA_HOME' {} \; 
***

Be careful, as it will search inside all files under root "/".

Greetings,

-- 
Camaleón


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/pan.2010.04.14.11.08...@gmail.com



Re: Where to find setup for env variable?

2010-04-14 Thread Paul Chany
Jochen Schulz  writes:

> Paul Chany:
>>
>> I have setup somewhere the JAVA_HOME environment variable, but don't
>> know where?
>
> ~/.xsession?

No. :(

Maybe must I use grep to find the file containing 'JAVA_HOME'?
If yes, I dont' know the exact expression of that grep command.

--
Regards, Paul Chany
You can freely correct me in my English.
http://csanyi-pal.info


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/87d3y22uy6@gmail.com



Re: Where to find setup for env variable?

2010-04-14 Thread Jochen Schulz
Paul Chany:
> 
> I have setup somewhere the JAVA_HOME environment variable, but don't
> know where?

~/.xsession?

J.
-- 
When driving at night I find the headlights of oncoming vehicles very
attractive.
[Agree]   [Disagree]
 


signature.asc
Description: Digital signature


Re: Where to find setup for env variable?

2010-04-14 Thread Paul Chany
Liam O'Toole  writes:

> On 2010-04-14, Paul Chany  wrote:

>> I have setup somewhere the JAVA_HOME environment variable, but
>> don't know where?
> ---SNIP---
>
> Maybe /etc/environment?

Here on my GNU/Linux Lenny system this file is empty.

--
Regards, Paul Chany
You can freely correct me in my English.
http://csanyi-pal.info


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/87hbne2vqv@gmail.com



Re: Where to find setup for env variable?

2010-04-14 Thread Liam O'Toole
On 2010-04-14, Paul Chany  wrote:
> Hi,
>
> I have setup somewhere the JAVA_HOME environment variable, but don't
> know where?
---SNIP---

Maybe /etc/environment?

-- 
Liam O'Toole
Birmingham, United Kingdom



-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/slrnhsb3lh.bu7.liam.p.oto...@dipsy.selfip.org



Where to find setup for env variable?

2010-04-14 Thread Paul Chany
Hi,

I have setup somewhere the JAVA_HOME environment variable, but don't
know where?

$ env

JAVA_HOME=/home/csanyipal/Programozas/JAVA/SunJava/jdk1.6.0_10

This was my previous setup for JAVA_HOME.

I search in the following files for this setup:
~/.bash_profile
~/.bashrc
~/.gnomerc

/etc/gdm/PostLogin/Default
/etc/profile

but find nothing.
Now, in these files but not in '/etc/gdm/PostLogin/Default' I have
setup JAVA_HOME:
export JAVA_HOME=/usr/lib/jvm/java-6-openjdk
export PATH=$PATH:/usr/lib/jvm/java-6-openjdk/jre/bin

In the file '/etc/gdm/PostLogin/Default' I haven't setup JAVA_HOME.

How can I find where is the setup that cause env to show the
following?
JAVA_HOME=/home/csanyipal/Programozas/JAVA/SunJava/jdk1.6.0_10

Any advices will be appreciated!

--
Regards, Paul Chany
You can freely correct me in my English.
http://csanyi-pal.info


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/87mxx62x0f@gmail.com