Noel,

 

You will need to include the fully qualified class name of Main and you
don't need the ".class" portion, as in:

 

<applet code="org.apache.batik.apps.svgbrowser.Main" 

 

Try that and let me know if it works.

 

Cheers,

 

John

 

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

 

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.j
ar,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 <mailto:[email protected]>  

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-windo
ws-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

Attachment: PGP.sig
Description: PGP signature

Reply via email to