首页 > SAP > FIORI > SAP Cloud Platform for java 本地客户端的安装
2019
08-27

SAP Cloud Platform for java 本地客户端的安装

为了SAP Cloud Platform做JAVA开发,所以打算在本安装一个ECLIPSE,以下是安装过程,
更多SAP Cloud Platforms 安装使用可参看:http://www.ut163.com/download/01/SAP_Cloud_Platform_zh.pdf其中安装ECLIPS及配置的在第1058页。

一、打开SAP CLOUD 的安装指引:https://tools.hana.ondemand.com/
在其中说了安装的步骤,对于个人来说,我觉得应该是学习Neo的开发为主,所在要其中按NEO相关的安装。

Getting Started with SAP Cloud Platform Neo Environment

1.Download and unzip the SAP Cloud Platform Neo Environment SDK from the section below
2.Download and install the Eclipse IDE for Java EE Developers from Eclipse
3.Install the SAP Cloud Platform Tools.
From the Eclipse menu, choose Help > Install New Software…
For Eclipse Oxygen (4.7), add the URL: https://tools.hana.ondemand.com/oxygen
Then follow the steps of the installation wizard.

SAP Cloud Platform Neo Environment SDK

The SAP Cloud Platform SDK includes platform API JARs, a local runtime for testing, documentation, samples, and the SAP Cloud Platform console client. These are the major versions of the SAP Cloud Platform SDK:

SAP Cloud Platform Neo Environment SDK for Java Web – provides support for some of the standard Java EE APIs (Servlet, JSTL, EL)
SAP Cloud Platform Neo Environment SDK for Java Web Tomcat 7 – provides support for some of the standard Java EE APIs (Servlet, JSTL, EL)
SAP Cloud Platform Neo Environment SDK for Java Web Tomcat 8 – provides support for some of the standard Java EE APIs (Servlet, JSTL, EL)
SAP Cloud Platform Neo Environment SDK for Java EE 6 Web Profile – certified to support Java EE 6 Web Profile APIs
SAP Cloud Platform Neo Environment SDK for Java EE 7 Web Profile TomEE 7 – provides support for Java EE 7 Web Profile APIs

二、其中上面说的第一步“Download and unzip the SAP Cloud Platform Neo Environment SDK from the section below”应该是指下载后面的"Java Web Tomcat7 ""Java Web Tomcat8"之类的东西,但我觉得这些好像ECLIPS中本身就带着的,所以没有先下载,所以先下载了,ECLIPS,下载的是oxygen版本,据说SAP 云现只技术oxygen,及Neon版本了,所以建议就下载oxygen这个版本,其它的版本请先确认能不能支持。

对 Mars 支持的维护已经结束。建议您使用 Oxygen 或 Neon 版本。


下载后,解压后打开ECLIPS.
三、安装去相关的工具,菜单选择:Help > Install New Software…增加一个更新,比如SAP_CLOUD,地址为:https://tools.hana.ondemand.com/oxygen。如图,确认后,并选中“SAP Cloud Platform tool”,点击“next”,后面默认选择安装就行了
SAP Cloud Platform for java 本地客户端的安装 - 第1张  | 优通SAP

SAP Cloud Platform for java 本地客户端的安装 - 第2张  | 优通SAP

四、设置Eclips的SAP CLOUD Platform上的服务器区域设置。
对就免费测试账号(NEO开发)在http://www.ut163.com/download/sap/201801/SAP_Cloud_Platform_zh.pdf文件的第1002页可查询到,其它企业账号参参看1001页。
,账号为在https://account.hanatrial.ondemand.com/cockpit上申请的账号

SAP Cloud Platform for java 本地客户端的安装 - 第3张  | 优通SAP

五、安装配置SAP JVM,下载SAP JVM 的下载7.1版本:https://tools.hana.ondemand.com/ … 054-windows-x64.zip,解压到本地目录,

1. 在 Eclipse IDE 主菜单,选择 “窗口” “首选项” 。
2. 选择 “Java” “已安装 JRE” 。
3. 选择“添加”按钮。
标准虚拟机选为缺省 JRE 类型。
4. 选择“下一步”。
5. 在 “JRE 主页”字段,选择“目录…” 按钮并浏览到之前提取归档所在的 SAP JVM 文件夹。
6. 选择“完成”。
7. 在“首选项”窗口中,选择“确定”。

六、设置ECLIPS中的RUNING。
在 Eclipse IDE 中,为 Java 应用程序设置运行时环境。使用与您将用于在云中运行应用程序相同的运行时环境。
在此需要先下载SAP 云的SDK:https://tools.hana.ondemand.com/,在其中找到
SAP Cloud Platform Neo Environment SDK下载,在此下载Java EE 7 Web Profile TomEE 7,不要下载6的了,6版本的在20171231后云已不在支持。版本比较可查看第1123页.感觉上好像JAVA EE版本支持的更多一些,,下载后解压到自己本地的一个目录中,如下操作,并在JAR选择第五步中安装的JVM.

1. 在 Eclipse IDE 主菜单,选择 “窗口” “首选项” 。
2. 选择 “服务器” “运行时环境” 。
3. 选择“添加”按钮。
4. 选择 “SAP” “Java EE 7 Web Profile TomEE 7” 。
5. 选择“下一步”。
6. Java Web 设为缺省名称。您可以根据需要更改。
7. 选择单选按钮“使用以下位置的 Java Web SDK”。
8. 如果之前添加了 SDK for Java Web,您的 SDK 位置是缺省设置并且没有错误。否则,使用“浏览”按钮定位
SDK。
9. 选择“完成”。
10. Java Web 添加为服务器运行时环境。
11. 在“首选项”窗口中,选择“确定”。

到这里应该算是安装完成了,后面就可以试下,第6步中,下载来的文件目录中的/samples,里面有一些例子,可以进行学习,具体的例子功能说明,或参看pdf的1206页
从 Eclipse IDE 的主菜单中,选择 “文件” “导入…” “常规” “将现有项目导入工作区” ,然后选择“下一
步”, 然后选择/samples中的一个DEMO,可导入。导入项目后,如项目报错,可以:项目上点右键-》Build Path->Configure  Build Path->Libraries 双击JAVA EE…进去后选择完成,重新加载后就好了。

最后编辑:
作者:yangsen
本站为个人博客网站,全由我个人维护,我从事SAP开发13年,其它ERP开发7年,基本都是零售行业。本站记录工作学习的过程, 有SAP相关询问专、兼职工作可随时联系我。 有网站相关的问题可直接在文章下方留言,或者联系我。 邮件:yan252@163.com给我。 QQ:415402519

留下一个回复

你的email不会被公开。