Tuesday, June 9, 2009

Day 1 - Looking at Griffon (GRails for Swing Apps)

  1. Download the latest Griffon release. (6/9/09: Done)
  2. Extract the archive into an appropriate location; typically C:\griffon on Windows or ~/griffon on Unix. (6/9/09: Installed in c:/griffon-0.0.1 directory)
  3. Create a GRIFFON_HOME environment variable that points to the path where you extracted the archive (eg C:\griffon on Windows or ~/griffon on Unix). (6/9/09: Set up system variable "GRIFFON_HOME=c:\griffon-0.0.1".
  4. If you have not set the JAVA_HOME environment variable yet, create JAVA_HOME environment variable that points to the path where you have installed Java. (6/9/09: Set up system variable "JAVA_HOME=C:\Program Files (x86)\Java\jre6".
  5. Append a reference to the "bin" directory within the Griffon directory to your PATH variable (eg %GRIFFON_HOME%\bin on Windows or $GRIFFON_HOME/bin on Unix). Note that, for Windows, both PATH and GRIFFON_HOME must be defined at the same environment variable level (eg. 'System variables') rather than across environment variable levels (eg. PATH under 'System variables' and GRIFFON_HOME under 'User variables'). (6/9/09: Done)
  6. Type "griffon" at the command line, if a help message is displayed you are ready to start using Griffon! (6/9/09: Tried/Worked)
  7. If you get an error message, try to chmod +x the griffon script inside the bin directory. (6/9/09: Step 6 so skipped this line)
  8. Then I added this: "export PATH=$PATH:/cygdrive/c/griffon-0.0.1/bin" to $HOME/.bash_profile file and tried griffon and it did not work. I had to do griffon.bat.
  9. Tried "griffon.bat run-app" and got an error that I think is caused by setting JAVA_HOME to JRE instead of JDK, so I updated my JDK and changed my $JAVA_HOME to "c:\Program Files\Java\jdk1.6.0_14" (64-bit version). (6/9/09: Ran "griffon.bat runapp" and the small window came up. ) (see page 2 of Griffon: Riding the Griffon article)
  10. Tried "griffon.bat stats" and scripts were not found. Check scripts directory and they was no scripts.
  11. Tried to use "tree \a" and it is a "cmd" command, not a cygwin command, so I used "find . -type d" and found that "out" and "staging" and "test" directories were gone.
  12. NO TEST directories.

No comments:

Post a Comment