Skip to content

Commit ad93dc3

Browse files
committed
update
1 parent 6e3c018 commit ad93dc3

File tree

3 files changed

+242
-92
lines changed

3 files changed

+242
-92
lines changed

README.md

Lines changed: 60 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
Oracle Java Installer
22
====================
33

4-
Oracle java (jdk/jre) installler script for linux. It simplifies the installation of Oracle java from a [download](http://www.oracle.com/technetwork/java/javase/downloads/index.html)ed source (tar.gz). It also maintains consistency among multiple versions of java (jdk/jre) installed with this script. Uninstalling any java version installed with this script will fall back to the next most recently installed (with this script) version of java.
4+
Oracle java (jdk/jre) installler script for linux. It simplifies the installation of Oracle java from a [download](http://www.oracle.com/technetwork/java/javase/downloads/index.html)ed source (tar.gz). It also maintains consistency among multiple versions of java (jdk/jre). Uninstalling any java version installed with this script will fall back to the next most recently installed version of java.
55

66
Install oraji:
77
=====================
88

9-
Give the <span class="light-quote">install.sh</span> file execution permission and run it in terminal (with root privillege).
9+
Give the <span class="light-quote">install.sh</span> file execution permission and run it in terminal (with root privilege).
1010

1111
```sh
1212
sudo ./install.sh
@@ -36,9 +36,8 @@ Java Uninstallation Instruction:
3636
============================
3737

3838
1. Run `oraji -u` (or `path/to/oraji -u` if you didn't install the *oraji* script).
39-
2. It will ask for java version. An auto detected version is provided as suggestion. If that is correct, just hit <kbd>Enter</kbd> without making any changes.
40-
3. Otherwise if the java version provided by default isn't correct (this shouldn't happen), provide manually and then hit <kbd>Enter</kbd>.
41-
4. The version can be provided as command line argument too i.e `oraji -u version` (or `/path/to/oraji -u version` if you didn't install the script).
39+
2. Choose the version to be uninstalled from the list.
40+
3. The version can be provided as command line argument too i.e `oraji -u version` (or `/path/to/oraji -u version` if you didn't install the script).
4241

4342
**Note:**
4443

@@ -48,20 +47,58 @@ Java Uninstallation Instruction:
4847

4948
**N.B:** The uninstallation method is only for the oracle java installed with the `oraji` script. It deletes the `/usr/lib/jvm/jdk|jre<version_number>` directory and all exports and environment variables that was included in */etc/profile* by oraji and the mozilla plugin. If a fall back java is available, exports and environment variables will be available for this java version and mozilla plugin will be restored.
5049

50+
51+
Manage multiple Java versions:
52+
===========================
53+
You can install multiple Java versions and set whichever version you want as your current Java.
54+
55+
To check which version of Java is currently active (with all other available Java versions) run:
56+
57+
```sh
58+
oraji -c
59+
```
60+
61+
To activate a Java version, run:
62+
63+
```sh
64+
sudo oraji -s
65+
```
66+
and select the version from the list.
67+
68+
69+
Options:
70+
=======
71+
72+
Option | Alt. Option | Details
73+
---- | ------ | -----
74+
`-v` | `--version` | Show version
75+
`-h` | `--help` | Show help
76+
`-i` | `--install` | Install from a archive path
77+
`-u` | `--uninstall` | Uninstall java
78+
`-s` | `--set` | Set a java version
79+
`-c` | `--check` | Show the installed java versions
80+
81+
5182
#ChangeLog:
5283

53-
###`3.0.0`: <span class="light-quote">Tue Dec 22 19:32:07 UTC 2015</span>
84+
###`4.1.0`: <span class="light-quote">Tue Aug 23 23:38:01 UTC 2016</span>
5485

55-
1. Improved portability.
56-
2. Lot's of bug fixed.
57-
3. Comprehensive install of java which makes it usable for java developers.
86+
1. `-s` option to activate an installed Java version
87+
2. `-c` option to check installed Java version
88+
3. `-h` option for help
89+
4. `-i` option for an alternative to provide archive path
5890

59-
###`3.0.1`: <span class="light-quote">Tue Dec 22 20:58:42 UTC 2015</span>
91+
###`4.0.2`: <span class="light-quote">Sat Jan 9 16:16:23 UTC 2016</span>
6092

61-
1. Added some extra environment variables besides JAVA_HOME.
62-
2. Updated PATH environment variables with some new paths.
63-
3. JAVA_HOME is no longer deleted by uninstall script.
64-
4. Multiple java version management.
93+
1. Improved environment variable management for multiple java version.
94+
2. Minor bug fix.
95+
3. Manual added. Can be accessed with `man oraji`.
96+
97+
###`4.0.1`: <span class="light-quote">Wed Dec 23 04:34:25 UTC 2015</span>
98+
99+
1. Input prompt improved.
100+
2. tilde (~) expansion supported in input prompt.
101+
3. Minor bug fix
65102

66103
###`4.0.0`: <span class="light-quote">Tue Dec 22 23:37:16 UTC 2015</span>
67104

@@ -74,17 +111,18 @@ Java Uninstallation Instruction:
74111
6. `oraji -u` to uninstall java.
75112
7. Internal multiple java version management.
76113

77-
###`4.0.1`: <span class="light-quote">Wed Dec 23 04:34:25 UTC 2015</span>
114+
###`3.0.1`: <span class="light-quote">Tue Dec 22 20:58:42 UTC 2015</span>
78115

79-
1. Input prompt improved.
80-
2. tilde (~) expansion supported in input prompt.
81-
3. Minor bug fix
116+
1. Added some extra environment variables besides JAVA_HOME.
117+
2. Updated PATH environment variables with some new paths.
118+
3. JAVA_HOME is no longer deleted by uninstall script.
119+
4. Multiple java version management.
82120

83-
###`4.0.2`: <span class="light-quote">Sat Jan 9 16:16:23 UTC 2016</span>
121+
###`3.0.0`: <span class="light-quote">Tue Dec 22 19:32:07 UTC 2015</span>
84122

85-
1. Improved environment variable management for multiple java version.
86-
2. Minor bug fix.
87-
3. Manual added. Can be accessed with `man oraji`.
123+
1. Improved portability.
124+
2. Lot's of bug fixed.
125+
3. Comprehensive install of java which makes it usable for java developers.
88126

89127
Tested OS:
90128
=============

0 commit comments

Comments
 (0)