You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+60-22Lines changed: 60 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,12 @@
1
1
Oracle Java Installer
2
2
====================
3
3
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.
5
5
6
6
Install oraji:
7
7
=====================
8
8
9
-
Give the <spanclass="light-quote">install.sh</span> file execution permission and run it in terminal (with root privillege).
9
+
Give the <spanclass="light-quote">install.sh</span> file execution permission and run it in terminal (with root privilege).
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).
**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.
50
49
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
+
51
82
#ChangeLog:
52
83
53
-
###`3.0.0`: <spanclass="light-quote">Tue Dec 22 19:32:07 UTC 2015</span>
84
+
###`4.1.0`: <spanclass="light-quote">Tue Aug 23 23:38:01 UTC 2016</span>
54
85
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
58
90
59
-
###`3.0.1`: <spanclass="light-quote">Tue Dec 22 20:58:42 UTC 2015</span>
91
+
###`4.0.2`: <spanclass="light-quote">Sat Jan 9 16:16:23 UTC 2016</span>
60
92
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`: <spanclass="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
65
102
66
103
###`4.0.0`: <spanclass="light-quote">Tue Dec 22 23:37:16 UTC 2015</span>
0 commit comments