must point to the JDK installation folder (so that
contains all executables and
contains all default
If I download Sun's JDK bundle and installs it in Linux, it is the same procedure.
However, I need to use Kubuntu's default OpenJDK package. The problem is that all executables are placed in
. But the jars are placed in
. Since they are not under the same
folder I'm having trouble with Grails and maybe there will be trouble with other applications that expect the standard Java structure.
- If I use:
All applications and scripts that want to use any Java executable can use the standard procedure
. However, since the jars are in a different place, they are not always found (example: in grails I'm getting
- On the other hand, if I use:
None of the Java executables (
, etc.) can be found.
So, what is the correct way of handling the
variable in a Debian-based Linux?
Thanks for your help,