-
Click Windows Installer and click next a bunch of times until it is installed.
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
sudo snap install groovy --classic
-
Update Java to at least Java 7 in the System Preferences Java Control Panel
-
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
-
Type in terminal export JAVA_HOME=
/usr/libexec/java_home -v 1.7.0_55, x86_64
-
Type in terminal java -version and make sure you have at least Java 7
-
Install HomeBrew at http://brew.sh/
-
Type in terminal brew install groovy
In Atom Open Command Palette -> Install Packages Themes -> Type language-groovy
and install
Groovy files have the extension .groovy
. You can run a groovy file at the terminal with:
groovy myfile.groovy
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.
If you're going through this tutorial to familiarize yourself groovy before learning nextflow, you will be fine going through chapters 1 to 12.