On Tue, Jan 26, 2010 at 7:37 PM, Andreas Stefik <stef...@gmail.com> 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 <bki...@gmail.com> 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 <kfeuerh...@wlu.ca >> >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 -- You received this message because you are subscribed to the Google Groups "il-antlr-interest" group. To post to this group, send email to il-antlr-inter...@googlegroups.com. To unsubscribe from this group, send email to il-antlr-interest+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/il-antlr-interest?hl=en.