Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 17 of 17

Thread: How to create a sports tables java applet

  1. #1
    Junior Member
    Join Date
    Jul 2013
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default How to create a sports tables java applet

    OK, I'm not sure if ths is the right forum for this but I need help to create something really advanced.

    For many years, I've been using a Java applet for sports tables. Details about it can be found here:

    TeamStats

    It has been very useful for me. However, the recent developments from the people at Oracle have made this program impossible to use. The point is that I need this program and I need it fast.

    I've been in touch with the person who once created this applet and he has no intentions at all to upgrade it or do anything to make it function.

    From Oracle: No help and no reply at all how to make the program works with their new updates.

    And I have no idea how to create a similar program.

    Is there anyone out there who knows about a similar program which I can use or can create it for me?


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,139
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: How to create a sports tables java applet

    You may be able to give the applet permission by setting up a .java.policy file. Take a look at the results of this search: https://www.google.com/#q=using+java+policy+files
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,517
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: How to create a sports tables java applet

    Welcome back! Good luck with your quest.

  4. #4
    Junior Member
    Join Date
    Jul 2013
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: How to create a sports tables java applet

    I'm very sorry but since I'm a beginner at this, I don't have the slightest idea what to do and how to do it. The information in those threads is a bit vague, to say the least.

  5. #5
    Junior Member
    Join Date
    Jul 2013
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: How to create a sports tables java applet

    Sorry, but I have to bump this thread since the content is still actual for me and I also have to add a few things.

    As I've stated before, the recent development on oracle has caused a lot of troubles for me. Some really useful applets and funny applets too have been made totally impossible to use. Not only my beloved TeamStats but some other applets as well, like some game applets and a Stardate clock.

    Since the creators of those items are unavailable, dissapeared, maybe deceased, abducted by aliens and/or simply totally uninterested in making those items available again, I wonder if I can do something about them myself. Just making them work with Java 7 and similar programs.

    Is it possible to get the code and modify it? Or am I threading on dangerous ice now?

    The problem is that I really need some of those applets, especially the sports table applet and I haven't found any suitable "replacements" despite advanced searching on the net. Just expensive programs who aren't half as good and not worth paying for.

    Believe me, if I could create something like TeamStats from scratch, I would have done this a long time ago. But I can't.

  6. #6
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,424
    My Mood
    Hungover
    Thanks
    144
    Thanked 636 Times in 540 Posts

    Default Re: How to create a sports tables java applet

    Quote Originally Posted by Northpower98 View Post
    As I've stated before, the recent development on oracle has caused a lot of troubles for me. Some really useful applets and funny applets too have been made totally impossible to use. Not only my beloved TeamStats but some other applets as well, like some game applets and a Stardate clock.
    Have you tried simply changing your Java security settings?

    Quote Originally Posted by Northpower98 View Post
    Is it possible to get the code and modify it? Or am I threading on dangerous ice now?
    If the developers really have no further interest in the project, you might persuade them to release the source. You could also try something more nefarious, but I wouldn't go that way if I were you.

    Quote Originally Posted by Northpower98 View Post
    Believe me, if I could create something like TeamStats from scratch, I would have done this a long time ago. But I can't.
    I bet you'd be surprised how much you can accomplish once you start trying.
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  7. #7
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,139
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: How to create a sports tables java applet

    I downloaded the page at the link in post#1 with a tool that reads files from a server. I didn't use a browser.
    The page at that address does not have an <APPLET tag in it? What do you do to get to the html page with the applet problem?
    If you don't understand my answer, don't ignore it, ask a question.

  8. #8
    Junior Member
    Join Date
    Jul 2013
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: How to create a sports tables java applet

    Quote Originally Posted by Norm View Post
    I downloaded the page at the link in post#1 with a tool that reads files from a server. I didn't use a browser.
    The page at that address does not have an <APPLET tag in it? What do you do to get to the html page with the applet problem?
    I couldn't access the page to contol this so I've taken an example from my own site for personal use on my computer which was for the Swiss Hockey league.

    A webpage with the applet in the middle showing the standings for the Swiss league should look like this (if there is any help):

    <HTML>
    <HEAD>
    <TITLE>TeamStats - Example</TITLE>
    </HEAD>

    <BODY BGCOLOR="#FF0000" text="#FFFFFF" link="#FFFFFF" alink="#0000FF">
    <CENTER></CENTER>

    <H3 ALIGN=center>Schweiziska ligan</H3>

    <p ALIGN=center><img border="1" src="Switzerland.gif" width="54" height="54"></p>

    <p ALIGN=center>&nbsp;</p>

    <CENTER>

    <APPLET CODE="embe.ts.TeamStats.class" ARCHIVE="embe/ts.zip" WIDTH=580 HEIGHT=480>
    <PARAM NAME=cabbase VALUE=embe/ts.cab>
    <PARAM NAME=Matchfile VALUE=data/schweiz.txt>
    <PARAM NAME=DateChar VALUE=/>
    <PARAM NAME=LeagueName VALUE=Schweiziska ligan>
    <PARAM NAME=Season VALUE=2007-08>
    <PARAM NAME=Line1 VALUE=8>
    <PARAM NAME=SuddenDeath VALUE=true>
    <PARAM NAME=SDWinpoints VALUE=2>
    <PARAM NAME=SDLosspoints VALUE=1>
    </APPLET></CENTER>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p><a href="Schweiz,%20Play-off.html">Play-off</a></p>
    <p>
    <CENTER>
    [ <a href="Tabeller.html">Home </a>]
    </p>
    <HR ALIGN="center" WIDTH="75%">

    <FONT SIZE=-1>Copyright &copy; 1998 Mats Bovin.<BR>
    Comments can be sent to <A HREF="mailto:mats@mbovin.com">mats@mbovin.com</A>
    </FONT><BR><BR>
    </CENTER>

    </BODY>
    </HTML>

    --- Update ---

    Quote Originally Posted by KevinWorkman View Post
    Have you tried simply changing your Java security settings?
    Yes, many times but no luck so far. Besides that, I don't want to meddle too much with security settings. It would be better to make the program work with current settings.



    If the developers really have no further interest in the project, you might persuade them to release the source. You could also try something more nefarious, but I wouldn't go that way if I were you.
    I have tried to peruade those I've managed to reach but no one seems to have the slightest interest to do anything now. A lot of the stuff I've used are actually old ones which did work fine for a long time. I suppose that the creators have moved on to other things.



    I bet you'd be surprised how much you can accomplish once you start trying.
    True, but no luck so far. The sports applet is simply too complicated for me without the original source.

  9. #9
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,139
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: How to create a sports tables java applet

    How do you read and display the html page?
    Where is the ts.zip file located? How can it be loaded for testing?
    What is the full text of the error messages you get?
    If you don't understand my answer, don't ignore it, ask a question.

  10. #10
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,424
    My Mood
    Hungover
    Thanks
    144
    Thanked 636 Times in 540 Posts

    Default Re: How to create a sports tables java applet

    Quote Originally Posted by Northpower98 View Post
    I don't want to meddle too much with security settings. It would be better to make the program work with current settings.
    You have two options: convert the applet to a runnable jar. How easy this is depends on how the jar is setup by the developer.

    Your other option is to buy a certificate, sign the jar yourself (which is a bit shady, especially if other people will be using this jar), and host it yourself.

    Every other option involves either obtaining the source or changing your Java settings.

    Changing your Java settings is the easiest thing to try, but whether that will be enough depends on whether the jar is already signed.
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  11. #11
    Junior Member
    Join Date
    Jul 2013
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: How to create a sports tables java applet

    Quote Originally Posted by Norm View Post
    How do you read and display the html page?
    Where is the ts.zip file located? How can it be loaded for testing?
    What is the full text of the error messages you get?
    I'm not sure how to describe that. Should I post some screenshots?

    The full text of the error message says: Security settings has blocked an application to run with an out of date or obsolete version of Java.

  12. #12
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,139
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: How to create a sports tables java applet

    What security setting level is set in the Java icon in the Control Panel? Have you tried the lowest setting?

    There also is a place in the Java Icon's Security page to list Exception Sites? Have you tried using that?

    Where are all the files in the program? Are they on your local disk?
    If you don't understand my answer, don't ignore it, ask a question.

  13. #13
    Junior Member
    Join Date
    Jul 2013
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: How to create a sports tables java applet

    Quote Originally Posted by Norm View Post
    What security setting level is set in the Java icon in the Control Panel? Have you tried the lowest setting?

    There also is a place in the Java Icon's Security page to list Exception Sites? Have you tried using that?

    Where are all the files in the program? Are they on your local disk?
    I've tried both options, the security setting level and the exception sites option. Still the same result with the same message about out of date and obsolete version of Java.

    All files are on my local disc.

  14. #14
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,424
    My Mood
    Hungover
    Thanks
    144
    Thanked 636 Times in 540 Posts

    Default Re: How to create a sports tables java applet

    I believe that no matter what security setting you use, the jar still needs to be signed. This is a relatively new "feature".

    You either need to sign and host the jar yourself, or try to use the jar as a runnable jar. This will only work if the program has an application entry point (a main method) as well as an Applet entry point.

    Any other approaches require obtaining the source.
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  15. #15
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,139
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: How to create a sports tables java applet

    the jar still needs to be signed.
    I have an unsigned jar file containing an applet that I am able to execute in a browser. I have an entry in the Exceptions list and an entry in the .java.policy file.

    The app: I've downloaded the java tutorial to a local disk and changed its Search button to call my search applet so I can search the html files in the tutorial for selected Strings. The applet returns a html page similar to what an internet search program returns: some text from the file with a link to the file.

    It is possible to wrap an applet with a desktop program that replaces the browser and provides AppletContext support for the applet.
    If you don't understand my answer, don't ignore it, ask a question.

  16. #16
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,424
    My Mood
    Hungover
    Thanks
    144
    Thanked 636 Times in 540 Posts

    Default Re: How to create a sports tables java applet

    Quote Originally Posted by Norm View Post
    I have an unsigned jar file containing an applet that I am able to execute in a browser. I have an entry in the Exceptions list and an entry in the .java.policy file.
    Interesting. I've tried the exception list and the security setting, but not the policy file. That must be the ticket.

    Quote Originally Posted by Norm View Post
    It is possible to wrap an applet with a desktop program that replaces the browser and provides AppletContext support for the applet.
    True. Shove the JApplet inside a JFrame. Clever.

    OP: Ignore me, listen to Norm. :p
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  17. #17
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,139
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: How to create a sports tables java applet

    Applets are quite old so naturally I've had several years playing with them and fighting with browsers to get them to work. My SearchFiles program is from 2002, my appletwrapper's last change was in 2007.

    That must be the ticket.
    Not completely. On my netbook with JRE version 1.7.0_67-b01 that was all that I needed. On my PC with a very recent version of the JRE, I needed to add a line to a properties file. See: http://stackoverflow.com/questions/1...sions-1-7-0-45
    The .java.policy file was ignored without that change.
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. Replies: 5
    Last Post: December 6th, 2013, 12:07 PM
  2. Replies: 1
    Last Post: October 29th, 2013, 09:04 AM
  3. Replies: 1
    Last Post: October 29th, 2013, 09:04 AM
  4. Replies: 1
    Last Post: September 27th, 2012, 11:08 AM
  5. Replies: 10
    Last Post: January 12th, 2011, 05:48 AM