SageTV Community  

Go Back   SageTV Community > SageTV Products > SageTV Linux
Forum Rules FAQs Community Downloads Today's Posts Search

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 06-01-2022, 03:36 PM
boukmandutty boukmandutty is offline
Sage Advanced User
 
Join Date: Oct 2011
Location: Norman OK
Posts: 199
Cant seem to do my own build anymore

For some reason I cant seem to compile. I even tried on a machine I had previously compiled and installed on and get this error.

Code:
> Task :updateBuildNumber
[ant:exec] The command attribute is deprecated.
Please use the executable attribute and nested arg elements.
Backed up java/sage/SageConstants.java
SAGETV VERSION 9.2.8.989_amd64

> Task :compileJava FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileJava'.
> invalid flag: --release

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.3.3/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 3s
2 actionable tasks: 2 executed
Reply With Quote
  #2  
Old 06-01-2022, 07:01 PM
jusjoken jusjoken is offline
SageTVaholic
 
Join Date: Dec 2005
Location: Strathmore, AB
Posts: 2,727
What version JDK do you have on your build machine?

JDK 11 is needed now and if building on Ubuntu 18.04 works well

Look here for the issue we resolved using JDK11... https://github.com/google/sagetv/issues/468

K
__________________
If you wish to see what I am up to and support my efforts visit my Patreon page

Last edited by jusjoken; 06-01-2022 at 07:07 PM.
Reply With Quote
  #3  
Old 06-01-2022, 07:12 PM
boukmandutty boukmandutty is offline
Sage Advanced User
 
Join Date: Oct 2011
Location: Norman OK
Posts: 199
Ohhh. I was using oracle java 8. I was finding that scans for metadata form within sagetv only worked for me when I use that version. I will update, compile and switch back to version 8 if the problem returns.

UPDATE:
Still no luck. Getting the same error even with java 11 selected.

Quote:
sagetv/build$ java -version
openjdk version "11.0.15" 2022-04-19
OpenJDK Runtime Environment (build 11.0.15+10-Ubuntu-0ubuntu0.22.04.1)
OpenJDK 64-Bit Server VM (build 11.0.15+10-Ubuntu-0ubuntu0.22.04.1, mixed mode, sharing)
I notice the machine I previously compiled on doesnt compile anymore either, no matter which version of java i select and set as home (export JDK_HOME=).

Quote:
sudo update-alternatives --config java
Output.
Quote:
There are 3 choices for the alternative java (providing /usr/bin/java).

Selection Path Priority Status
------------------------------------------------------------
0 /usr/lib/jvm/java-17-openjdk-amd64/bin/java 1711 auto mode
1 /opt/jdk/jdk1.8.0_321/bin/java 100 manual mode
* 2 /usr/lib/jvm/java-11-openjdk-amd64/bin/java 1111 manual mode
3 /usr/lib/jvm/java-17-openjdk-amd64/bin/java 1711 manual mode

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

Last edited by boukmandutty; 06-01-2022 at 07:49 PM.
Reply With Quote
  #4  
Old 06-01-2022, 09:11 PM
jusjoken jusjoken is offline
SageTVaholic
 
Join Date: Dec 2005
Location: Strathmore, AB
Posts: 2,727
The build script should build a jar using jdk 11 that will run on Java 8+ so you can continue using Java 8 when running the server.

I will pull the latest from GitHub and try my build environment and let you know.

K
__________________
If you wish to see what I am up to and support my efforts visit my Patreon page
Reply With Quote
Reply


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

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
Can't search for anything anymore... Biggen Batch Metadata Tools 27 04-30-2011 07:28 PM
Cannot see TV episodes anymore Deano Sage My Movies 7 12-18-2010 01:32 PM
ATI All in Wonder not recognized anymore Julianus SageTV Beta Test Software 2 04-09-2006 05:14 PM
Not Full Screen Anymore DFA SageTV Software 27 01-23-2006 07:42 PM
No new STV development anymore? 1972 SageTV Customizations 2 04-27-2005 12:57 AM


All times are GMT -6. The time now is 11:09 AM.


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