LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-27-2011, 11:43 PM   #1
michaelinux
Member
 
Registered: Apr 2009
Location: El Salvador
Distribution: Slackware -current
Posts: 166

Rep: Reputation: 17
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.

Last edited by michaelinux; 04-28-2011 at 07:08 PM.
 
Old 04-28-2011, 12:51 AM   #2
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092
Blog Entries: 1

Rep: Reputation: 90
They should work, I guess... unless konsole is using a different interpreter.

What are you doing on the .bashrc?
 
Old 04-28-2011, 01:04 AM   #3
michaelinux
Member
 
Registered: Apr 2009
Location: El Salvador
Distribution: Slackware -current
Posts: 166

Original Poster
Rep: Reputation: 17
Quote:
Originally Posted by eantoranz View Post
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.
 
Old 04-28-2011, 01:07 AM   #4
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092
Blog Entries: 1

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

echo $SHELL
echo $PATH
 
Old 05-02-2011, 03:16 AM   #5
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Rep: Reputation: Disabled
[Solved]? How? Why? What did you do? Please explain...
 
Old 05-03-2011, 04:23 PM   #6
michaelinux
Member
 
Registered: Apr 2009
Location: El Salvador
Distribution: Slackware -current
Posts: 166

Original Poster
Rep: Reputation: 17
Quote:
Originally Posted by JZL240I-U View Post
[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'.
 
Old 05-04-2011, 01:13 AM   #7
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Rep: Reputation: Disabled
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.
 
  


Reply

Tags
compile, environment variable, java, kde4, path, terminal



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to specify environment variables in KDE anupamsr Linux - Software 4 11-02-2006 09:29 PM
Setting KDE environment variables correctly lykwydchykyn Debian 1 03-27-2006 04:31 PM
Setting Environment Variables for KDE launchers giosue_c Linux - Software 4 02-25-2005 02:48 PM
KDE set environment variables TroelsSmit Linux - Newbie 3 09-06-2004 02:14 PM
KDE environment variables quantum10 Mandriva 1 05-15-2004 06:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration