Groovy Console wird unter Windows 7 x64 nicht geladen

1769
user584002

Ich habe noch nie mit Groovy gearbeitet.

Ich habe die ausführbare Datei und das neueste JDK von der Java-Website installiert.

Ich setze meine System-ENV-Variablen JAVA_HOMEauf C:\Program Files\Java\jdk1.8.0_77und GROOVY_HOMEauf C:\Program Files (x86)\Groovy\Groovy-2.4.6\bin.

Console wird nicht geladen, daher habe ich versucht, den Computer neu zu starten. Kein Würfel. Ich habe versucht, GroovyConsole.exe direkt aus dem groovy-Ordner auszuführen, sowie die GroovyConsole.bat-Datei.

Es funktioniert nicht und all das ist die einzige Lösung, die ich online gefunden habe.

1

2 Antworten auf die Frage

0
DavidPostill

Groovy console won't load

I set my system environment JAVA_HOME to C:\Program Files\Java\jdk1.8.0_77 and GROOVY_HOME to C:\Program Files (x86)\Groovy\Groovy-2.4.6\bin

Your GROOVY_HOME variable is incorrect. It should point to the root of your Groovy installation (which is one direct up from bin).

In your case the correct value is GROOVY_HOME C:\Program Files (x86)\Groovy\Groovy-2.4.6

You might also want to consider adding %GROOVY_HOME%\bin to your system path.


Setting up your Groovy environment

  1. Unzip the groovy archive to some logical place on your hard drive, I have mine in C:\dev\groovy-2.0.5

  2. Set the GROOVY_HOME environment variables. On Windows, follow these steps:

    • Optionally add a new System variable with the name GROOVY_HOME and the value of the directory groovy was installed in (mine is C:\dev\groovy-2.0.5)
    • Start a command prompt, and type "set" and hit return to see that your environment variables were set correctly.
  3. Optionally add %GROOVY_HOME%\bin to your system path

  4. Try opening groovyConsole.bat by double clicking on the icon in the bin directory of the Groovy distribution.

    • If it doesn't work, open a command prompt, and change to the bin directory and run it from there to see what the error message is.

    • If it is complaining about not finding parts of Groovy, then setting GROOVY_HOME may help

Source Tutorial 1 - Getting started


Further Reading

0
infiniteRefactor

Wenn Sie JAVA_HOME vor der Installation von Groovy festlegen und das Windows-Installationsprogramm verwenden, erledigt das Installationsprogramm alles ordnungsgemäß. Wenn Sie JAVA_HOMEnach der Installation von Groovy festgelegt haben, würde ich eine Neuinstallation empfehlen.