Re: Environment variables for Debian (e.g. JAVA_HOME, etc)
Em Sex, 2004-09-03 às 02:40, Sami Dalouche escreveu:
> Once again let's look at java packages. In order to correctly use a JDK, you
> need to have the /usr/j2sdk/bin directory in your path. As far as I saw,
> make-jpkg doesn't create wrappers for every executable in /usr/lib/j2sdk/bin,
> nor does it create symlinks to /usr/bin/ for them.
> So, even after installing the .deb, java is not useable right away. Solutions :
> - export PATH=$PATH:/usr/j2sdk/bin
> - for i in /usr/j2sdk/bin/* ; do ln -s $i /usr/bin/ ; done
> - create a wrapper script for every executable
> - others ?
Hmmm... Isn't update-alternatives the correct way of doing this? At
least this is what I do after installing Sun's JVM... And, yes, creating
a wrapper script (if you need JAVA_HOME setted) is the correct way
(according to the policy)
daniel
Reply to: