On Sunday, I bought the new MacBook AIr and I had to install LiveCycle 3 Beta again and decided to create some installation notes for my own records. I am sure other will find this post helpful.
Install LiveCycle 3 Beta
Download LiveCycle 3 beta mac: http://labs.adobe.com/technologies/livecycle_dataservices3/

Install Java
Check if java installed: java version. In case it’s not installed you will get an error message: “Exception in thread “main” java.lang.NoClassDefFoundError: version “.
In case it’s not installed follow this link to download and install: http://developer.apple.com/java/download/

To ensure it was installed correctly. First check where the java is located:
which java output: usr/bin/java
Next we can check if it’s a symbolic link:
ls -al java* (shows that it’s a symbolic link)

Add environment variables
Next we want to create personal settings file: .bash_profile, which it will always be in the ‘users’ home directory.
To create the file type:
nano ~/.bash_profile
Type in the following code:
# Set environment variable export JAVA_HOME=/usr export CATALINA_HOME=/Applications/lcds/tomcat
Click Control+x and y to save the file.
To verify that the variables are set correctly. Type logout and open terminal again and type in:
echo $CATALINA_HOME
echo $JAVA_HOME
You should see as an output the variables we set.

Starting and Stopping Tomcat
First we need to ensure that our user is the ownership of tomcat and bin folder:
sudo sh chown -R elad:staff /Applications/lcds/tomcat chown -R elad:staff /bin exit
Note: my user name is ‘elad’ make sure you change the script to your user name.
Next we want to create start and stop tomcat scripts so we can start and stop the services easily from any location.
cd /bin chmod a+x /bin nano start_tomcat
Once nano starts paste the following variable declarations:
#!/bin/sh export CATALINA_HOME=/Applications/lcds/tomcat export JAVA_HOME=/usr $CATALINA_HOME/bin/startup.sh
Next, add the stop file: nano stop_tomcat
#!/bin/sh export CATALINA_HOME=/Applications/lcds/tomcat export JAVA_HOME=/usr $CATALINA_HOME/bin/shutdown.sh
Finally, you must make these files executable:
chmod ug+x start_tomcat stop_tomcat
To start/stop tomcat:
start_tomcat stop_tomcat

If you get any issue then you can check the Catalina.out to see the tomcat logs. To following command will allow you to tail the logs in terminal:
cd /Applications/lcds/tomcat/logs tail -f catalina.out
Now we are done with the installation and we can see the welcome page for LCDS:
http://localhost:8400/

Start hsqldb
We are almost done. The last step is for us to start the hsqldb database to see the examples provided with LCDS:
cd /Applications/lcds/sampledb ./startdb.sh
In case you want to see the content of the database provided with the examples, feel free to download a SQL manager such as Razor.
The location of the database is here:
/Applications/lcds/sampledb/flexdemodb/flexdemodb.script
User name: sa
passowrd:
You can now view the sample applications here:
http://localhost:8400/lcds-samples/






















