OPhone SDK 安装过程

符修杰
2023-12-01

1.在OPhone官网上下载SDK url:http://www.ophonesdn.com/
    免费注册后就可以下载sdk

2.Eclipse IDE环境

•Eclipse IDE
•Eclipse 3.4.2 (Ganymede)
•Eclipse JDT plugin (included in most Eclipse IDE packages)
•WST 3.0.4
•EMF 2.4.2
•GEF 3.4.2
•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的编译文件

1.Select Window > Preferences... to open the Preferences panel.
2.Select Java > Build Path > User Libraries from the left panel.
 

1.In the User Libraries panel, click New to open 'New User Libraries' dialog and input OPhone , and press OK .
 

1.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.
 

1.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)
1.Start Eclipse, then select Help > Software Updates... .
2.In the dialog that appears, click the Available Software tab.
3.Click Add Site... , then Archive...
4.Browse and select the downloaded the zip file.
5.Back in the Available Software view, you should see the plugin. Select the checkbox next to Android Development Tools and click Install...
6.On the subsequent Install window, "Android Deveopment Tools" should be checked. Click Finish .
7.Restart Eclipse.
 

After restart, update your Eclipse preferences to point to the SDK directory:

1.Select Window > Preferences... to open the Preferences panel.
2.Select Android from the left panel.
3.For the SDK Location in the main panel, click Browse... and locate the SDK directory.
4.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)
1.Start Eclipse, then select Help > Software Updates... .
2.In the dialog that appears, click the Available Software tab.
3.Click Add Site... , then Archive...
4.Browse and select the downloaded the zip file.
5.Back in the Available Software view, you should see the plugin. Select the checkbox next to Widget Development Tools and click Install...
6.On the subsequent Install window, "Widget Development Tools" should be checked. Click Finish .
7.Restart Eclipse.
 

After restart, update your Eclipse preferences to point to the SDK directory:

1.Select Window > Preferences... to open the Preferences panel.
2.Select Widget from the left panel.
3.For the SDK Location in the main panel, click Browse... and locate the SDK directory.
4.Click Apply , then OK .
8.运行模拟器
在终端输入: sdk_folder/tools/emulator -skin HVGA 等等就会出现OPhone的图标,再就是主界面

 类似资料: