DB2 Express-C on Mac OS X

db2installationmac os x

I have followed all the steps described on the Getting Started with DB2 Express v9.7 e-book and installed DB2 Express-C on my Mac. The installation succeeded without a problem.

I did setup OS X according to this blog post: http://programmingzen.com/2009/01/20/installing-db2-on-mac-os-x/

After the installation, I set up the DB2 instance environment as instructed and was able to start DB2 with:
$ db2start

But I was unable to run db2fs. It returns the following error message:

$ db2fs
sh: /Users/ivan/sqllib/java/jdk64/jre/bin/java: No such file or directory DB2JAVIT : RC = 127

What else do I have to setup in order to make it work on my system?

Best Answer

Sounds like DB2 doesn't know where Java is installed.

See the following three links for related information.

Link One

Link Two

Link Three

I realize these are for Linux and you are on Max OSX, but Mac's OS is a variant of Unix, so the solution should be similar.

Related Question