xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Aberline <peter_aberl...@bitsmart.com>
Subject Batik and Java Extension Mechanism
Date Sat, 25 Aug 2001 06:17:09 GMT
Hi,

I'm working on an Applet project that will use Batik's JSVG
Canvas. I'm wanting to store the compiled batik-all.jar libraries and
several other libaries in the JDK 1.3.1 jre\lib\ext\ folder via the
Java Extension Mechanism, to save the user downloading them 
each time. My understanding is that the JRE plugin looks in the ext folder 
rather than in the class path.

In the first instance, I am trying to get this arrangement to work with just 
Batik. The Batik JAR is referenced in the html file via the "archive" tag. 
This arrangement works nicely in the Appletviewer, but in IE5.5 and Netscape 
I get a java.lang.NoClassDefFound error on all of the library classes.

Removing the archive tag stops it working in the Appletviewer, so I
assume that this is required.

Can anyone suggest why this is the case, or how I can get this working?
There must be many people using batik in this way.  I've posted on 
comp.lang.java.help, but no one has responded, and I'm getting a bit 
desperate!

The applet html file, generated using the JDK1.3.1 html file converter is 
attached below.

thanks for any help,
Peter.

-----------------------------------------
Peter Aberline - 5th (Final) Year Student
Computer Science / Geomatics Double Degree.
RMIT University, Melbourne, Australia.

 uni: aberline@cs.rmit.edu.au
home: peter_aberline@bitsmart.com


*************************************************************************


<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<!-- @(#)ClientApplet.html 1.1  -->
<html>
<head><title>Client Applet</title></head>
<body> <!--"CONVERTED_APPLET"-->
<!-- HTML CONVERTER -->
<SCRIPT LANGUAGE="JavaScript"><!--
    var _info = navigator.userAgent; var _ns = false; var _ns6 = false;
        var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0
&& _info.indexOf("Windows 3.1") < 0);
//--></SCRIPT>
<COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
   var _ns = (navigator.appName.indexOf("Netscape") >= 0 &&
((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 &&
java.lang.System.getProperty("os.version").indexOf("3.5") < 0) ||
(_info.indexOf("Sun") > 0) || (_info.indexOf("Linux")
> 0) || (_info.indexOf("AIX") > 0) || (_info.indexOf("OS/2") > 0)));

   var _ns6 = ((_ns == true) &&
(_info.indexOf("Mozilla/5")//--></SCRIPT></COMMENT>

<SCRIPT LANGUAGE="JavaScript"><!--
   if (_ie == true) document.writeln('<OBJECT
classid="clsid:CAFEEFAC-0013-0001-0000-ABCDEFFEDCBA" WIDTH = 500 HEIGHT =
300
codebase="http://java.sun.com/products/plugin/1.3.1/jinstall-131-win32.cab#Version=1,3,1,0"><NOEMBED><XMP>');
   else if (_ns == true && _ns6 == false) document.writeln('<EMBED
type="application/x-java-applet;jpi-version=1.3.1"  CODE =
client/functionality/view/ClientApplet ARCHIVE = batik-all.jar WIDTH = 500
HEIGHT = 300  scriptable=false
pluginspage="http://java.sun.com/products/plugin/1.3.1/plugin-install.html"><NOEMBED><XMP>');
//--></SCRIPT>
<APPLET  CODE = client/functionality/view/ClientApplet ARCHIVE =
batik-all.jar WIDTH = 500 HEIGHT = 300></XMP>
<PARAM NAME = CODE VALUE = client/functionality/view/ClientApplet >
<PARAM NAME = ARCHIVE VALUE = batik-all.jar >

<PARAM NAME="type" VALUE="application/x-java-applet;jpi-version=1.3.1">
<PARAM NAME="scriptable" VALUE="false"> >= 0));
 </APPLET>
</NOEMBED></EMBED></OBJECT>


<!--
<APPLET CODE = client/functionality/view/ClientApplet ARCHIVE =
batik-all.jar WIDTH = 500 HEIGHT = 300>


</APPLET>
 -->
<!--"END_CONVERTED_APPLET"-->

</body>
</html>
--

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org


Mime
View raw message