> ## Content Index
> Fetch the complete content index at: https://tim.sodhis.org/llms.txt
> Use this file to discover other available public pages before exploring further.

# Coppercore for Mac OS X - a HowTo
- URL: https://tim.sodhis.org/coppercore-for-mac-os-x-a-howto-2/
- Published: 2007-06-05T13:22:07.000Z
- Updated: 2007-06-05T13:22:07.000Z
- Author: Tim Sodhi
- Tags: #wordpress, #Import 2026-01-11 22:49

Getting Coppercore to run on my Mac has turned out to be more an ordeal than I had earlier imagined. The scripts needed to be changed and the environment set. There is not too much help on the web for Mac users of CCRT, so here is my little how-to.

First set the $JAVA\_HOME variable to point to where you have installed Java. In Windows it is very straightforward. In OS X, jump to the tcsh and locate your Java folder. Just type

> which java

Use the output. In my case it was /usr/bin/java

> JAVA\_HOME=/usr/bin/java  
> export JAVA\_HOME

To check whether it has been included in the env, type

> printenv

You should see the JAVA\_HOME included in the enviroment settings. Remember, though this is tcsh, setenv doesn’t work.

Next, open the coppercore shell script (coppercore.sh) with TextEdit and paste the following in there directly

> #Shell script to launch CCRT on OS X
> 
> DIRNAME=\`dirname $0\`  
> DIRNAME=\`cd $DIRNAME; pwd\`
> 
> \# Add the CopperCore.properties to the class path  
> JBOSS\_CLASSPATH="$DIRNAME:"  
> export JBOSS\_CLASSPATH
> 
> \# Setup file prefix for configuration  
> JAVA\_OPTS=-Dcoppercore.prefix="$DIRNAME/"  
> export JAVA\_OPTS
> 
> \# Launch JBoss, include the path to the contained  
> \# JBoss folder  
> exec "$DIRNAME"/jboss-4.0.4.GA/bin/run.sh $\*
> 
> exit 0

Now open your clicc.sh, in case you want to go via the clicc route and avoid the web based (SLeD) path. Again using TextEdit and now make the following changes to the Script. Change

> $JAVA\_HOME/bin/java $SP -cp "$CP" org.coppercore.clients.Clicc

to

> $JAVA\_HOME/usr/bin/java $SP -cp "$CP" org.coppercore.clients.Clicc

Save, and exit. Now execute the coppercore.sh, and then clicc.sh

> ./coppercore.sh
> 
> ./clicc.sh

And there you have it! Continue as recommended on the [Coppercore](http://www.coppercore.org/?ref=tim.sodhis.org) website.

![](https://tim.sodhis.org/content/images/wordpress/2007/06/picture-2-m.jpg)