I'm using batik Squiggle to print SVG models using the following Javascript in 
an .hta file 
 
var oShell = new ActiveXObject("Shell.Application");
var commandtoRun;
var commandParams;  
commandtoRun = "http://enet. ....../batik-squiggle.jar" ;
commandParams = "http://enet...../s0000XXX.svg"; ; 
oShell.ShellExecute(commandtoRun,commandParams);

It works fine when the batik-squiggle.jar file & the batik lib subdirectory are 
on a network PC but as Jeremias Maerki was kind enough to point out, using URLs 
to specify the JAR files won't work as the Java VM doesn't accept URLs to build 
the classpath. He also pointed out that I could run it using Webstart.

But was wondering if I can run it as an applet. I've tried the following code 

<object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" height="100%" 
width="100%" 
  
codebase="http://java.sun.com/products/plugin/autodl/jinstall-1_4_2_13-windows-i586.cab#Version=1,4,2,13";>
<param name="code" value="Main.class">
<param name="archive" 
value="batik-squiggle.jar,batik-all.jar,xerces_2_5_0.jar,js.jar,xml-apis.jar,xml-apis-ext.jar,xalan-2.6.0.jar,batik-util.jar">
<param name="mayscript" value="true">
<param name="svgFile" value="d0000498.svgz">
<param name="isSvgContent" 

but I get the following error:

"load: org.apache.batik.apps.svgbrowser.Main.class can't be instantiated"

If anyone can help me with this I'd be most thankful. 

Many Thanks, Noel

Reply via email to