• Startseite
  • Über mich
  • Portfolio
    • Eventmanagement
    • Technologie
      • Multitouch-Surface
      • Multitouch-Table
    • Smartphone-Apps
    • Unternehmen
    • Presse
  • Programmierung
  • Auto
  • Wirtschaftsinformatik

Patrick Hütter

Mein Blog rund um Softwareentwicklung, Online-Marketing, StartUps, Gründung, Unternehmertum, Trends and more

Running Grails applications on the Raspberry Pi

0
  • by Patrick Hütter
  • in Code-Snippets · Linux · Programmierung · Server · Shell
  • — 9 Mai, 2014

Raspberry PiOracle released an optimized hard-float JVM for the ARM architecture and plattforms so i decided to run a grails application on my raspberry pi wich offers a REST api for some connected devices and sensors. I’m using raspbian linux distribution wich is a debian fork optimized for the raspberry pi.

Here are some steps how i got it working:

1. Install the Java SDK (Version 7, 8 ist not supported by grails now, but will be in future)

sudo apt-get install oracle-java7-sdk

2. Start the Grails application in client mode, not server mode (default), because otherwise you get the following error message:

Error occurred during initialization of VM
Server VM is only supported on ARMv7+ VFP


…so change settings to client mode

export GRAILS_OPTS="-client -Xmx128M -Xms127M -XX:PermSize=128m -XX:MaxPermSize=128m -Dfile.encoding=UTF-8"

…and run grails in your project directory.

grails run-app

After some seconds should your grails application start and you can access it on http://localhost:8080.

Share

Tags: armGrailsJavaraspberry pi

— Patrick Hütter

Patrick ist Gründer und Geschäftsführer der encircle360 GmbH. Er liebt Technologie und kennt sich sehr gut im Bereich Softwareentwicklung, u.a. auf JVM basierten Technologien wie Spring Boot, VertX, Akka, Groovy, Scala & Elasticsearch aus.

  • Previous story [HowTo] Build groovy project and package as jar (with all dependencies) for easy distribution with gradle
  • Next story Unitymedia DNS Probleme und Lösungsmöglichkeiten für Mac OS X, Windows und den eigenen Router
  • Du suchst richtig gute Beratung im Bereich Software & IT?

    encircle360
  • Neueste Beiträge

    • Running headscale with headscale-admin (UI), letsencrypt & docker-compose in dual stack with IPv4 and IPv6
    • Groovy & Grails suchen einen neuen Hauptsponsor
    • Unitymedia DNS Probleme und Lösungsmöglichkeiten für Mac OS X, Windows und den eigenen Router
    • Running Grails applications on the Raspberry Pi
    • [HowTo] Build groovy project and package as jar (with all dependencies) for easy distribution with gradle
  • Neueste Kommentare

    • nototok bei Running headscale with headscale-admin (UI), letsencrypt & docker-compose in dual stack with IPv4 and IPv6
    • Muiz bei Running headscale with headscale-admin (UI), letsencrypt & docker-compose in dual stack with IPv4 and IPv6
    • John Tucker bei Running headscale with headscale-admin (UI), letsencrypt & docker-compose in dual stack with IPv4 and IPv6
    • Bastlerwastl bei HowTo: Squid Proxy Server unter Debian schnell eingerichtet
    • PatrickHuetter bei So geht’s: Macbook mit zwei externen Monitoren verbinden
  • Kategorien

    • Allgemein
    • Android
    • Code-Snippets
    • Datenbanken
    • Elektrotechnik
    • Licht
    • Linux
    • Mac
    • Messe
    • Online-Marketing
    • Programmierung
    • Projektmanagement
    • SEM
    • SEO
    • Server
    • Shell
    • Social Media
    • Web
  • Weiterführende Links

    • Price API
    • encircle360
    • sellytics
  • Impressum
  • Datenschutz

© Patrick Hütter