Russel Winder wrote:
>
> This message is coming from the native launcher, so groovy.exe is being
> used. As Jochen points out you can move groovy.exe out of the way and
> see if the groovy.bat works.
>
Thanks.
I see that there 3 launchers in the bin directory from Windows installation;
groovy.exe, groovy (unix launcher), and groovy.bat. The later does some
setup, and then runs startGroovy.bat.
Just typing groovy runs groovy.exe it seems.
I ran all three "by hand", and did a little debugging.
My problem was that I am doing this install on two machines, and had
forgotten to set JAVA_HOME on this one. It seems that the startGroovy.bat
file has a bug in its code to locate java automatically. (Even thought there
is a java on the PATH.) See below for more on his.
So, adding JAVA_HOME and now groovy.bat runs fine. groovy.exe (which is the
file run by just "groovy") fails. But, it means I have to type groovy.bat
every time. Seems like something is wrong in the setup, or I missed
something!
I don't think I can move groovy.exe because I'd assume that groovy.bat, and
grails, ... all use it.
Any hints or ideas why I need to use the .bat startup file?
-------------------------------------------------------------
From groovy.exe:
E:\Plang\Groovy\Groovy-1.6.5\bin>groovy.exe
error: dynamic library c:\Program Files\Java\jre6\bin\server\jvm.dll exists
but could not be loaded!
error (win code 193): (null)
error: could not find client or server jvm under c:\Program Files\Java\jre6
please check that it is a valid jdk / jre containing the desired type
of jvm
-------------------------------------------------------------
groovy.bat failure with trying to detect java_home:
From Groovy.bat: without JAVA_HOME set => odd error
E:\Plang\Groovy\Groovy-1.6.5\bin>groovy.bat
...
E:\Plang\Groovy\Groovy-1.6.5\bin>if not "" == "" goto have_JAVA_HOME
\ActiveState was unexpected at this time.
This may be a known bug - Groovy-3375
"The FOR loop used to search java.exe on the PATH will fail if PATH contains
spaces."
(Pretty odd failure, almost all windows PATHs contain spaces).
This is an old bug report, so I would have guessed that it would be fixed by
now, but maybe not.
-------------------------------------------------------------
--
View this message in context:
http://old.nabble.com/startup-error%3A-tp28625930p28649301.html
Sent from the groovy - user mailing list archive at Nabble.com.