Java Applet Problem, Please Help

Author Message

Fraser Hore

Monday 15 May 2006 1:57:25 pm

I'm trying to load a Java Applet and don't seem to be able to get it to load. Can anyone see a problem in the code below?

<h2>treeview</h2>
<div id="#appletwrap">
<applet code="prefuse/demos/applets/TreeView.class"
    codebase="http://www.mysite.com/ezpublish/design/intranet/java/"
	archive="demos.jar,prefuse.jar"
	width="720"	height="600">
	If you can read this text, the applet is not working. Perhaps you don't
	have the Java 1.4.2 (or later) web plug-in installed?<br/>

	<h3><a href="http://java.com">Get Java here.</a></h3>
</applet>
</div>

Incidentially, the applet is a data visualization from the Prefuse toolkit http://prefuse.org/

Very cool stuff. If i get it to work i'll add it as an extension so people can generate visualizations of their site structure and content. I'm planning on using the treeview as a fast way to navigate through the categories of our Knowledge resources. Lots of cool possibilities.

Cheers,

Fraser

Ɓukasz Serwatka

Monday 15 May 2006 11:13:54 pm

Do you use any re-write rules? It might be related.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Fraser Hore

Tuesday 16 May 2006 12:44:58 am

Thanks for the suggestion but i added jar and class to the rules and it still doesn't work. Actually it worked even before i added those rules but pointed the code base to the location of the jar files on the Prefuse server. It just doesn't seem to want to load the applet from my server.

Cheers,

Fraser

Fraser Hore

Tuesday 16 May 2006 2:12:42 pm

Problem solved. Turned out to be a version incompatibility issue between different versions of JDK and JDE. I removed older versions and made sure both were the same, latest version and the applet works.

Cheers,

Fraser

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 22:35:30
Script start
Timing: Jan 18 2025 22:35:30
Module start 'layout'
Timing: Jan 18 2025 22:35:30
Module start 'content'
Timing: Jan 18 2025 22:35:31
Module end 'content'
Timing: Jan 18 2025 22:35:31
Script end

Main resources:

Total runtime0.7170 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 587.9141152.6250
Module start 'layout' 0.00530.0029 740.539139.4453
Module start 'content' 0.00820.7075 779.9844556.0625
Module end 'content' 0.71570.0013 1,336.046912.1563
Script end 0.7170  1,348.2031 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.4575160.0002
Check MTime0.00140.1950160.0001
Mysql Total
Database connection0.00070.091510.0007
Mysqli_queries0.660992.1722600.0110
Looping result0.00120.1609580.0000
Template Total0.687495.920.3437
Template load0.00210.292020.0010
Template processing0.685395.584920.3427
Template load and register function0.00010.016910.0001
states
state_id_array0.00120.160710.0012
state_identifier_array0.00110.157120.0006
Override
Cache load0.00170.2431230.0001
Sytem overhead
Fetch class attribute can translate value0.00130.176120.0006
Fetch class attribute name0.00180.251560.0003
XML
Image XML parsing0.00120.163720.0006
class_abstraction
Instantiating content class attribute0.00000.002480.0000
General
dbfile0.00110.1478240.0000
String conversion0.00000.006040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 16
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs