1.在OPhone官网上下载SDK url:http://www.ophonesdn.com/
免费注册后就可以下载sdk
2.Eclipse IDE环境
- Eclipse IDE
- Eclipse 3.4.2 (Ganymede)
- JDK 5 or JDK 6 (JRE alone is not sufficient)
- ADT plugin (安装SDK后再装)
- WDT plugin (安装SDK后再装)
3.安装SDK过程 "java -jar sdk-package-file.jar "
Click "Next", and then choose accepting the license if you want to continue the installing.
3.配置SDK
在~/.bashrc 里PATH中加上${PATH}:<your_sdk_dir> /tools
4.安装SDK的中文帮助文档
tools/ophone/ophone.sdk.doc_VERSION .jar 复制到eclipese的plugins文件夹下
5.加载SDK的编译文件
- Select Window > Preferences... to open the Preferences panel.
- Select Java > Build Path > User Libraries from the left panel.
- In the User Libraries panel, click New to open 'New User Libraries' dialog and input OPhone , and press OK .
- Click Add JARs to select oms.jar in OPhone SDK root folder, and OK . Now the OPhone User Library has been added to the build path in Eclipse IDE. When a new OPhone project is created, you also need add the OPhone User Library to the build path of the created project in order to use OPhone APIs.
- Still in previous window, double click at Javadoc Location under OPhone branch, and new window with captionJavadoc For 'oms.jar' will appear. Then choose the item of Javadoc in arc hive , and select the /plugins/ophone.sdk.doc_VERSION .jar under your Eclipse IDE. Then choose OK to finish the configuration.
6.安装ADT
sdk_folder/tools/ophone/ADT-0.8.0.zip.
For Eclipse 3.4 (Ganymede) |
---|
|
After restart, update your Eclipse preferences to point to the SDK directory:
- Select Window > Preferences... to open the Preferences panel.
- Select Android from the left panel.
- For the SDK Location in the main panel, click Browse... and locate the SDK directory.
- Click Apply , then OK .
7.安装WDT
The WDT zip is available in the SDK: sdk_folder/tools/ophone/jil-wdt-site.zip
For Eclipse 3.4 (Ganymede) |
---|
|
After restart, update your Eclipse preferences to point to the SDK directory:
- Select Window > Preferences... to open the Preferences panel.
- Select Widget from the left panel.
- For the SDK Location in the main panel, click Browse... and locate the SDK directory.
- Click Apply , then OK .
8.运行模拟器
在终端输入: sdk_folder/tools/emulator -skin HVGA 等等就会出现OPhone的图标,再就是主界面