aspose file tools*
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
Author

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
Sheriff

Joined: Oct 13, 2005
Posts: 39388
    
  28
Try
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
Sheriff

Joined: Oct 13, 2005
Posts: 39388
    
  28
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?
 
 
subject: Envernment variable setting in kubuntu.