Skip to Content

Introduction: Earlier there were issues if we use different versions of NWDS installation on the same system. Eclipse associated with Cloud, extracts into a different location so there won’t be any issue when we have multiple versions on NWDS on the same system. Issue will be with the path if you have to use a different JRE for NWDS which can be adjusted in the path settings.

Following document contains the steps and screen capture of configuring the Eclipse. I referred the SAP Help link for this installation; I have added some additional details with the screen capture.

Download of required files

  1. Login to https://tools.netweaver.ondemand.com/ with SDN user id/password.
  2. Download SAP NetWeaver Cloud SDK (neo-sdk-1.10.0.zip). Extract the files to the folder c:\neo-sdk-1.10.0.

Img1.JPG

3. Download and install the Eclipse IDE for Java EE Developers from Eclipse (eclipse-jee-juno-SR1-win32-x86_64.zip). Extract the files to the folder c:\eclipse-jee-juno-SR1-win32-x86_64.

Img2.JPG

4. Before installing SAP JVM, in case of Windows OS, install the Visual C++ 2005 Runtime from the following site

     http://www.microsoft.com/en-us/download/details.aspx?id=14431

    Download and install the file vcredist_x64.exe.

5. Download SAP JVM, this is available under the ‘Additional Software’ area. Click the ‘Additional Software’. Extract the file sapjvm-6.1.043-ntamd64.zip

Img3.JPG

6. Open Eclipse from the installed location, in my case “C:\eclipse-jee-juno-SR1-win32-x86_64\eclipse”.

Note : In case if there are other version of NWDS with older JVM, Eclipse may not open. In this scenario, please navigate the Eclipse installation directory. Use the following command to open the Eclipse (folder/file path are based on the above installation steps. If there is any change in the folder name during your installation then please rename the folder accordingly)

eclipse -vm C:\sapjvm-6.1.043-ntamd64\sapjvm_6\jre\bin\java.exe

7. If there is a prompt for a workspace, please select appropriate path. Following is the appearance of the workbench.

Img4.JPG

Eclipse Proxy Configuration

8. From the main menu, choose Window ==> Preferences

9. Check your browser to see if there is a proxy is used to connect to internet. If a proxy is used then follow the below steps

a. Go to General è Network Connections.

b. From the Active Provider dropdown menu, choose Manual.

c. Configure your HTTP and HTTPS connections.

d. Choose Apply and close the window.

Img5.JPG

Configuration of Juno/Indigo in Eclipse


10. From the main menu, choose Help è Install New Software

     a. In case of ‘Juno’ use this URL https://tools.netweaver.ondemand.com/juno

     b. If there is a prompt to login, used SDN user id/ password.

Img6.JPG

  c.Screen should look like the following, Select ‘SAP Netweaver Cloud’ and click the Next button

Img7.JPG

   d. Review the items to install and click next button.

   e. Read and accept the Eclipse license agreement and choose Finish. Software installation may take some time.

   f. Restart the Eclipse IDE. Screen should look like the following

  Img8.JPG

Setting up the SAP NetWeaver Cloud Runtime Environment

11. Following are the steps to configure NW Cloud SDK

     a. From the Eclipse IDE main menu, choose Window è Preferences.

     b. Choose Server è Runtime Environment.

     c. Choose the Add button.

     d. Select SAP è SAP NetWeaver Cloud and choose Next.

Img9.JPG

    e. SAP NetWeaver Cloud is set as the default name.

    f. Select the radio button Use SAP NetWeaver Cloud SDK from the following location

Img10.JPG

   g. The previously selected SDK location is set by default. Choose Finish.

   h. The server runtime environment SAP NetWeaver Cloud is added. This is the default runtime you will later use to deploy Java EE applications and for  

       consuming services. On the Preferences window, choose OK.

Setting Up the SAP JVM in the Eclipse IDE

12. Following are the steps to configure SAP JVM. If the SAP JVM is already present please ignore the following steps

Img11.JPG

  1. From the Eclipse IDE main menu, choose Window ==> Preference.
  2. Choose Java ==> Installed JREs. Check if Standard VM is set as the default JRE type.
  3. Choose the Add button, click Next button.
  4. For the JRE home field, choose the Directory… button and browse to the SAP JVM folder contained in the folder that you have previously extracted the archive to.
  5. Choose Finish, click Ok.
  6. Open again the Preferences window and choose Plug-in Development ==> Target Platform.
  7. Make sure that SAP NetWeaver Cloud SDK is selected. Then choose the Edit button.

Img12.JPG

  h. Choose the Environment tab, select JRE name. If sap jvm entry is not present then add it and click on Finish.

Img13.JPG

To report this post you need to login first.

3 Comments

You must be Logged on to comment or reply to a post.

  1. Vimal Vidyadharan

    Great Article Prem.

    Many people trying to run Eclipse for SAP Cloud dev might not be regular Java developers and can run into trouble with Eclipse set up, and creating their first Cloud app.

    This article for sure will relieve their troubles like it did for me.

    I was frequently getting mesages as given below and unable to create even my HelloWorld program.

    org.eclipse.swt.SWTError: No more handles

    Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread “Worker-4”

    I had my JVM set to <SAP JVM directory>\bin\javaw.exe as available in the Eclipse documentation. I think that does not work for SAP JVM. It wasn’t working for me.

    Based on this article, I changed the JVM path to <SAP JVM directory>\jre\bin\java.exe

    and it worked!

    Thanks again,

    (0) 

Leave a Reply