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.