How to build - Moira

How to build 七政四餘星盤 天星擇日 占星盤 - Moira

    • Download and install Eclipse 3.4.2 or later (Eclipse IDE for Java Developers ) from http://www.eclipse.org, setup the workspace.

    • Create a new Java project with Moira as project name. File->New->Java Project. Enter Moira as project name, select "use project folder and root for sources and class files", and click Finish.

    • Right click on Moira project and select Import->General->Archive File and select source.zip.

    • Install Moira if not done already, go to the Moira installation folder and copy the following files to the Moira folder under the Eclipse workspace

        • ephe (folder)

        • icon (folder)

        • readme.html, splash.png

        • moira.ico

        • moira_t.prop, moira_s.prop, cities.prop

        • swt-win.jar, swt-win32-3064.dll

        • WMM.COF

    • Right click on Moira, select Properties. Click Java Build Path, then Library tab and click Add External Jars to add the following 2 jars

        • <Eclipse workspace>\Moira\swt-win.jar

        • <Java Runtime Environment installation path>\lib\plugin.jar

    • Click OK. (Note: You can also change the Java Compiler compliance level to 1.4 to minimize the number of warnings.)

    • Right click on the Moira project and select Refresh.

    • To run Moira as an application, expand org.athomeprojects.moira, right click on Moira.java, select Run as->Java Applcation.