Hi Shahrul,
Running KIM on Mac OS X is easy when you know one thing: tools.jar
does not exist in Mac OS X. Classes usually located here are instead
included in classes.jar. Therefore scripts that rely on the existence
of tools.jar need to be rewritten accordingly. Till then, you could
edit the script config_machine.sh, which is located at KIM_HOME/bin
directory and try to delete the following code on line 30:
&& [ -e "$JAVA_HOME/lib/tools.jar" ]
the entire script should look like:
#!/bin/bash
### **********************************************************
### * config_machine.bat
### **********************************************************
### * This file contains machine-specific configuration, including
### * path to specific applications, etc. which are not KIM-specific
### **********************************************************
### **********************************************************
### Set these paths override their environment values
### **********************************************************
_JAVA_HOME=''
_TOMCAT_HOME=''
# look up JAVA_HOME first from this file,
# if not set - from the environment variable
if [ "$_JAVA_HOME" != "" ]; then
export JAVA_HOME="$_JAVA_HOME"
else
if [ $JAVA_HOME == "" ]; then
echo "ERROR: The setting "JAVA_HOME"="$JAVA_HOME" does not point to
a Java installation! Exiting ..."
exit 1
fi
fi
echo "JAVA_HOME=$JAVA_HOME"
# test if JAVA_HOME is correctly set!
if [ -x "$JAVA_HOME/bin/java" ]
then
`$JAVA_HOME/bin/java -version`
else
echo "ERROR: The path "JAVA_HOME"=="$JAVA_HOME" contains only a JRE
Java package where JDK is needed! Exiting ..."
exit 1
fi
# look up TOMCAT_HOME first from this file,
# if not set - from the environment variable
if [ "$_TOMCAT_HOME" != "" ]; then
export TOMCAT_HOME="$_TOMCAT_HOME"
else
if [ "$CATALINA_HOME" != "" ]; then
export TOMCAT_HOME="$CATALINA_HOME"
else
echo "WARNING: TOMCAT_HOME not set!"
fi
fi
# test if TOMCAT_HOME is correctly set!
if [ "$TOMCAT_HOME" == "" ] || [ ! -x "$TOMCAT_HOME/conf/
catalina.properties" ]
then
echo "WARNING: TOMCAT_HOME not correctly set!"
fi
echo "TOMCAT_HOME=$TOMCAT_HOME"
Hope that helps, and if you need more assistance, please, do not
hesitate to write.
Regards,
Krum
On Oct 31, 2009, at 7:43 AM, Shahrul Azman Noah wrote:
Dear all,
Does anybody has experience installing or running KIM in Mac OS X?
Thank you
Shahrul
_______________________________________________
Kim-discussion mailing list
[email protected]
http://ontotext.com/mailman/listinfo/kim-discussion
_______________________________________________
Kim-discussion mailing list
[email protected]
http://ontotext.com/mailman/listinfo/kim-discussion