SageTV Community  

Go Back   SageTV Community > SageTV Products > SageTV Linux

Notices

SageTV Linux Discussion related to the SageTV Media Center for Linux. Questions, issues, problems, suggestions, etc. relating to the SageTV Linux should be posted here.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 05-30-2021, 05:14 AM
phantomii phantomii is offline
Sage Advanced User
 
Join Date: Mar 2009
Location: North Carolina
Posts: 192
Multiple Installed, how to select Java Version for Sage Use

I have two versions of Java installed on my SageTV Server (ubuntu 18). THey are versions 11 and 8. 11 was installed when I built the server but wanted to switch to 8 to test some things. I found this command line and it appears to work.

sudo update-alternatives --config javac

After running this I see these results:

sagetv@SageTV-Server:~$ sudo update-alternatives --config javac
[sudo] password for sagetv:
There are 2 choices for the alternative javac (providing /usr/bin/javac).

Selection Path Priority Status
------------------------------------------------------------
0 /usr/lib/jvm/java-11-openjdk-amd64/bin/javac 1111 auto mode
1 /usr/lib/jvm/java-11-openjdk-amd64/bin/javac 1111 manual mode
* 2 /usr/lib/jvm/java-8-openjdk-amd64/bin/javac 1081 manual mode

Press <enter> to keep the current choice[*], or type selection number:

Even though it appears that Java 8 is the active version, when looking at the info tab in the sage client GUI on the Android Mini Client, it still shows version 11.11. Is there something else that need to be done to get this to switch???
Reply With Quote
  #2  
Old 05-30-2021, 05:49 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,685
javac the java "compiler" so what you want is just 'java'.
Reply With Quote
  #3  
Old 05-30-2021, 06:57 AM
phantomii phantomii is offline
Sage Advanced User
 
Join Date: Mar 2009
Location: North Carolina
Posts: 192
Thanks so much for the quick response.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to force Sage to use a newer version of Java? rsteele SageTV Software 7 12-18-2015 12:22 PM
Which version of Java is bundled with Sage V7? KKnox SageTV Software 4 12-04-2010 11:31 AM
Java update on WHS version of Sage? Slipshod SageTV Software 4 04-14-2008 01:03 PM
sage tv won't work when java access bridge is installed, arg!!! (hairpulling!!) whocrazy SageTV Software 7 11-20-2006 12:16 AM
Best version of java for dedicated Sage server? blade SageTV Software 2 09-22-2006 01:11 PM


All times are GMT -6. The time now is 06:38 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.