Archive for the 'Uncategorized' Category

JAVA_HOME is not defined correctly

I have been working with Grails and Groovy for the last little while and have started to use IntelliJ as my ide of choice since NetBeans Groovy/Grails support is still pending release. I did have an issue getting intelliJ to work though and I found someone else who had the same problem but also had the solution:

POSTED HERE:http://jlorenzen.blogspot.com/2007/10/jetgroovy-plugin-tip-in-linux.html

Tip for using Grails in Idea

Recently I tried creating my first Grails application using the JetGroovy plugin available in Idea (version 7.0). However, I have Linux (Ubuntu 7.10) and you don’t get those nice little icons to start Idea when you install it. Consequently when I tried to create a new Grails project I received the following error:

grails: JAVA_HOME is not defined correctly; can not execute: java

How in the world is that possible I thought to myself? What half decent java programmer doesn’t have JAVA_HOME set? Oh but then I remembered my special start script responsible for starting Idea. Idea requires the variable JDK_HOME to be set, but Grails within Idea needs JAVA_HOME. Therefore, here is my new script I use to start Idea 7 which allows me to create new Grails projects. And don’t forget Idea 7 on Linux requires JDK 1.6.

sh -c ‘export JDK_HOME=/workspace/java/jdk1.6.0_03;export JAVA_HOME=/workspace/java/jdk1.5.0_12;/workspace/java/idea-7361/bin/idea.sh’

Some cool things to get the mind working…

So I came across a few interesting things today, one is this Jack PC which is a dam small computer. I want to get one of these and put it inside a desk and make it a terminal unit that runs linux so I can XDMCP into an X server. Imagine desks that come with a computer! Fun food for thought. Makes bringing in new employees a breeze.

The second thing I came across today was this very cool video of one persons daily photograph over a span of years. When you watch this pay attention to how the guys nose grows over the years.

I’m playing arround with Lua right now and I will post some screen casts soon I think. Its been a while since I did a video. Those intrested should head over to www.democamp.ca and watch my old video podcast (see the side bar).

An update to Database Web Services

I found this great explanation of wrapping a database in a web service today http://www.stanford.edu/dept/itss/docs/oracle/10g/java.101/b12021/callouts.htm . The author covers Oracle┬« Database Java Developer’s Guide 10g Release 1 (10.1) Part Number B12021-02 and how to use it to create web services around a db.