Entries from September 2008 ↓
September 6th, 2008 — Flex & Flash
Have you ever generated graphics with Flex? Flex comes with a lot of powerful graphics tools, but it can get pretty hard to do interesting stuff with it. But you need not worry anymore!
Degrafa is a project dedicated to the development of a Declarative Graphics Framework for Flex.
Their intro paragraph says:
The focus behind the Declarative Graphics Framework (Degrafa) is to bring the graphics classes up a level to provide a common ground between developer and designer within Flex, and enable the graphics classes to become first class citizens within the Flex framework.
In simple language, Degrafa allows you to achieve complex graphics using simple tag based syntax. It’s easy to learn and is very fast. I was amazed to see the samples!

Degrafa Samples
The next time we need some low level graphics work, I am going with Degrafa!
September 2nd, 2008 — Apple
I have been playing around with a lot of Java tools these days! I was trying out XPlanner and when I ran the startup shell script, it spit out the infamous error!
The JAVA_HOME environment variable is not defined correctly
This environment variable is needed to run this program
NB: JAVA_HOME should point to a JDK not a JRE
I tried a couple of things, but they did not work. A bit of Google, and found an easy way.
Here are the steps!
- Open Terminal.
- First confirm you have JDK by typing “which java”. It should show something like /usr/bin/java.
- Check you have the needed version of Java, by typing “java -version”. My setup shows java version “1.5.0_13″
- JAVA_HOME is essentially the full path of the directory that contains a sub-directory named bin which in turn contains the java.
- For Mac OSX - it is /Library/Java/Home (There are other directories too, but this is the simplest!)
- Set JAVA_HOME using this command in Terminal: export JAVA_HOME=/Library/Java/Home
- echo $JAVA_HOME on Terminal to confirm the path
- You should now be able to run your application
This sets JAVA_HOME only for this session. If you want it to persist, you will have to add the command to your ~/.profile file.
For more details on this, refer to Sean Brown’s blog post.