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.
To run Moira as an applet, expand org.athomeprojects.moiraApplet, right click on MoiraApplet.java, select Run->Java Applet. (Note. MoiraApplet can be signed or unsigned. The signed version will have access to the file system and provides additional data/image open/save options. To sign the applet, please take a look at the instructions at Steps for the Code Signer. To control the language used in the applet: either Traditional or Simplified Chinese, please take a look at the source code of applet_t.html or applet_s.html.)