Skip to content

frz02001/groovy_tutorial

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.

Install Groovy on Windows

  1. Go here http://groovy-lang.org/download.html

  2. Click Windows Installer and click next a bunch of times until it is installed.


Install Groovy on Ubuntu 20.04

Install Open JDK

Install OpenJDK 14 version sudo apt install openjdk-14-jdk* sudo apt install openjdk-14-jre*

edit your .bashrc file vi ~/.bashrc add the following 2 lines to the end of the file

export JAVA_HOME=/usr/lib/jvm/java-14-openjdk-amd64/
export PATH=$JAVA_HOME/bin:$PATH

Source .bashrc so changes take effect source ~/.bashrc

Install Groovy 3.x

sudo snap install groovy --classic


Install Groovy on Mac

  1. Update Java to at least Java 7 in the System Preferences Java Control Panel

  2. Type in Terminal /usr/libexec/java_home -V to get something like 1.7.0_55, x86_64: "Java SE 7" /Library/Java/JavaVirtualMachines/jdk1.7.0_55.jdk/Contents/Home

  3. Type in terminal export JAVA_HOME=/usr/libexec/java_home -v 1.7.0_55, x86_64

  4. Type in terminal java -version and make sure you have at least Java 7

  5. Install HomeBrew at http://brew.sh/

  6. Type in terminal brew install groovy


Update Atom for Groovy

In Atom Open Command Palette -> Install Packages Themes -> Type language-groovy and install


Run Groovy code

Groovy files have the extension .groovy. You can run a groovy file at the terminal with: groovy myfile.groovy

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages