RE: JFOR in Windows
"Martin David (ITS)" <[email protected]> Thu, 11 Dec 2003 12:53:20 -0000
| Newsgroups | gmane.text.xml.jfor.general |
|---|---|
| Message-ID | <[email protected]> |
Thanks for this. You were right. I needed to add the logkit jar into the classpath. However, I then came across a second error - that the input file could not be found. It turns out that the specification of the input path requires that the drive letter is missed out. In other words, I now have JFOR working on my Windows XP machine, but only by using the following at the command line: java -cp <path to xerces jar>;<path to jfor jar>;<path to logkit jar>ch.codeconsult.jfor.main.CmdLineConverter <path to fo infile> <path to rtf outfile> where <path to xxx jar> is like c:\jfor\xxx.jar and <path to fo infile> is like "\documents and settings\myself\desktop\helloworld.fo" and <path to rtf outfile> is like "c:\documents and settings\myself\desktop\helloworld.rtf" and you are issuing the command when the current drive is the same as that on which the infile is to be found (current directory on that drive appears not to matter). Hope this is of use to future windows/jfor users? I'd be grateful if anyone could point out if I'm missing something obvious, as the requirement that the current drive is relevant to finding the infile requires inconvenient drive switching when automating. Regards David -----Original Message----- From: Phil Chu [mailto:[email protected]] Sent: 10 December 2003 19:02 To: Martin David (ITS) Cc: '[email protected]' Subject: Re: [jfor-users] JFOR in Windows I'm running a recent version from cvs, and the lib directory includes logkit-1.0.1.jar (along with xerces). I expect the tar.gz distribution will include all the required jars, so you could look at that. -Phil Martin David (ITS) wrote: > I am hoping to see what JFOR is all about. So I have downloaded it and > tried to test it on a Windows XP environment, running it from the > command line. > > I have JRE installed (1.3.1_03), along with Xerces (2.6.0) and JFOR. > > When I issue the command: > > java -cp <path to xerces>\xercesImpl.jar;<path to > jfor>\jfor-0.7.2rc1.jar ch.codeconsult.jfor.main.CmdLineConverter > <path fo infile> <path to rtf > outfile> > > ...I get the following error: > > Exception in thread "main" java.lang.NoClassDefFoundError: > org/apache/log/Hierarchy > at org.jfor.jfor.main.CmdLineConverter.<clinit>(Unknown Source) > at ch.codeconsult.jfor.main.CmdLineConverter.main(Unknown > Source) > > Sounds like I am missing another download from apache.org...Any ideas? > > David > > > The information contained in this e-mail is intended for the recipient > or entity to whom it is addressed. It may contain confidential > information that is exempt from disclosure by law and if you are not > the intended recipient, you must not copy, distribute or take any act > in reliance on it. If you have received this e-mail in error, please > notify the sender immediately and delete from your system. > > > ------------------------------------------------------- > This SF.net email is sponsored by: IBM Linux Tutorials. Become an > expert in LINUX or just sharpen your skills. Sign up for IBM's Free > Linux Tutorials. Learn everything from the bash shell to sys admin. > Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click > _______________________________________________ > jfor-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/jfor-users > -- Phil Chu [email protected] http://www.technicat.com/ The information contained in this e-mail is intended for the recipient or entity to whom it is addressed. It may contain confidential information that is exempt from disclosure by law and if you are not the intended recipient, you must not copy, distribute or take any act in reliance on it. If you have received this e-mail in error, please notify the sender immediately and delete from your system. ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click