java:java7onlinux
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| java:java7onlinux [2012/02/27 22:46] – [Create an alteratives system for the new java] rlunaro | java:java7onlinux [2022/12/02 21:02] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 6: | Line 6: | ||
| I reproduce them for just in case the other site dissapears the entry. | I reproduce them for just in case the other site dissapears the entry. | ||
| + | |||
| + | [[InstallJdk8AlternativesUbuntu|The same for Java 8]] | ||
| ===== Download and uncompress java ===== | ===== Download and uncompress java ===== | ||
| Line 125: | Line 127: | ||
| And after that, run '' | And after that, run '' | ||
| + | |||
| + | ===== Set the JAVA_HOME and JAVA_ROOT for all users ===== | ||
| + | |||
| + | In the ''/ | ||
| + | |||
| + | **alljava.csh** | ||
| + | |||
| + | <code shell> | ||
| + | # | ||
| + | # / | ||
| + | # | ||
| + | |||
| + | # | ||
| + | # This script sets some environment variables for default java. | ||
| + | # Affected variables: JAVA_BINDIR, | ||
| + | # | ||
| + | # | ||
| + | |||
| + | setenv JAVA_ROOT / | ||
| + | setenv JAVA_HOME / | ||
| + | setenv JAVA_BINDIR / | ||
| + | |||
| + | |||
| + | |||
| + | </ | ||
| + | |||
| + | **alljava.sh** | ||
| + | |||
| + | <code shell> | ||
| + | # | ||
| + | # / | ||
| + | # | ||
| + | |||
| + | export JAVA_ROOT=/ | ||
| + | export JAVA_HOME=/ | ||
| + | export JAVA_BINDIR=/ | ||
| + | unset JDK_HOME | ||
| + | unset SDK_HOME | ||
| + | |||
| + | |||
| + | |||
| + | </ | ||
| + | |||
| + | |||
java/java7onlinux.1330382770.txt.gz · Last modified: 2022/12/02 21:02 (external edit)
