Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-7851

groovysh classpath switch not working under Windows

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.4.6, 2.4.7
    • None
    • Groovysh
    • Windows 7 64-bit, Windows 10 64-bit

    Description

      I'm trying to set the classpath for a groovysh session with the classpath switch (e.g. "-cp" or "-classpath"). On Linux (and under Cygwin with an sdkman-installed Groovy), it works fine.

      But under Windows (both Windows 7 64-bit and Windows 10 64-bit, installed using the Windows installer) I get this error:

      PS C:\> groovysh -cp .
      Unrecognized option: -cp
      error: jvm creation failed with code -1: unknown error
      PS C:\> groovysh -classpath .
      Unrecognized option: -classpath
      error: jvm creation failed with code -1: unknown error

      I'm using the current directory as an example argument, but I get the same error no matter what I try.

      In all cases (Linux, Cygwin w/ sdkman, Windows 7 and 10) this is Groovy 2.4.6 with JVM 1.8.0_91). One other thing: the problem occurs whether I'm using PowerShell or cmd.exe.

      Attachments

        Activity

          People

            Unassigned Unassigned
            deisner David Eisner
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: