I download jdk .bin file for linux . how to install it that all of the features enable in every where .
feedback
|
|
you must set Environment variable: do something like this:
| |||
|
feedback
|
|
Personally I am not a big fan of JAVA_HOME and the like. It speaks of global, unscoped data, and that is a bad thing. I prefer to just have symbolic links in /usr/bin and leave it at that (still global data, but less of it because most likely you will still require the symbolic links anyway). When installing from a .bin these are the steps I take: 1) Execute the .bin file. This creates a directory with the JDK inside 2) Move the directory to a shared system location. I use /usr/java. You may chose /usr/share/java, /opt and so on 3) Create symbolic links in /usr/bin for java. javac and the other executables Some applications DEMAND a JAVA_HOME (e.g. Tomcat). If this is the case I do a:
| |||||||
|
feedback
|
|
I unpack it in
| |||
|
feedback
|