Hi John,

Many thanks for your reply

I tried the following code 

<Applet code=Main.class height="100%" width="100%" 
  
archive="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">
 <param name="svgFile" value="s0000549.svg">
</Applet>

but get the following error 

'load: class Main.class not found'

I'm obviously missing something very basic.  I'm not a java programmer so any 
help you can give me would be most appreciated.

Cheers, Noel.




  ----- Original Message ----- 
  From: John C. Turnbull 
  To: [email protected] 
  Sent: Monday, December 15, 2008 10:24 AM
  Subject: RE: Running Squiggle as an applet.


  Noel,

   

  Have you tried using the <APPLET> tag in your HTML instead?  I managed to get 
it to work that way.

   

  Cheers,

   

  John

   

  From: Noel Whiting [mailto:[email protected]] 
  Sent: Monday, 15 December 2008 09:49
  To: [email protected]
  Subject: Running Squiggle as an applet.

   

  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