DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2

Hybrid View

  1. #1
    Join Date
    Oct 2006
    Posts
    2

    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:

    Code:
    <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">
    </applet>

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

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

    Code:
    <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

Bookmarks

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
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links