groovy
  1. groovy
  2. GROOVY-289

groovyconsole not starting because of non existing jar in CLASSPATH

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0-beta-4
    • Fix Version/s: 1.0-beta-8
    • Component/s: None
    • Labels:
      None
    • Environment:
      Windows XP
    • Number of attachments :
      0

      Description

      Hi,
      I had a small problem with starting the groovyconsole.bat.
      Actually the Enviromentvariable CLASSPATH on my machine
      contained a jar file that didn't exists anymore.
      groovyconsole.bat just did not startup because of this.

      This might be very confusing to new users ...

      Regards,
      Markus

        Activity

        Hide
        james strachan added a comment -

        I wonder could the problem be that your CLASSPATH variable contained a space in it?

        Non-existing things in the CLASSPATH should not cause an issue.

        Any chance you could show us the error you got?

        Show
        james strachan added a comment - I wonder could the problem be that your CLASSPATH variable contained a space in it? Non-existing things in the CLASSPATH should not cause an issue. Any chance you could show us the error you got?
        Hide
        Michael Schenck added a comment -

        I have had this same problem with beta 7. I followed the instructions and have the groovy home and java home set correctly. I am using jdk 1.5. Here is the exception. I looked in the groovy-1.0-beta-7.jar and the class it is looking for is not in there.

        C:\Documents and Settings\mike>groovyConsole
        Exception in thread "main" java.lang.ClassNotFoundException: groovy.ui.Console
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassLoader.java:135)
        at org.codehaus.classworlds.DefaultClassRealm.loadClassDirect(DefaultClassRealm.java:262)
        at org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:239)
        at org.codehaus.classworlds.Launcher.getMainClass(Launcher.java:194)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:371)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:336)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:461)

        Show
        Michael Schenck added a comment - I have had this same problem with beta 7. I followed the instructions and have the groovy home and java home set correctly. I am using jdk 1.5. Here is the exception. I looked in the groovy-1.0-beta-7.jar and the class it is looking for is not in there. C:\Documents and Settings\mike>groovyConsole Exception in thread "main" java.lang.ClassNotFoundException: groovy.ui.Console at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassLoader.java:135) at org.codehaus.classworlds.DefaultClassRealm.loadClassDirect(DefaultClassRealm.java:262) at org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:239) at org.codehaus.classworlds.Launcher.getMainClass(Launcher.java:194) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:371) at org.codehaus.classworlds.Launcher.launch(Launcher.java:336) at org.codehaus.classworlds.Launcher.main(Launcher.java:461)
        Hide
        Michael Schenck added a comment -

        I was able to get the console to run by copying the groovy/ui/Console classes to the groovy jar. They are for some reason missing in the beta 7 jar. I copied the ones from the rc1 jar and they worked.

        Show
        Michael Schenck added a comment - I was able to get the console to run by copying the groovy/ui/Console classes to the groovy jar. They are for some reason missing in the beta 7 jar. I copied the ones from the rc1 jar and they worked.

          People

          • Assignee:
            Guillaume Laforge
            Reporter:
            Markus Kohler
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: