Java 9 install in Ubuntu
1. Add the PPA.
sachin@sachin-E470:~$ sudo add-apt-repository ppa:webupd8team/java
2. Refresh system package cache and install the installer scripts via 2 commands one by one:
sachin@sachin-E470:~$ sudo apt-get update
sachin@sachin-E470:~$ sudo apt-get install oracle-java9-installer -Y
3. Once the script successfully installs Java 9 on your system, you may run command to set java 9 environment variables:
sachin@sachin-E470:~$ sudo apt-get install oracle-java9-set-default
4. Check Java Version
sachin@sachin-E470:~$ java --version
java 9.0.1
Java(TM) SE Runtime Environment (build 9.0.1+11)
Java HotSpot(TM) 64-Bit Server VM (build 9.0.1+11, mixed mode)
Its done.
No comments:
Post a Comment