Subject: Re: Problem running "demeterj test"
From: Pengcheng Wu (wupc@ccs.neu.edu)
Date: Mon Oct 21 2002 - 16:52:31 EDT
On Mon, 21 Oct 2002, A student wrote:
> I'm having a problem running "demeterj test" in the "onlyDJ-capacity-with-stack" folder on my windows machine.
>
> I installed DemeterJ using the instructions provided on the website. After installation, the version tests on java, javac, javacc, and demeterj all worked.
>
> Then I downloaded the contents of the "hw/3" folder onto my windows machine. In the "onlyDJ-capacity-with-stack" folder, I typed "demeterj clean" to remove all generated code. This seemed to work. Then I typed "demeterj test" which appeared to be working until an error occurred, which read:
>
> Running the weaver...
> Running the parser generator...
> java.io.IOException: CreateProcess: javacc -OUTPUT_DIRECTORY:gen gen\Parser.jj error=2
>
> I don't know why this is happening. In program.prj I switched the / to \ for windows, but that didn't seem to help.
>
> Thanks,
There was an answer from Doug Orleans to this question asked by a
com1205 student two years ago. I quote it as following:
>>Please make sure that the .prj file has
>>
>>
>> PARSEGEN = javacc.bat
>>
>>
>>if you're running on Windows, and
>>
>>
>> PARSEGEN = javacc
>>
>>
>>if you're running on Unix. For some reason Runtime.exec() on Windows
>>requires the full file name for batch files, unlike .exe files where
>>you can leave off the extension.
>>
>>
>>--Doug
--Pengcheng Wu
This archive was generated by hypermail 2b28 : Mon Oct 21 2002 - 16:52:54 EDT