JacORB on Linux and Mac OSX
Philip Gasser | 28/04/2011We have seen many Classmates having trouble to get JacORB running on Linux and Mac OSX, so here is a step-by-step installation tutorial:
Change to the directory where JacORB should be located:
cd ~/src/
Move the provided zip file to the location (or get jacorb via wget):
mv ~/Downloads/SW8-Komponentenarchitektur.zip .
Unzip the file:
unzip SW8-Komponentenarchitektur.zip
Rename the folder to something reasonable:
mv SW8-Komponentenarchitektur jacorb
Change to the directory:
cd jacorb
Unzip the jacorb source:
unzip jacorb-2.3.1-src.zip
Rename the new folder to something reasonable. I use the Version as folder name, so i can have multiple versions in this directory:
mv jacorb-2.3.1-src 2.3.1
Edit the Properties File and fill in the current Paths:
vi jacorb.properties
jacorb.home=/Users/gasserp/src/jacorb/2.3.1
java.endorsed.dirs=/Users/gasserp/src/jacorb/2.3.1/lib
jacorb.naming.ior_filename=/Users/gasserp/src/jacorb/2.3.1/lib/NS_Ref
ORBInitRef.InterfaceRepository=file:/Users/gasserp/src/jacorb/2.3.1/lib/IR_Ref
Move the Properties file to the correct location:
mv jacorb.properties 2.3.1/etc/
Build the Code:
cd 2.3.1
ant clean
ant
Move up one directory:
cd ..
Remove unused Files:
rm apache-ant-1.7.0-bin.zip
rm jacorb-2.3.1-src.zip
rm set_env.cmd
rm start_ns.cmd
Set you Path for the NS binary:
export PATH=$PATH:/Users/gasserp/src/jacorb/2.3.1/bin/
Start the NS Service:
ns -DOAPort=38693
Remember: The Path you set via export is only valid in the actual Shell. If you want to set your PATH permanently, add the following line in your ~/.bashrc or ~/bash_profile:
PATH=$PATH:/Users/gasserp/src/jacorb/2.3.1/bin/
export PATH
Your done!





