Giter VIP home page Giter VIP logo

groovy_tut's Introduction

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


Using this tutorial

This tutorial is a reformatting of the groovy tutorial from Derek Banas. If you have at least one programming language under your belt, you should be able to look at the code examples in each chapter to figure out the basics.


Nextflow

If you're going through this tutorial to familiarize yourself groovy before learning nextflow, you will be fine going through chapters 1 to 12.

groovy_tut's People

Watchers

Frank Zappulla avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.