LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   environment variables and konsole in KDE? (https://www.linuxquestions.org/questions/linux-software-2/environment-variables-and-konsole-in-kde-877519/)

michaelinux 04-27-2011 11:43 PM

environment variables and konsole in KDE?
 
i have installed jdk in my pc, and i've set up the environment variable on the .bashrc file in my home directory although i can use java's compiler and interpreter in terminal (xfce) if i try to use these commands in konsole (kde) for some reason they don't work.
do i need to edit other file???

Nevermind, i found out that konsole was being executed with -e $SHELL -l parameters, once i took them out, and just ran konsole everything worked.

eantoranz 04-28-2011 12:51 AM

They should work, I guess... unless konsole is using a different interpreter.

What are you doing on the .bashrc?

michaelinux 04-28-2011 01:04 AM

Quote:

Originally Posted by eantoranz (Post 4338860)
They should work, I guess... unless konsole is using a different interpreter.

What are you doing on the .bashrc?

this is what my .bashrc file contains:
PATH=$PATH:~/jdk1.6.0_23/bin
export PATH
jdk is not "installed" but i have it in my home folder, weird thing is that it works fine in terminal, but konsole seems not to get it.

eantoranz 04-28-2011 01:07 AM

on, konsole, execute these commands and show us the output:

echo $SHELL
echo $PATH

JZL240I-U 05-02-2011 03:16 AM

[Solved]? How? Why? What did you do? Please explain...

michaelinux 05-03-2011 04:23 PM

Quote:

Originally Posted by JZL240I-U (Post 4343605)
[Solved]? How? Why? What did you do? Please explain...

the bold text pretty much explains it all, if you look at the command executed when you run konsole from your Kmenu, it has some parameters with it, just take those out and just run 'konsole'.

JZL240I-U 05-04-2011 01:13 AM

Ah, you edited the OP. When a mail announces a new post and you click on that link, the new post will be displayed. For me it jumped to post #4. And since I expected the solution at the end of the thread...

Thanks for explaining.


All times are GMT -5. The time now is 04:26 AM.