Thursday, February 14, 2008

setting JAVA_HOME in MacOS X for running geronimo

when trying geronimo, I had problem with the JAVA_HOME variable. The solution is to execute this command before running the geronimo:

// go to the bin directory of geronimo, depends on your own location
daniel-adinugrohos-macbook-pro:~ adinugro$ cd Desktop/geronimo/geronimo-tomcat6-jee5-2.0.2/bin

// set JAVA_HOME varible
daniel-adinugrohos-macbook-pro:bin adinugro$ export JAVA_HOME=/Library/Java/Homedaniel-adinugrohos-macbook-pro:bin

// execute the geronimo
adinugro$ ./startup.sh

that's all. check whether your geronimo running from your fav browser and go to http://localhost:8080

No comments: