You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Shawn Cole (JIRA)" <ji...@apache.org> on 2016/03/21 20:23:25 UTC

[jira] [Comment Edited] (GROOVY-7788) Groovy does not run on 64 bit Windows 7

    [ https://issues.apache.org/jira/browse/GROOVY-7788?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15204931#comment-15204931 ] 

Shawn Cole edited comment on GROOVY-7788 at 3/21/16 7:22 PM:
-------------------------------------------------------------

Thanks guys, I tested the theory of the JAVA_HOME not found and PATH var:
1. Uninstalled groovy.
2. Added %JAVA_HOME%\bin to my PATH env var
3. Reinstalled groovy

Now all the executable's work fine, so it must have assumed I had a 32 bit version of java when it could not find it in my path. Thanks for the workaround, although a minor bug, the process for determining java version needs to be adapted in the future for windows.


was (Author: cole9350):
Thanks guys, I tested the theory of the JAVA_HOME not found and PATH var:
1. Uninstalled groovy.
2. Added %JAVA_HOME%\bin to my PATH env var
3. Reinstalled groovy

Now all the executable's work fine, so it must have assumed I had a 32 bit version of java when it could not find it in my path. Thanks for the workaround, although a minor bug, the process for determining java version needs to be adapted in a the future for windows.

> Groovy does not run on 64 bit Windows 7
> ---------------------------------------
>
>                 Key: GROOVY-7788
>                 URL: https://issues.apache.org/jira/browse/GROOVY-7788
>             Project: Groovy
>          Issue Type: Bug
>          Components: windows installer
>    Affects Versions: 2.4.6
>         Environment: Microsoft Windows 7 Enterprise 64 bit
> java version 1.8.0_65
> Java(TM) SE Runtime Environment (build 1.8.0_65-b17)
> Java HotSpot(TM) 64-Bit server VM (build 25.65-b01, mixed mode)
>            Reporter: Shawn Cole
>            Priority: Minor
>              Labels: windows
>
> When I try to execute groovy I get:
> error: dynamic library C:\Program Files\Java\jdk1.8.0_65\jre\bin\server\jvm.dll exists but could not be loaded!
> This may be caused e.g. by trying to use a 32-bit executable to load a 64-bit jvm (or vice versa)
> error (win code 193): (null)
> error: could not find client or server jvm under C:\Program Files\Java\jdk1.8.0_65
> please check that it is a valid jdk / jre containing the desired type of jvm
> I have a 64 bit machine and 64 bit java, with my JAVA_HOME pointing to C:\Program Files\Java\jdk1.8.0_65
> The problem seems to be when I ran the windows installer, it installed a 32 bit version of groovy on my machine that is not able to run on the 64 bit JVM.
> Is there any workarounds to this? and please don't say install the 32 bit version of java, because if that is the only solution i'd rather just not learn this language. I can't seem to find any binaries specific to 64 bit or 32.
> Also note worthy: I can launch groovy shell and groovy console with their corresponding batch files in the bin directory successfully. 



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