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 09-06-2006, 04:40 PM
beelzerob beelzerob is offline
Sage Advanced User
 
Join Date: May 2006
Posts: 163
Java version error....

So, someone testing my plugin tried it on an older Sage client of theirs, and got a java version error. I suggested they update to the latest JRE and see if that fixed it...and it did.

Someone else, though, said that updating the JRE might break other things in Sage and so it would be best to use the version of JRE that came with/in Sage.

Maybe he had an older version of Sage, and that's why it's java was the wrong version?? Is telling people to update to the latest JRE good advice when they go to use my plugin? I notice that none of nielm's install stuff mentions doing that, even though it uses Java, which makes me think it's not a good idea to update the JRE independant of Sage.
Reply With Quote
  #2  
Old 09-06-2006, 04:56 PM
blade blade is offline
SageTVaholic
 
Join Date: Jan 2005
Posts: 2,500
The newer versions of java have memory leaks. I've used some of the broken 1.5_xx versions without problems, but it is a documented bug and has given others fits.

If I were to suggest someone upgrade I'd point out the other problems it can cause. At least if they start having other problems they'd know it is likely due to java.
Reply With Quote
  #3  
Old 09-06-2006, 06:10 PM
GKusnick's Avatar
GKusnick GKusnick is offline
SageTVaholic
 
Join Date: Dec 2005
Posts: 5,083
This is a real dilemma for plugin developers. To be conservative, you should do your Java coding to the 1.4 platform, since that's what Sage ships with and recommends. However there are a lot of language and API improvements in Java 1.5 that make it a much better platform for development (in my opinion). Unfortunately these new features aren't backward-compatible with the 1.4 runtime. I cut my Java teeth on 1.5, back when that was the version that shipped with Sage, and by now it's much too late for me to revert to 1.4 without a lot of agony. But if you're starting out fresh with new code, you might be well advised to forego the 1.5 features and stick with 1.4 for now.

There is a Java 1.6 platform in beta test now, and there's some hope that it may resolve these issues and allow us all to move forward with Java instead of backward, but there's been no official word yet from the Sage devs on that.
__________________
-- Greg
Reply With Quote
  #4  
Old 09-06-2006, 06:14 PM
beelzerob beelzerob is offline
Sage Advanced User
 
Join Date: May 2006
Posts: 163
Heh..I didn't know any better to be concerned about this when I started...I just figured it's best to get the latest.

I guess I can warn people they may need to install the latest java JRE, but doing so may break other things. There....that puts the risky decision back in their hands.
Reply With Quote
  #5  
Old 09-07-2006, 12:31 AM
nielm's Avatar
nielm nielm is offline
SageTVaholic
 
Join Date: Oct 2003
Location: Belgium
Posts: 4,496
There is a SF project called retroweaver which converts Java code compliled to Java 5 (1.5) standards to run on a Java 1.4 JRE...

I write all my stuff to Java 1.4 (and cry every time I need an enum!).
__________________
Check out my enhancements for Sage in the Sage Customisations and Sageplugins Wiki
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


All times are GMT -6. The time now is 01:42 PM.


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