RE: Windows Batch file for XMLc-2.1

"Sanjay Date" <[email protected]>
Newsgroups gmane.comp.java.enhydra.xmlc
Organization Metallect Corp
Message-ID <000601c326c0$683b7810$3a14a8c0@SDATELT>
Jacob,

Thanks.  it's the note about the other jar files that did the trick. I
was getting the class not found error because I hadn't linked the other
jars. I have the script and will gladly share if anyone needs it.

 

ttyl

 

 Sanjay

_________________________________________

Sanjay Date

Metallect 

(214) 576 - 9674 (desk)

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf
Of Jacob Kjome
Sent: Friday, May 30, 2003 9:27 AM
To: [email protected]
Subject: Re: Xmlc: Windows Batch file for XMLc-2.1

 


Here's a batch script that I dug up from a while back.  It might do the
job for you...

@echo off
rem xmlc.bat -- Script for running enhydra's xmlc
rem $Id: xmlc.bat,v 1.3.2.2 2000/11/27 22:45:57 hoju Exp $

set _CP=%CP%

rem Identify the custom class path components we need
set CP=%XMLC_HOME%\lib\xmlc.jar
set CP=%CP%;%JAVA_HOME%\lib\tools.jar

rem Execute XMLC
java -classpath %CP% org.enhydra.xml.xmlc.commands.xmlc.XMLC %1 %2 %3 %4
%5 %6 %7 %8 %9

set CP=%_CP%
set _CP=


Example usage...
xmlc -d ./src/ -class photo.presentation.AdvPhotoHTML -keep -sourceout
./src/ ./templates/AdvPhoto.html


Note that you'll have to add the other jars such as gnu-regexp, jtidy,
xerces (and maybe xhtml and wireless) to the classpath above.  The
script was made for XMLC-2.0.1, I believe, and I haven't used it in
ages.

Jake

At 11:30 AM 5/29/2003 -0500, you wrote:




Has anyone written a Bat file for XMLC-2.1? I have the one forXMLC2.0.1
and I thought I could tweak it and get it to work but no luck..

Any ideas what the differences are? I am getting the dreadful
NoClassDefFound error.

 

Sanjay
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.