SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV Studio

Notices

SageTV Studio Discussion related to the SageTV Studio application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the Studio software application should be posted here.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-16-2016, 11:44 AM
CollegeProject CollegeProject is offline
Sage Advanced User
 
Join Date: Aug 2016
Location: USA
Posts: 119
Load custom Jar

Is a plugin required to load a custom class or does just putting in the JARs folder and restarting the service get it loaded?
Reply With Quote
  #2  
Old 09-16-2016, 12:25 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,541
Quote:
Originally Posted by CollegeProject View Post
Is a plugin required to load a custom class or does just putting in the JARs folder and restarting the service get it loaded?
Adding jar to JARs folder is all that is needed for sagetv to know about it
Reply With Quote
  #3  
Old 09-16-2016, 12:53 PM
CollegeProject CollegeProject is offline
Sage Advanced User
 
Join Date: Aug 2016
Location: USA
Posts: 119
That's what I thought it appears my issue is with eclipse. The jar is exporting ok but for some reason it isn't putting my class's under their package if I inspect the Jar file.

Anyone familiar with why Eclipse would do this and how to stop it from doing it?
Reply With Quote
  #4  
Old 09-16-2016, 01:36 PM
CollegeProject CollegeProject is offline
Sage Advanced User
 
Join Date: Aug 2016
Location: USA
Posts: 119
Ok I switched to netbeans which I know better and the jar is compiling correctly now however I am still unable to make the call from within the STV. The log shows the jar in classes that are loaded but when I try and make a call I get

Quote:
Fri 9/16 14:33:35.248 [AWT-EventQueue-0@1d4f279] Catbert Method Lookup Failure for:SCP_MediaCalls_GetAllTVFiles
Fri 9/16 14:33:35.256 [AWT-EventQueue-0@1d4f279] java.lang.UnsupportedClassVersionError: SCP/MediaCalls : Unsupported major.minor version 52.0
Fri 9/16 14:33:35.258 [AWT-EventQueue-0@1d4f279] Parsing Error: Unexpected ")" at column 30.
It's odd because I believe I am calling it right

Code:
package_class_method()
Reply With Quote
  #5  
Old 09-16-2016, 01:42 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,541
So... nothing wrong with your IDE... but the UnussportedClassVersion error should give a clue... My guess is you are building with Java 8 but deploying to Java 7... so either make both java 7 or both java 8
Reply With Quote
  #6  
Old 09-16-2016, 01:44 PM
CollegeProject CollegeProject is offline
Sage Advanced User
 
Join Date: Aug 2016
Location: USA
Posts: 119
Quote:
Originally Posted by stuckless View Post
So... nothing wrong with your IDE... but the UnussportedClassVersion error should give a clue... My guess is you are building with Java 8 but deploying to Java 7... so either make both java 7 or both java 8
Ya I guessed that and you are correct I could have sworn I had it set to 1.7 thanks!!
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
Using the default STV in Custom STV Mode from custom STVs (v6.4 & later) Opus4 SageTV Studio 49 09-23-2011 05:50 PM
CPU Load KipKasper SageTV Software 3 03-30-2009 10:34 PM
WHS PP2 who is going to load it PLUCKYHD General Discussion 17 03-26-2009 07:53 AM
What is the easiest way to assign custom command to the custom button? thenewguy1979 SageTV Software 0 09-14-2008 01:13 PM
Won't Load justlearnin SageTV Beta Test Software 3 08-13-2003 12:56 PM


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


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