2012年6月1日 星期五

Set up a CloudStack development Environment

I. Set up the development environment
Following are a brief steps of setting up CS development Environment. For the detail steps, check Citrix document 132013.
  1. Install Java JDK.
  2. Install Apache TomCat. (Avoid Tomcat 6.0.35, since it has some problem with CloudStack).
  3. Install Apache ANT.
  4. Install git.
II. Use Eclipse to develop

Import CS src to Eclipse:
Since CloudStack uses Java, it's easier to use Eclipse to develop our own program. After done the first part, all we need to do is to import the CS source code to Eclipse. Check the importing source to Eclipse part of CloudStack document.

Import Eclipse preference:
CloudStack provides the Eclipse preference, just download the attachment in the article, and import it into Eclipse. File->import->General->Preferences->the download file location.

III. Errors in Eclipse:
After CS src was imported to Eclipse, there are many errors. most of them is because awsapi this project. 
awsapi project missed its Libraries. We just need to add the missed jars to it. The missed jars are in project deps/awsapi-lib. Add all jars in awsapi project, then lots of errors can be solved.

For other errors, still checking...