Skip to Content

Prerequisites

You should have already installed and be running Ubuntu. You might be surprised to know you can run Ubuntu from a USB drive. It would be easier to relate to all the topics if you already made a “Hello World” using SAPUI5 on Eclipse on Windows already.


Environment

I tested it out with Ubuntu 12.04. It should work with further versions too.

Problem

We are all usually more familiar with running SAP UI5 applications on Windows and wish if we could run it all on Linux/Ubuntu but may not be familiar with how to go about it as Linux scares off most of us.

Solution

By the end of this document, you will be running your SAPUI5 apps in Eclipse in Ubuntu.


STEP 1 : Eclipse needs JDK

Goto Terminal (Ctrl + Alt + T) and run the following command:

sudo apt-get install openjdk-7-jdk 

STEP 2: Download latest “Eclipse IDE for Java Developers” from the below link

Eclipse Downloads

You may check out your OS Type 32-bit or 64-bit by going to System Settings -> Details -> OverviewScreenshot from 2015-05-15 13:02:30.png

STEP 3: Extract Eclipse to /opt/ for global use

Goto Terminal (Ctrl + Alt + T) and run the following command.

Please note that this command assumes that you have downloaded the file in the default Downloads folder and * here is a wildcard.

cd /opt/ && sudo tar -zxvf ~/Downloads/eclipse-*.tar.gz

STEP 4: Create a launcher shortcut for Eclipse

Goto Terminal (Ctrl + Alt + T) and run the following command:

gksudo gedit /usr/share/applications/eclipse.desktop

Above command will create and open the launcher file for eclipse with gedit text editor.

Paste below content into the opened file and save it.

[Desktop Entry]
Name=Eclipse 4
Type=Application
Exec=/opt/eclipse/eclipse
Terminal=false
Icon=/opt/eclipse/icon.xpm
Comment=Integrated Development Environment
NoDisplay=false
Categories=Development;IDE;
Name[en]=Eclipse

Finally open Eclipse from Unity Dash search results and launch it.
launch eclipse in ubuntu 14.04

STEP 5: Install the SAP UI5 plugin and start developing your apps
(Follow the usual drill for the Eclipse UI5 plugin elaborated at: How to install a basic development environment for SAPUI5.)

Go to your eclipse under “Help – Install New Software…”. Paste one of the following URLs in the “Work with” input field, to get a list of available downloads options. You can find a list of all update-site URLs on the following site.

Screenshot from 2015-05-15 14:54:38.png

Select the entry “UI development toolkit for HTML5” and finish the wizard. Restart eclipse after you complete the installation. Then go to “File – New – Others” and type in the Wizard “UI5” and so on.

Screenshot from 2015-05-15 14:42:54.png

STEP 7: Enjoy your apps running in Eclipse and Chrome!

Screenshot from 2015-05-15 14:41:23.png

Screenshot from 2015-05-15 14:48:09.png

A note for the readers
Please do rate the document and let me know your thoughts about the content. I would love to accommodate your suggestions. Your comments let me track my work and reflect upon my future output.

Links

Download Ubuntu

Eclipse Downloads

How to install a basic development environment for SAPUI5

To report this post you need to login first.

4 Comments

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

  1. Stefano Cammilli

    HI,

    i’m trying to install the SAPUI5 library into eclipse on my ubuntu (v.14.04 LTS) with Eclipse Luna (Version: Luna Service Release 2 (4.4.2) Build id: 20150219-0600)

    When i pasted the url (https://tools.hana.ondemand.com/luna) into the “Install new software” form, no list appear (component list remain blank).

    I’ve done the same on a Windows envoroment and i could complete the installation succesfully, so the link is still working.

    Do you have any suggestions?

    Thanks

    (0) 
      1. Amol Gupta Post author

        Hi Stefano,

        Good to know that your problem stands resolved !

        The petty problems are sometimes a bottleneck towards achieving greater goals.

        (0) 
  2. Nigel James

    Great blog and I love seeing people promote Ubuntu.

    I haven’t had a great experience with Eclipse. To date I prefer Sublime Text 3 – it is blazingly fast and with a few plugins you can be very productive while eclipse loads up 1 GB of memory. My other goto IDE is  IntelliJ / WebStorm.

    Both these tools are available on Ubuntu.

    Maybe I should try eclipse again. <sigh> but I think I might side with marvin the paranoid android and say ‘… but you know I am not going to enjoy it’

    (0) 

Leave a Reply