You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by John Knoop <jo...@leapfrog.se> on 2006/05/15 13:09:22 UTC

RE: [SPAM DNS] - RE: Problems distributing Batik (Removed spam no te) - Sending mail server found on sbl-xbl.spamhaus.org

No I meant if I wish to distribute MY application as a class file. I don't
want to mess with the class files inside the Batik jar files.

/john

-----Original Message-----
From: Tonny Kohar [mailto:tonny@kiyut.com] 
Sent: den 15 maj 2006 11:34
To: batik-users@xmlgraphics.apache.org
Subject: [SPAM DNS] - RE: Problems distributing Batik (Removed spam note) -
Sending mail server found on sbl-xbl.spamhaus.org

Hi,

On Mon, 2006-05-15 at 09:39 +0200, John Knoop wrote:
> Hi
> 
> Thanks for your reply.
> 
> Let's say I don't want to package my application in a jar file, but rather
> just use the .class file from another java application. How would I do
then?

if you just want to include .class file, it is the same, you need to
references the directory / folder where it is reside using command line
tool -classpath some_folder/ or -cp some_folder and if you do not want
to package inside jar, you need to extract the jar file generated by
batik to the folder you use to referencing in -cp or -classpath

or depending on the environment you use, stand alone application or
servlet, you need to configure the container environment to specify
where the class file exists

Regards
Tonny Kohar
-- 
Sketsa 
SVG Graphics Editor
http://www.kiyut.com


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

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


RE: [SPAM DNS] - RE: Problems distributing Batik (Removed spam no te) - Sending mail server found on sbl-xbl.spamhaus.org

Posted by Tonny Kohar <to...@kiyut.com>.
Hi,

On Mon, 2006-05-15 at 13:09 +0200, John Knoop wrote:
> No I meant if I wish to distribute MY application as a class file. I don't
> want to mess with the class files inside the Batik jar files.

Yup, it is good idea not to mess the batik generated jar files, unless
you want to optimize the size of jar, etc

Under normal java command line (servlet, server side container might
differ) you normally invoke java like this "java -cp somejar.jar;somedir
main.class.file". It is the same you also invoke the same command line
"java -cp batik-all.jar;pdftranscoder.jar;xml-apis.jar;somefolder
main.class.file"

Please include all jar generated / included by batik inside the -cp
(classpath option).

The separator ";" might differ on different platform eg: Windows or
Unix, check the jdk docs.


Regards
Tonny Kohar
-- 
Sketsa 
SVG Graphics Editor
http://www.kiyut.com


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