DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2006

    ptviewer "loading java applet failed"

    Hi I'm trying to use a java applet called ptviewer on my server. It works fine on my local server but after I ftp the files I get the little red X and "loading java applet failed".

    I haven't changed any code, or structure of the directories, does anyone have any ideas? Googled it and maybe it's something to do with needing a .htaccess file but I'm a bit lost. The code for the applet in the html file is:

    <applet code="ptviewer.class" archive="ptviewer.jar" width=300 height=200 id="virtual_applet">
    <param name=file value="img/panos/<? echo $cottage."_".$room ?>.jpg">
    <param name=cursor value="MOVE">
    <param name=pan value=-105>
    <param name=showToolbar value="true">
    <param name=imgLoadFeedback value="false">
    <param name="auto" value="0.08"> <!-- auto rotation speed -->
    <param name="view_width" value="300">
    <param name="view_height" value="200">
    <param name="quality" value="3">
    <param name="pan" value="10">
    <param name="tilt" value="0">
    <param name="fov" value="100">  <!-- starting zoom -->
    <param name="fovmax" value="150">
    <param name="fovmin" value="60">

  2. #2
    Join Date
    Oct 2006
    problem fixed thanks anyway.

    applet tag needed extra attribute for online server as follows (don't know why)

    <applet code="ptviewer.class" archive="ptviewer.jar" codebase="http://www.your_domain.com/jar_file_directory_if_not_root/" width=300 height=200 id="virtual_applet">

Similar Threads

  1. Java book
    By Lou in forum Java
    Replies: 9
    Last Post: 09-19-2007, 05:58 AM
  2. Page-Loading Java Applet
    By SvenLittkowski in forum Java
    Replies: 3
    Last Post: 09-22-2006, 02:19 PM
  3. Java applet window
    By crash75uk in forum Java
    Replies: 1
    Last Post: 04-20-2005, 03:32 PM
  4. Java Applet won't work via browsers
    By Graham in forum Java
    Replies: 1
    Last Post: 02-20-2001, 01:47 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.