You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "David Eisner (JIRA)" <ji...@apache.org> on 2016/05/31 13:44:12 UTC

[jira] [Created] (GROOVY-7851) groovysh classpath switch not working under Windows

David Eisner created GROOVY-7851:
------------------------------------

             Summary: groovysh classpath switch not working under Windows
                 Key: GROOVY-7851
                 URL: https://issues.apache.org/jira/browse/GROOVY-7851
             Project: Groovy
          Issue Type: Bug
          Components: Groovysh
    Affects Versions: 2.4.6
         Environment: Windows 7 64-bit, Windows 10 64-bit
            Reporter: David Eisner


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:
{quote}
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
{quote}
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.




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)