Welcome Guest. Please Login or Register  


You are here: Index > Webuzo > General Support > Topic : Default java version



Threaded Mode | Print  

 Default java version (1 Replies, Read 9127 times)
MilesWeb
Group: NOC
Post Group: Newbie
Posts: 26
Status:
Hi Team,

Can you confirm how can we set java8 as the default version ? We have java as well as java8 installed. But, we need java8 as the default version.


-----------------------
MilesWeb.com:: Softaculous Hosting - India - UK - US
IP: --   

Default java version
fintec-mgmt
Group: Member
Post Group: Newbie
Posts: 9
Status:
You can easily manage java with this command.

Code
alternatives --config java


It will show which versions are installed and which engine you want to set as default.

Java version in webuzo is usually 6 months old.
Here is my script. Run as root, then you're all set.

Code

cd /opt
wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/8u73-b02/jre-8u73-linux-x64.tar.gz"
tar -xzvf jre-8u73-linux-x64.tar.gz
cd jre1.8.0_73
alternatives --install /usr/bin/java java /opt/jre1.8.0_73/bin/java 2
alternatives --config java

IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is March 28, 2024, 5:54 pm.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 11  |  Page Created In:0.026