permaculture playing cards*
The moose likes Beginning Java and the fly likes Envernment variable setting in kubuntu. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Envernment variable setting in kubuntu." Watch "Envernment variable setting in kubuntu." New topic

Envernment variable setting in kubuntu.

Ashok Pradhan
Ranch Hand

Joined: Dec 17, 2007
Posts: 180

How to set the PATH in kubuntu .I have installed it in /home/ashok/ directory .Thanks in advance
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 37970
export PATH=/home/ashok/bin/:$PATH
when you open a shell.

That is actually probably wrong. You would probably want /home/ashok/jdk1.6.0_06/bin/:$PATH

And try this Ubuntu forums page.
Mark Freeman
Ranch Hand

Joined: Aug 02, 2006
Posts: 40
Try adding those lines to the end of the .bashrc file in your home directory. That way, every time your shell starts, the path will be correct.
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 37970
Is there a .bashrc file in Kubuntu? I know there is in Ubuntu, but it might be different with the K. It all depends on which shell you are using.

It is worthwhile adding that sort of thing at the end of the .bashrc file, and if that doesn't work, search a Linux forum on the web and find which file you need to edit.

By the way: You do realise the . before bashrc means it is a hidden file?
I agree. Here's the link:
subject: Envernment variable setting in kubuntu.
Similar Threads
What is the best linux distro to use for a programmer...
Where to put questions regarding Hybernet?
Java 6 System Tray does not work
Intrepid Ibex
How to be notified when a user is using my application and locks their computer.