SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV Studio
Forum Rules FAQs Community Downloads Today's Posts Search

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 08-04-2010, 09:30 PM
chrishallowell chrishallowell is offline
Sage Advanced User
 
Join Date: Jan 2008
Posts: 169
How to: Access my java classes in Studio

Hi all,

I'm having a hard time figuring out how Studio and custom java classes implement together. I have gone through the Studio_Tutorials.xml and that was excellent but I didn't see anything that relates to custom java classes.

How do I access my java classes in Studio? (These do not use any SageTV related methods.)

More specifically:
1. How do I tell Studio that there is a new jar file that has AClass.class in it?

2. Where do I put this code in Studio to populate an item?
AClass = new AClass();
string = AClass.returnAString();

Edit: I found the below thread so I think I just need to know about #1 now.
http://forums.sagetv.com/forums/showthread.php?t=13962

Last edited by chrishallowell; 08-04-2010 at 09:39 PM.
Reply With Quote
  #2  
Old 08-04-2010, 09:43 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
For #1, just put your jar in the JARs folder and restart SageTV. Studio automatically loads all jars found in the JARs folder, but you must restart Sage after adding a jar in order for Studio to "see" the new jar.
__________________
Twitter: @ddb_db
Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive
Capture: 2 x Colossus
STB Controller: 1 x USB-UIRT
Software:Java 1.7.0_71; SageTV 7.1.9
Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter
Plugins: Too many to list now...
Reply With Quote
  #3  
Old 08-04-2010, 09:48 PM
chrishallowell chrishallowell is offline
Sage Advanced User
 
Join Date: Jan 2008
Posts: 169
Thanks Slugger! Sounds easy enough.
Reply With Quote
  #4  
Old 08-04-2010, 11:12 PM
GKusnick's Avatar
GKusnick GKusnick is offline
SageTVaholic
 
Join Date: Dec 2005
Posts: 5,083
Regarding #2, p. 151 of the Studio manual tells you how to do it. Where you do it depends on what you're trying to do.
__________________
-- Greg
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
java file access from an extender jphipps SageTV Studio 7 06-11-2009 08:55 PM
Help calling Java from Studio Tiki SageTV Studio 3 12-31-2008 12:51 PM
Testing Sagetv with Java Access bridge nallan SageTV Software 0 04-01-2006 07:31 PM
Calling custom java classes from studio davin SageTV Studio 9 11-09-2005 11:50 AM
Access .NET (dll) From Studio? deria SageTV Studio 5 11-04-2005 01:55 AM


All times are GMT -6. The time now is 06:08 PM.


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