Loading ...
Sorry, an error occurred while loading the content.
 

Still get Runtime Error

Expand Messages
  • Mark Ryall
    Hi I still have the same runtime errors. C: 3rd Year Project Info Routing Protocol Language java antlr.Tool Test.g ANTLR Parser Generator Version 2.7.1
    Message 1 of 5 , Nov 30, 2001
      Hi

      I still have the same runtime errors.

      C:\3rd Year Project Info\Routing Protocol Language>java antlr.Tool
      Test.g
      ANTLR Parser Generator Version 2.7.1 1989-2000 jGuru.com
      java.lang.NoClassDefFoundError: antlr/DefaultToolErrorHandler
      at antlr.Tool.<init>(Tool.java:33)
      at antlr.Tool.main(Tool.java:320)

      I asume you can run it in any directory, my Test.g file is in the above
      directory.

      My Env. Vars are ....

      Path =
      %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\JDK1.1.8\BIN

      Classpath =
      .;C:\jdk1.1.8\lib\classes.zip;C:\antlr-2.7.1\antlr.jar;C:\antlr-2.7.1\antlr

      Regards

      Mark
    • bob mcwhirter
      Use jar tf and see if the requested class really exists in the jarfile. If not, then look at the other jars, and find the one that has that
      Message 2 of 5 , Nov 30, 2001
        Use 'jar tf <filename>' and see if the requested class really exists in
        the jarfile. If not, then look at the other jars, and find the one that
        has that class.

        There have been problems, previously, of not getting all the right
        classes into the runtime jar.

        The antlr-all.jar (or whatever it is named these days) should work,
        if not be overkill.

        -bob


        On Fri, 30 Nov 2001, Mark Ryall wrote:

        > Hi
        >
        > I still have the same runtime errors.
        >
        > C:\3rd Year Project Info\Routing Protocol Language>java antlr.Tool
        > Test.g
        > ANTLR Parser Generator Version 2.7.1 1989-2000 jGuru.com
        > java.lang.NoClassDefFoundError: antlr/DefaultToolErrorHandler
        > at antlr.Tool.<init>(Tool.java:33)
        > at antlr.Tool.main(Tool.java:320)
        >
        > I asume you can run it in any directory, my Test.g file is in the above
        > directory.
        >
        > My Env. Vars are ....
        >
        > Path =
        > %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\JDK1.1.8\BIN
        >
        > Classpath =
        > .;C:\jdk1.1.8\lib\classes.zip;C:\antlr-2.7.1\antlr.jar;C:\antlr-2.7.1\antlr
        >
        > Regards
        >
        > Mark
        >
        >
        >
        >
        > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
        >
        >
      • Mark Ryall
        Hi There aren t any other jar files! only antlr.jar Any suggestions? ? ? ? ? ? ? ? Mark
        Message 3 of 5 , Nov 30, 2001
          Hi

          There aren't any other jar files! only antlr.jar

          Any suggestions? ? ? ? ? ? ? ?

          Mark

          bob mcwhirter wrote:

          > Use 'jar tf <filename>' and see if the requested class really exists in
          > the jarfile. If not, then look at the other jars, and find the one that
          > has that class.
          >
          > There have been problems, previously, of not getting all the right
          > classes into the runtime jar.
          >
          > The antlr-all.jar (or whatever it is named these days) should work,
          > if not be overkill.
          >
          > -bob
          >
          > On Fri, 30 Nov 2001, Mark Ryall wrote:
          >
          > > Hi
          > >
          > > I still have the same runtime errors.
          > >
          > > C:\3rd Year Project Info\Routing Protocol Language>java antlr.Tool
          > > Test.g
          > > ANTLR Parser Generator Version 2.7.1 1989-2000 jGuru.com
          > > java.lang.NoClassDefFoundError: antlr/DefaultToolErrorHandler
          > > at antlr.Tool.<init>(Tool.java:33)
          > > at antlr.Tool.main(Tool.java:320)
          > >
          > > I asume you can run it in any directory, my Test.g file is in the above
          > > directory.
          > >
          > > My Env. Vars are ....
          > >
          > > Path =
          > > %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\JDK1.1.8\BIN
          > >
          > > Classpath =
          > > .;C:\jdk1.1.8\lib\classes.zip;C:\antlr-2.7.1\antlr.jar;C:\antlr-2.7.1\antlr
          > >
          > > Regards
          > >
          > > Mark
          > >
          > >
          > >
          > >
          > > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
          > >
          > >
          >
          >
          >
          > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
        • Remus Pereni
          ... antlr.jar does not contain all the classes from the anlr source tree. If you look at the root of the antlr distribution you will see a couple of shell
          Message 4 of 5 , Nov 30, 2001
            On Fri, Nov 30, 2001 at 05:33:32PM +0000, Mark Ryall wrote:
            >Hi
            >
            >There aren't any other jar files! only antlr.jar
            >
            >Any suggestions? ? ? ? ? ? ? ?

            antlr.jar does not contain all the classes from the anlr source tree. If
            you look at the root of the antlr distribution you will see a couple of
            shell scripts mkalljar, mkdebugjar. Try one of those scripts (might need
            some adjurations) like mkalljar. If you still have problems try to find
            out what packages are missing and add the respective directories to the
            script.

            >
            >Mark

            Regards,
            Remus
          • Terence Parr
            ... Make that c: antlr-2.7.1 and you re golden...it will see the class files (I assume those are laying around in antlr subdir--if not just run javac in antlr
            Message 5 of 5 , Dec 4, 2001
              On Friday, November 30, 2001, at 09:33 AM, Mark Ryall wrote:

              > Hi
              >
              > There aren't any other jar files! only antlr.jar
              >
              > Any suggestions? ? ? ? ? ? ? ?
              >>> Classpath =
              >>> .;C:\jdk1.1.8\lib\classes.zip;C:\antlr-2.7.1\antlr.jar;C:\antlr-2.7.1\antlr

              Make that c:\antlr-2.7.1 and you're golden...it will see the class files
              (I assume those are laying around in antlr subdir--if not just run javac
              in antlr and the few subdirs).

              Ter
              --
              Chief Scientist & Co-founder, http://www.jguru.com
              Creator, ANTLR Parser Generator: http://www.antlr.org
            Your message has been successfully submitted and would be delivered to recipients shortly.