您的位置:首页 > 运维架构

OPhone SDK Documentation (安装过程)

2009-08-03 13:42 127 查看


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的编译文件

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)
Start Eclipse, then select Help
> Software Updates...
.

In the dialog that appears, click the Available Software
tab.

Click Add Site...
, then Archive...

Browse and select the downloaded the zip file.

Back in the Available Software view, you should see the plugin. Select the checkbox next to Android Development Tools
and click Install...

On the subsequent Install window, "Android Deveopment Tools" should be checked.
Click Finish
.

Restart Eclipse.

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)
Start Eclipse, then select Help
> Software Updates...
.

In the dialog that appears, click the Available Software
tab.

Click Add Site...
, then Archive...

Browse and select the downloaded the zip file.

Back in the Available Software view, you should see the plugin. Select the checkbox next to
Widget Development Tools
and click Install...

On the subsequent Install window, "Widget Development Tools" should be checked.
Click Finish
.

Restart Eclipse.

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的图标,再就是主界面
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息