Change java version from 1.8.0_161 to 1.8.0_151 Ubuntu 16.04
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
up vote
0
down vote
favorite
I am using ubuntu 16.04 LTS.
...$ java -version
java version "1.8.0_161"
Java(TM) SE Runtime Environment (build 1.8.0_161-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.161-b12, mixed mode)
...$ echo $JAVA_HOME
/usr/lib/jvm/java-8-oracle
I have tried to use multiple versions of java using the answer mentioned is this post.
...$ which java
/usr/bin/java
Downloaded jdk 1.8.0_151 from this link:
http://www.oracle.com/technetwork/java/archive-139210.html
Extracted it in home/b/
then tried the following command as mentioned in the post.
...$ export PATH=/home/b/jdk1.8.0_151/bin:$PATH
... $ which java
/usr/bin/java
I am still getting the same java.
I have also tried:
...$ sudo update-alternatives --config java
here is 1 choice for the alternative java (providing /usr/bin/java).
Selection Path Priority Status
------------------------------------------------------------
0 /usr/lib/jvm/java-8-oracle/jre/bin/java 1081 auto mode
* 1 /usr/lib/jvm/java-8-oracle/jre/bin/java 1081 manual mode
This is my $PATH:
...$ echo $PATH
/home/b/jdk1.8.0_151/bin:/home/junaid/anaconda2/bin:/usr/local/sbin:/usr/local/bin:
/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:
/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin
Should I remove Java and download again? If yes, then how?
java jdk openjdk oracle anaconda
add a comment |Â
up vote
0
down vote
favorite
I am using ubuntu 16.04 LTS.
...$ java -version
java version "1.8.0_161"
Java(TM) SE Runtime Environment (build 1.8.0_161-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.161-b12, mixed mode)
...$ echo $JAVA_HOME
/usr/lib/jvm/java-8-oracle
I have tried to use multiple versions of java using the answer mentioned is this post.
...$ which java
/usr/bin/java
Downloaded jdk 1.8.0_151 from this link:
http://www.oracle.com/technetwork/java/archive-139210.html
Extracted it in home/b/
then tried the following command as mentioned in the post.
...$ export PATH=/home/b/jdk1.8.0_151/bin:$PATH
... $ which java
/usr/bin/java
I am still getting the same java.
I have also tried:
...$ sudo update-alternatives --config java
here is 1 choice for the alternative java (providing /usr/bin/java).
Selection Path Priority Status
------------------------------------------------------------
0 /usr/lib/jvm/java-8-oracle/jre/bin/java 1081 auto mode
* 1 /usr/lib/jvm/java-8-oracle/jre/bin/java 1081 manual mode
This is my $PATH:
...$ echo $PATH
/home/b/jdk1.8.0_151/bin:/home/junaid/anaconda2/bin:/usr/local/sbin:/usr/local/bin:
/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:
/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin
Should I remove Java and download again? If yes, then how?
java jdk openjdk oracle anaconda
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I am using ubuntu 16.04 LTS.
...$ java -version
java version "1.8.0_161"
Java(TM) SE Runtime Environment (build 1.8.0_161-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.161-b12, mixed mode)
...$ echo $JAVA_HOME
/usr/lib/jvm/java-8-oracle
I have tried to use multiple versions of java using the answer mentioned is this post.
...$ which java
/usr/bin/java
Downloaded jdk 1.8.0_151 from this link:
http://www.oracle.com/technetwork/java/archive-139210.html
Extracted it in home/b/
then tried the following command as mentioned in the post.
...$ export PATH=/home/b/jdk1.8.0_151/bin:$PATH
... $ which java
/usr/bin/java
I am still getting the same java.
I have also tried:
...$ sudo update-alternatives --config java
here is 1 choice for the alternative java (providing /usr/bin/java).
Selection Path Priority Status
------------------------------------------------------------
0 /usr/lib/jvm/java-8-oracle/jre/bin/java 1081 auto mode
* 1 /usr/lib/jvm/java-8-oracle/jre/bin/java 1081 manual mode
This is my $PATH:
...$ echo $PATH
/home/b/jdk1.8.0_151/bin:/home/junaid/anaconda2/bin:/usr/local/sbin:/usr/local/bin:
/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:
/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin
Should I remove Java and download again? If yes, then how?
java jdk openjdk oracle anaconda
I am using ubuntu 16.04 LTS.
...$ java -version
java version "1.8.0_161"
Java(TM) SE Runtime Environment (build 1.8.0_161-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.161-b12, mixed mode)
...$ echo $JAVA_HOME
/usr/lib/jvm/java-8-oracle
I have tried to use multiple versions of java using the answer mentioned is this post.
...$ which java
/usr/bin/java
Downloaded jdk 1.8.0_151 from this link:
http://www.oracle.com/technetwork/java/archive-139210.html
Extracted it in home/b/
then tried the following command as mentioned in the post.
...$ export PATH=/home/b/jdk1.8.0_151/bin:$PATH
... $ which java
/usr/bin/java
I am still getting the same java.
I have also tried:
...$ sudo update-alternatives --config java
here is 1 choice for the alternative java (providing /usr/bin/java).
Selection Path Priority Status
------------------------------------------------------------
0 /usr/lib/jvm/java-8-oracle/jre/bin/java 1081 auto mode
* 1 /usr/lib/jvm/java-8-oracle/jre/bin/java 1081 manual mode
This is my $PATH:
...$ echo $PATH
/home/b/jdk1.8.0_151/bin:/home/junaid/anaconda2/bin:/usr/local/sbin:/usr/local/bin:
/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:
/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin
Should I remove Java and download again? If yes, then how?
java jdk openjdk oracle anaconda
java jdk openjdk oracle anaconda
edited Feb 9 at 11:22
![](https://i.stack.imgur.com/QxbAJ.png?s=32&g=1)
![](https://i.stack.imgur.com/QxbAJ.png?s=32&g=1)
Chai T. Rex
3,79711132
3,79711132
asked Feb 9 at 9:57
el323
12315
12315
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
0
down vote
I had an issue as follows:
>Checking build tools versions...
>************************************************************
>You asked for an OpenJDK based build but your version is
>java version "1.8.0_161" Java(TM) SE Runtime Environment (build 1.8.0_161-b12) Java HotSpot(TM) 64-Bit Server VM (build 25.161-b12, mixed mode).
>************************************************************
>build/core/main.mk:175: error: stop.
>09:36:38 ckati failed with: exit status 1
>build/core/main.mk:21: recipe for target 'run_soong_ui' failed
>make: *** [run_soong_ui] Error 1
>#### make failed to build some targets (01:40 (mm:ss)) ####
The issue is solved for me by removing Oracle path from $EXPORT.
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
I had an issue as follows:
>Checking build tools versions...
>************************************************************
>You asked for an OpenJDK based build but your version is
>java version "1.8.0_161" Java(TM) SE Runtime Environment (build 1.8.0_161-b12) Java HotSpot(TM) 64-Bit Server VM (build 25.161-b12, mixed mode).
>************************************************************
>build/core/main.mk:175: error: stop.
>09:36:38 ckati failed with: exit status 1
>build/core/main.mk:21: recipe for target 'run_soong_ui' failed
>make: *** [run_soong_ui] Error 1
>#### make failed to build some targets (01:40 (mm:ss)) ####
The issue is solved for me by removing Oracle path from $EXPORT.
add a comment |Â
up vote
0
down vote
I had an issue as follows:
>Checking build tools versions...
>************************************************************
>You asked for an OpenJDK based build but your version is
>java version "1.8.0_161" Java(TM) SE Runtime Environment (build 1.8.0_161-b12) Java HotSpot(TM) 64-Bit Server VM (build 25.161-b12, mixed mode).
>************************************************************
>build/core/main.mk:175: error: stop.
>09:36:38 ckati failed with: exit status 1
>build/core/main.mk:21: recipe for target 'run_soong_ui' failed
>make: *** [run_soong_ui] Error 1
>#### make failed to build some targets (01:40 (mm:ss)) ####
The issue is solved for me by removing Oracle path from $EXPORT.
add a comment |Â
up vote
0
down vote
up vote
0
down vote
I had an issue as follows:
>Checking build tools versions...
>************************************************************
>You asked for an OpenJDK based build but your version is
>java version "1.8.0_161" Java(TM) SE Runtime Environment (build 1.8.0_161-b12) Java HotSpot(TM) 64-Bit Server VM (build 25.161-b12, mixed mode).
>************************************************************
>build/core/main.mk:175: error: stop.
>09:36:38 ckati failed with: exit status 1
>build/core/main.mk:21: recipe for target 'run_soong_ui' failed
>make: *** [run_soong_ui] Error 1
>#### make failed to build some targets (01:40 (mm:ss)) ####
The issue is solved for me by removing Oracle path from $EXPORT.
I had an issue as follows:
>Checking build tools versions...
>************************************************************
>You asked for an OpenJDK based build but your version is
>java version "1.8.0_161" Java(TM) SE Runtime Environment (build 1.8.0_161-b12) Java HotSpot(TM) 64-Bit Server VM (build 25.161-b12, mixed mode).
>************************************************************
>build/core/main.mk:175: error: stop.
>09:36:38 ckati failed with: exit status 1
>build/core/main.mk:21: recipe for target 'run_soong_ui' failed
>make: *** [run_soong_ui] Error 1
>#### make failed to build some targets (01:40 (mm:ss)) ####
The issue is solved for me by removing Oracle path from $EXPORT.
edited Mar 13 at 5:23
answered Mar 13 at 5:17
Rafeeq Karakkadan
11
11
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1004516%2fchange-java-version-from-1-8-0-161-to-1-8-0-151-ubuntu-16-04%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password