Originally Posted by lumix
If I said or implied it, I didn't intend to.
For the root stuff, it's only a bad habit that is good to not take. And using root in general doesn't help.
If I open "konsole" or "kate", as myself, and type "env" at the command prompt I get a path without the java directory.
Profile file is read WHEN you logging only, it is not executed again.
So I guess you just made the change and you need to restart your WM.
If you don't want to restart your WM, you have to execute profile in the current shell:
Again, my best advice would really be that you read
man bash , Part invocation
search for "source" in the manpage
Using man and searching:
type what you look for, example INVOCATION
type n for next occurence
type ? to invert direction of searching and then n for going up
type / again to go forward again
type q to quit