Yes I have done the following:
java -classpath ./SVGApplication.jar -jar batik-squiggle.jar.

I did the above and it still does not find the SVGApplication classes. My 
SVGApplication.jar is in the same location as batik-squiggle.jar.

When you said edit the manifest file you meant to edit the manifest file of 
batik-squiggle.jar right?



Well my point is that I am actually using a SVG Eclipse plugin based on the 
batik libraries that displays the SVG. And in that case I do not have control 
of putting my user based class in the class path, because the SVG plugin code 
invokes the JSVGCanvas .
Is there a another way that we can specify the class path. How does the Rhino 
Class Loader in the Rhino Interpreter class find the java classes. I mean any 
java based libraries are found. So what i went ahead and did is put the 
libraries I would like to be found under %JAVA_HOME%/jre/lib/ext and it works. 
But is this a good apprach? Is there another way to tell the Rhino Class Loader 
about user defined class?

Thanks,
Emmy
---------- Original Message ----------------------------------
From: [EMAIL PROTECTED]
Reply-To: batik-users@xmlgraphics.apache.org
Date:  Tue, 13 Mar 2007 19:07:33 -0400

>Hi Emmy,
>
>"Emmy Alex" <[EMAIL PROTECTED]> wrote on 03/13/2007 10:26:28 AM:
>
>> InterpExcept: org.apache.batik.script.InterpreterException: Function
>> importClass must be called with a class; had "[JavaPackage com.
>> tietronix.common.Utility]" instead. (Inline <script> file:/C:
>
>> The java class com.tietronix.common.Utility is in a SVGApplication.
>> jar file which is in the same location as the SVG is and in the same
>> location where batik-squiggle.jar is. I believe it is an issue of 
>> batik-squiggle not finding the class com.tietronix.common.Utility.
>
>   Have you done anything to put your SVGApplication jar on the
>classpath for batik-squiggle?  If you haven't then Batik won't go
>looking around for random Jar files so it won't find it.
>
>> Is there anybody who can give me some pointers on how to solve this 
>issue? 
>
>   I would add your jar to the java command line or edit
>the manifest in the jar file to include your jar.
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
 
             

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to