logo       

RE: Windows Batch file for XMLc-2.1: msg#00033

java.enhydra.xmlc

Subject: RE: Windows Batch file for XMLc-2.1

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: xmlc-admin@xxxxxxxxxxx [mailto:xmlc-admin@xxxxxxxxxxx] On Behalf Of Jacob Kjome
Sent: Friday, May 30, 2003 9:27 AM
To: xmlc@xxxxxxxxxxx
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

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise