More in this section

Forums / Developing with Sitefinity / Java Applet Not Working

Java Applet Not Working

5 posts, 0 answered
  1. briankb
    briankb avatar
    56 posts
    Registered:
    23 Feb 2004
    10 Mar 2008
    Link to this post
    I have a Java applet that we have to use with a new sitefinity website.

    I created a custom user control and for testing embedded it into a blank page that uses one of the master pages(templates) we are using on the sitefinity set. It works. However when I drop/drag the user control onto a real sitefinity generated page it does not fire off the applet.

    I've submitted a ticket with live links but I'm hoping for a faster response here in the forum.
  2. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    11 Mar 2008
    Link to this post
    Hi Briankb,

    There is definitely something wrong in paths with the uploaded java files, and <applet> tag.
    We have created custom control with embedded Java Applet, and were able to insert (drag-and-drop) this control to a page.
    Please, make sure that :

    1. You have uploaded the Java class-files and all other Java-resource files to your project;
    2. Written the codebase property of <applet> correctly. You should write as a value the full URL address to your directory where you store the java class files.
    3. The code property holds a relative path to the codebase property, so you can simply enter the class name of the java applet.

    That is all we have followed, and we had no problems at all with including a control with java applet on a page.
    Let us know if you need any further assistance.

    Sincerely yours,
    Georgi
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. briankb
    briankb avatar
    56 posts
    Registered:
    23 Feb 2004
    11 Mar 2008
    Link to this post
    I think this is specific to the Java applet I have to run. Apparently it must be run inside the "java" folder because it references other folder under the java folder.

    This is a little out there for an idea but is it possible to create a sitefinity page in an existing directory, like the java folder?
  4. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    11 Mar 2008
    Link to this post
    Hi Briankb,

    Yes, it is possible to create such page. Simply create a page outside Sitefinity, upload it to your java directory. Then go to the administration, and add this page to the sitemap as an external page. This is the only way.

    But I think that if you set the codebase property like this :

    <applet codebase="http://yourdomain.com/java/"  
            code="MyClass.class"  
            width=...  
            height=...  
    /> 

    Here /java is your directory where you store the java files, and MyClass.class your base java class, it should work fine.

    Kind regards,
    Georgi
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  5. briankb
    briankb avatar
    56 posts
    Registered:
    23 Feb 2004
    11 Mar 2008
    Link to this post
    thanks! that did the trick.
Register for webinar
5 posts, 0 answered