xterm and gnome can't find Java I just installed Sun's JRE (v1.5.0_01), and LimeWire 4.6.0. I updated my /etc/profile file.
When I open a GNOME Terminal, and try to run LimeWire, it can't find my JRE. Apparently, neither GNOME Terminals nor X Terminals run /etc/profile, so my path doesn't get set appropriately. Yes, I can manually source /etc/profile, and then Java works fine. But I don' t want to have to do this every time. Is there any way to automatically set my path, so that GNOME and X Terminals inherit this updated path? (I want to do this system-wide, not just for one user.)
Similarly, I really want to run LimeWire from the Gnome menu. However, when I try this (either via a shortcut, or via the Run Application dialog), nothing happens. I suspect that whatever path Gnome is using isn't set by /etc/profile. Any thoughts on how to change this path? (preferably system-wide)
As a last resort, I edited "runLime.sh", and sourced /etc/profile within it. This is far from ideal. Any global fixes (which would enable me to run other Java apps from within Gnome) would be greatly appreciated. |