No problem and best of luck. ANTLR is a great parsing tool. In my view, much easier to use than many of the alternatives, so hopefully you have a good time hacking away.
Andreas Stefik, Ph.D. Assistant Professor Department of Computer Science Southern Illinois University Edwardsville On Tue, Jan 26, 2010 at 4:30 PM, Karljurgen Feuerherm <[email protected]>wrote: > hi > > thanks for your patience :) > > the second instal did create the directory. a reboot didn't change the fact > that the environment variable is not set globally... however, following your > instructions I was able to set the patch to C:\Program > Files\Java\jdk1.6.0_18\bin and now it seems to work. > > i have no idea why the installation didn't work properly the first time... > maybe all that fiddling trying to change the options fixed it, who knows. in > any case, one problem down. > > i appreciate your help! now let's see whether i can come up with some REAL > problems...! > > Best > > K > > Karljürgen G. Feuerherm, PhD > Department of Archaeology and Classical Studies > Wilfrid Laurier University > 75 University Avenue West > Waterloo, Ontario N2L 3C5 > Tel. (519) 884-1970 x3193 > Fax (519) 883-0991 (ATTN Arch. & Classics) > > >>> Andreas Stefik <[email protected]> 26/01/2010 4:46 pm >>> > JDK means the same thing as SDK does for Java (Java Development Kit). JDK 6 > U18 is the correct thing to have downloaded, so you are on the right track. > > After installing it, you definitely should have javac and it should be in > your environment variables. Might be obvious, but have you tried restarting? > > Andreas Stefik, Ph.D. > Assistant Professor > Department of Computer Science > Southern Illinois University Edwardsville > > > On Tue, Jan 26, 2010 at 3:41 PM, Karljurgen Feuerherm > <[email protected]>wrote: > >> Hi >> >> Thanks, that makes a lot more sense. >> >> Now, oddly, I found and downloaded JDK 6 U18, and installed it... and >> javac is still not found. I'm hunting around for documentation on the site, >> but there are so many different options... >> >> Maybe I need an SDK? >> >> K >> >> Karljürgen G. Feuerherm, PhD >> Department of Archaeology and Classical Studies >> Wilfrid Laurier University >> 75 University Avenue West >> Waterloo, Ontario N2L 3C5 >> Tel. (519) 884-1970 x3193 >> Fax (519) 883-0991 (ATTN Arch. & Classics) >> >> >>> Bart Kiers <[email protected]> 26/01/2010 1:40 pm >>> >> >> On Tue, Jan 26, 2010 at 7:37 PM, Andreas Stefik <* [email protected]* > >> wrote: >> >> > I think he's asking why the debugger throws errors with javac, not how >> to >> > start antlrworks. >> > >> > The error you are seeing is because the antlrworks debugger, far as I >> > understand it, needs a java compiler to actually debug a grammar. As >> such, >> > you need to put the path to your javac compiler in the path field in >> > antlrworks. This is straightforward to do: >> > >> > 1. Open up the options window. I'm on mac at the moment, which is in >> > preferences, but on windows it is similar. >> > 2. Go to the tab labeled compiler and look for where it says javac. >> > 3. Check path under javac, then click browse and a window should appear. >> > 4. Browse to where javac is located. >> > >> > As I'm on mac, the paths are different, but if I recall correctly, on >> > windows javac is in program files, so it would be something "like" >> > >> > c:\program files\Java\bin\javac.exe >> > >> > That path might not be correct, but I don't have a windows box on me to >> > give it to you exactly. Should be close though and if you browse around >> you >> > should find it. >> > >> > The last detail is that, if you can't find javac, you may not have the >> JDK >> > installed (java.sun.com), so you'll need to do that. It's just a little >> > installer, so there's nothing fancy to do. You can know for sure whether >> you >> > have it by going to the command line and typing: >> > >> > javac >> > >> > if it throws an error, you need the JDK. If it's there, you will see a >> > bunch of information put out to the terminal. >> > >> > Hope that helps, >> > >> > Andreas Stefik, Ph.D. >> > Assistant Professor >> > Department of Computer Science >> > Southern Illinois University Edwardsville >> > >> > >> > >> > On Tue, Jan 26, 2010 at 12:19 PM, Bart Kiers <* [email protected]* > >> wrote: >> > >> >> Karljürgen, >> >> >> >> In order to run ANTLRWorks, you do not need 'javac', but 'java'. >> >> >> >> 'javac' is the compiler that will compile java source files into byte >> >> codes >> >> that the JRE (Java Runtime Environment) interprets/executes. >> >> >> >> 'java' is the application that executes the byte codes produced by >> >> 'javac'. >> >> Since ANTLRWorks is already compiled, you only need 'java'. >> >> >> >> So, on the command line, give the following command: >> >> >> >> java -jar antlrworks-1.3.1.jar >> >> >> >> If the above does not work, please post the exact error message(s) on >> the >> >> list. >> >> >> >> Thanks. >> >> >> >> Bart. >> >> >> >> >> >> On Tue, Jan 26, 2010 at 6:51 PM, Karljurgen Feuerherm <* >> [email protected]* >> >> >wrote: >> >> >> >> > Hello, >> >> > >> >> > I'm new to this product (and to modern products of this type >> >> > generally... was a B programmer in the early 80s and trying to get >> >> > updated!) >> >> > >> >> > I'm on Windows XP, and have run the JAR file to invoke ANTLRWorks. >> >> > >> >> > I'm trying out the Expression Evaluator Tutorial. Interpreter works >> >> > fine, but invoking the debugger gets me >> >> > >> >> > "java.IO.IOException: Cannot run program "javac": CreateProcess >> >> > error=2, the system cannot find the file specified" >> >> > >> >> > (Oddly, after a while, trying it again got me a different error about >> >> > timeout, even though I'd changed nothing [Sure. Famous Last Words, >> >> > eh?].) >> >> > >> >> > Not sure where to go from here... By all means be pedantic in a >> >> > response :) >> >> > >> >> > Thanks! >> >> > >> >> > K >> >> > >> >> > Karljürgen G. Feuerherm, PhD >> >> > Department of Archaeology and Classical Studies >> >> > Wilfrid Laurier University >> >> > 75 University Avenue West >> >> > Waterloo, Ontario N2L 3C5 >> >> > Tel. (519) 884-1970 x3193 >> >> > Fax (519) 883-0991 (ATTN Arch. & Classics) >> >> > >> >> > List: *http://www.antlr.org/mailman/listinfo/antlr-interest* >> >> > Unsubscribe: >> >> > * >> http://www.antlr.org/mailman/options/antlr-interest/your-email-address* >> >> > >> >> >> >> List: *http://www.antlr.org/mailman/listinfo/antlr-interest* >> >> Unsubscribe: >> >> * >> http://www.antlr.org/mailman/options/antlr-interest/your-email-address* >> >> >> > >> > >> >> List: *http://www.antlr.org/mailman/listinfo/antlr-interest* >> Unsubscribe: * >> http://www.antlr.org/mailman/options/antlr-interest/your-email-address* >> > > List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address -- You received this message because you are subscribed to the Google Groups "il-antlr-interest" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/il-antlr-interest?hl=en.
