Grails Example

Home

Course Outline

Code Examples

Magazine

About/Contact

Privacy Policy

In this Grails Example, we will set up our development environment on a Linux system.

Video #6 shows how to install Grails and Java on Linux

Learn about the new Grails Academy magazine

Video #7 shows how to install Eclipse and the Grails extensions on Linux

Facebook

Twitter

Google

More

Email

Print

LinkedIn

Reddit

StumbleUpon

Jörg on January 4, 2015 at 1:30 pm said: Hi Mike, It’s me again :-). Just in the moment I saw that Spring has a complete bundle of the Groovy/Grails Tool Suite™ containing everything you need. That is realy cool. You should check that out. So, forget my other e-mail. Best regards Jörg Reply ↓

Hi Mike, It’s me again :-). Just in the moment I saw that Spring has a complete bundle of the Groovy/Grails Tool Suite™ containing everything you need. That is realy cool. You should check that out. So, forget my other e-mail. Best regards Jörg

Jörg on January 4, 2015 at 11:50 am said: Hi Mike, thank you very much. Nice tutorial, but I faced some problems with ubuntu 14.04 LTS and openjdk. I fihured out, that you need to install first the openjdk-7- Reply ↓

Hi Mike, thank you very much. Nice tutorial, but I faced some problems with ubuntu 14.04 LTS and openjdk. I fihured out, that you need to install first the openjdk-7-

Chris Aguilar on December 29, 2014 at 5:41 pm said: I downloaded Java JDK using webupd8 so I have Oracle JDK 7. Can you tell me how to set JAVA_HOME? I believe the location is /usr/lib/jvm/java-7-oracle. How can I set that in Linux? I am using Ubuntu 14.04 Thanks Reply ↓

I downloaded Java JDK using webupd8 so I have Oracle JDK 7. Can you tell me how to set JAVA_HOME?

I believe the location is /usr/lib/jvm/java-7-oracle. How can I set that in Linux? I am using Ubuntu 14.04

Thanks

Sean Xu on March 27, 2014 at 5:00 pm said: Can Grails run on Red Hat Linux? Reply ↓ mkelly on March 28, 2014 at 8:18 am said: I haven’t tried it, but with a bash shell, you should be able to install a development environment the same as what I show in the tutorials. As a production server, Red Hat is a very solid JVM platform. ~Mike Reply ↓

Can Grails run on Red Hat Linux?

mkelly on March 28, 2014 at 8:18 am said: I haven’t tried it, but with a bash shell, you should be able to install a development environment the same as what I show in the tutorials. As a production server, Red Hat is a very solid JVM platform. ~Mike Reply ↓

I haven’t tried it, but with a bash shell, you should be able to install a development environment the same as what I show in the tutorials. As a production server, Red Hat is a very solid JVM platform. ~Mike

Alexander on February 25, 2014 at 12:25 am said: After trying to set grails sometime back 8 month ago, ran into bunch of errors. (used ubuntu 13) Tried it again with the latest 2.3.6 version and work perfectly, no errors. Thanks for restablish my trust. Reply ↓

After trying to set grails sometime back 8 month ago, ran into bunch of errors. (used ubuntu 13) Tried it again with the latest 2.3.6 version and work perfectly, no errors. Thanks for restablish my trust.

Alexander on February 25, 2014 at 12:23 am said: Nice job on latest grails. I gave it a shot on Ubuntu12 or 13 sometime back and ran into many issues and gave up.(just did not want to spent a lot of time) moved back to django. Now I tried the lates version 2.3.6 and everything was working perfectly. I used gvm as installer. thanks for fixing bugs I think many people will like to use this in such a shape. Reply ↓

Nice job on latest grails. I gave it a shot on Ubuntu12 or 13 sometime back and ran into many issues and gave up.(just did not want to spent a lot of time) moved back to django. Now I tried the lates version 2.3.6 and everything was working perfectly. I used gvm as installer. thanks for fixing bugs I think many people will like to use this in such a shape.

Suman Guha on January 27, 2014 at 4:44 am said: Mike really nice videos and tutorial. I got grails installed in 5mins and created web app. Can’t wait to deploy it on OpenShift. Reply ↓ mkelly on January 27, 2014 at 9:00 am said: That’s great news. Best of luck with your project. ~Mike Reply ↓

Mike really nice videos and tutorial. I got grails installed in 5mins and created web app. Can’t wait to deploy it on OpenShift.

mkelly on January 27, 2014 at 9:00 am said: That’s great news. Best of luck with your project. ~Mike Reply ↓

That’s great news. Best of luck with your project. ~Mike

j on June 25, 2013 at 2:29 pm said: it doesn’t work for grails version > 2.1.3 Reply ↓

it doesn’t work for grails version > 2.1.3

Rick Bragg on January 19, 2013 at 4:36 pm said: I tried this on 4 different ubuntu machines and ran into many problems along the way. On 10.10 the repo is no longer supported. On 12.04 among many problems the JAVA_HOME was NOT set, and after chatting on IRC, I was told that STS was buggy and not to use it at all, then I was told later that I needed STS… Ahh 2 days work, and 0 for 4 machines… I think I will go back to Perl::Dancer with JEdit… Reply ↓

I tried this on 4 different ubuntu machines and ran into many problems along the way. On 10.10 the repo is no longer supported. On 12.04 among many problems the JAVA_HOME was NOT set, and after chatting on IRC, I was told that STS was buggy and not to use it at all, then I was told later that I needed STS… Ahh 2 days work, and 0 for 4 machines… I think I will go back to Perl::Dancer with JEdit…

Valdearg on January 14, 2013 at 4:53 am said: Please be aware that the PPA seems to have stopped supporting Ubuntu 10.04 Lucid. Reply ↓ mkelly on January 14, 2013 at 11:05 am said: Thanks for catching that. I’m updating the install videos for Grails 2.2, and I’ll be sure to create a new Ubuntu virtual machine based on the latest release. Reply ↓ Sonu on February 4, 2013 at 12:25 am said: In my case, I already had the jdk intesllad and the error still occurred. To fix the problem I changed the Path environment variable and moved %JAVA_HOME%\bin to the beginning of the Path. Reply ↓

Please be aware that the PPA seems to have stopped supporting Ubuntu 10.04 Lucid.

mkelly on January 14, 2013 at 11:05 am said: Thanks for catching that. I’m updating the install videos for Grails 2.2, and I’ll be sure to create a new Ubuntu virtual machine based on the latest release. Reply ↓

Thanks for catching that. I’m updating the install videos for Grails 2.2, and I’ll be sure to create a new Ubuntu virtual machine based on the latest release.

Sonu on February 4, 2013 at 12:25 am said: In my case, I already had the jdk intesllad and the error still occurred. To fix the problem I changed the Path environment variable and moved %JAVA_HOME%\bin to the beginning of the Path. Reply ↓

In my case, I already had the jdk intesllad and the error still occurred. To fix the problem I changed the Path environment variable and moved %JAVA_HOME%\bin to the beginning of the Path.

jawad on June 5, 2012 at 2:59 am said: Nice video and helpful tutorial, I am running ubuntu 12 and I want to install Grails using Sun JDK instead of OpenJDK, because some of other projects require Sun JDK and things don’t work well when I have Open JDK as default. I have Sun JDK 1.7 installed already and working fine. Is there anyway to install grails from command-line using JDK 1.7? Reply ↓

Nice video and helpful tutorial, I am running ubuntu 12 and I want to install Grails using Sun JDK instead of OpenJDK, because some of other projects require Sun JDK and things don’t work well when I have Open JDK as default. I have Sun JDK 1.7 installed already and working fine. Is there anyway to install grails from command-line using JDK 1.7?

Sean on March 29, 2012 at 12:02 pm said: Hi Mike, Nice videos & tutorial. One little issue regarding the grails install on ubuntu, I had to additionally install openjdk-7-jdk on my 11.10 before the demo would run on a browser. sudo apt-get install openjdk-7-jdk Best. Reply ↓ mkelly on March 30, 2012 at 9:18 am said: Sean: That’s good to know. I always assumed that Ubuntu came with the JDK pre-installed. I’ll add that to the post. Mike Reply ↓ Tayyba on June 17, 2012 at 3:39 am said: Can you paste the output of set’ coamnmd somewhere(e.g. rafb.net/paste) and provide the link here? Open the coamnmd prompt and run the set coamnmd in it. I am pasting part of the output generated on my machine. Notice the paths set for JAVA_HOME, GROOVY_HOME, GRAILS_HOME and also the paths included in PATH variable.C:\> setALLUSERSPROFILE=C:\ProgramDataAPPDATA=C:\Users\tabrez\AppData\RoamingAPR_ICONV_PATH=C:\Program Files (x86)\Subversion\CLASSPATH=.;C:\Program Files (x86)\Java\jdk1.6.0_6)\Java\jre1.6.0_06\lib\ext\QTJava.zipCommonProgramFiles=C:\Program Files\Common FilesCommonProgramFiles(x86)=C:\Program Files (x86)\CoCOMPUTERNAME=TABREZ-PCComSpec=C:\Windows\system32\cmd.exeDFSTRACINGON=FALSEFP_NO_HOST_CHECK=NOGRAILS_HOME=c:\grailsGROOVY_HOME=C:\groovyHOMEDRIVE=C:HOMEPATH=\Users\tabrezJAVA_HOME=C:\Program Files (x86)\Java\jdk1.6.0_06[…]Path=c:\ruby\bin;C:\Windows\system32;C:\Program Files (x86)\MySQL\MySQL Server 5.0\bin;C:\Program Files (x86)\Subversion\bin;C:\Program Files (x86)\Java\jdk1.6.0_06\bin;C:\groovy\bin;c:\grails\bin;You can also try to see if proper version information is printed by running java -v, groovy -v and grails -v coamnmds. If all the paths are set properly, what error do you get when you try to create a grails application? Reply ↓

Hi Mike, Nice videos & tutorial. One little issue regarding the grails install on ubuntu, I had to additionally install openjdk-7-jdk on my 11.10 before the demo would run on a browser. sudo apt-get install openjdk-7-jdk

Best.

mkelly on March 30, 2012 at 9:18 am said: Sean: That’s good to know. I always assumed that Ubuntu came with the JDK pre-installed. I’ll add that to the post. Mike Reply ↓

Sean:

That’s good to know. I always assumed that Ubuntu came with the JDK pre-installed. I’ll add that to the post.

Mike

Tayyba on June 17, 2012 at 3:39 am said: Can you paste the output of set’ coamnmd somewhere(e.g. rafb.net/paste) and provide the link here? Open the coamnmd prompt and run the set coamnmd in it. I am pasting part of the output generated on my machine. Notice the paths set for JAVA_HOME, GROOVY_HOME, GRAILS_HOME and also the paths included in PATH variable.C:\> setALLUSERSPROFILE=C:\ProgramDataAPPDATA=C:\Users\tabrez\AppData\RoamingAPR_ICONV_PATH=C:\Program Files (x86)\Subversion\CLASSPATH=.;C:\Program Files (x86)\Java\jdk1.6.0_6)\Java\jre1.6.0_06\lib\ext\QTJava.zipCommonProgramFiles=C:\Program Files\Common FilesCommonProgramFiles(x86)=C:\Program Files (x86)\CoCOMPUTERNAME=TABREZ-PCComSpec=C:\Windows\system32\cmd.exeDFSTRACINGON=FALSEFP_NO_HOST_CHECK=NOGRAILS_HOME=c:\grailsGROOVY_HOME=C:\groovyHOMEDRIVE=C:HOMEPATH=\Users\tabrezJAVA_HOME=C:\Program Files (x86)\Java\jdk1.6.0_06[…]Path=c:\ruby\bin;C:\Windows\system32;C:\Program Files (x86)\MySQL\MySQL Server 5.0\bin;C:\Program Files (x86)\Subversion\bin;C:\Program Files (x86)\Java\jdk1.6.0_06\bin;C:\groovy\bin;c:\grails\bin;You can also try to see if proper version information is printed by running java -v, groovy -v and grails -v coamnmds. If all the paths are set properly, what error do you get when you try to create a grails application? Reply ↓

Can you paste the output of set’ coamnmd somewhere(e.g. rafb.net/paste) and provide the link here? Open the coamnmd prompt and run the set coamnmd in it. I am pasting part of the output generated on my machine. Notice the paths set for JAVA_HOME, GROOVY_HOME, GRAILS_HOME and also the paths included in PATH variable.C:\> setALLUSERSPROFILE=C:\ProgramDataAPPDATA=C:\Users\tabrez\AppData\RoamingAPR_ICONV_PATH=C:\Program Files (x86)\Subversion\CLASSPATH=.;C:\Program Files (x86)\Java\jdk1.6.0_6)\Java\jre1.6.0_06\lib\ext\QTJava.zipCommonProgramFiles=C:\Program Files\Common FilesCommonProgramFiles(x86)=C:\Program Files (x86)\CoCOMPUTERNAME=TABREZ-PCComSpec=C:\Windows\system32\cmd.exeDFSTRACINGON=FALSEFP_NO_HOST_CHECK=NOGRAILS_HOME=c:\grailsGROOVY_HOME=C:\groovyHOMEDRIVE=C:HOMEPATH=\Users\tabrezJAVA_HOME=C:\Program Files (x86)\Java\jdk1.6.0_06[…]Path=c:\ruby\bin;C:\Windows\system32;C:\Program Files (x86)\MySQL\MySQL Server 5.0\bin;C:\Program Files (x86)\Subversion\bin;C:\Program Files (x86)\Java\jdk1.6.0_06\bin;C:\groovy\bin;c:\grails\bin;You can also try to see if proper version information is printed by running java -v, groovy -v and grails -v coamnmds. If all the paths are set properly, what error do you get when you try to create a grails application?

mkelly on February 19, 2012 at 1:56 am said: Colby: Glad you are enjoying them. I am learning a lot as well by creating them. Regards, Mike Reply ↓

Colby: Glad you are enjoying them. I am learning a lot as well by creating them. Regards, Mike

Your email address will not be published. Required fields are marked *

Name *

Email *

Website

Comment

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Notify me of follow-up comments by email.

Notify me of new posts by email.