Introduction to part 3

This is the final part of this blog.

The entire blog has been split in 3 parts:

Link Content
Part1 Install JDK, Android SDK and Apache ANT
Part2 Install NodeJS, Cordova, Kapsel, Git, Plugman and configure environment variables
Part3 Install HAT and test it

All the prerequisites should have been successfully installed at this point if you have followed the previous two parts.

In this final part we are going to see the following things:

  • Download HAT
  • Setup HAT
  • Run HAT and test its connectivity with SAP Web IDE
  • Deploy your first Kapsel app to local Hybrid App Toolkit

Download HAT

Hybrid Application Toolkit can be downloaded for free from the SAP Store at this link.

As you already did for Kapsel, you just need to register, wait for the download links to be sent by email and download the product.

1) Once downloaded the package you should have a file named SAP_HAT_local. Right click on it and Extract All

/wp-content/uploads/2015/07/2015_07_08_09_28_52_743993.jpg

2) Extract the file directly in the root of your C drive. A subfolder will be automatically created for you.

3) If you want you can rename this folder to something else, like for example to “hat”

Setup HAT

It’s time now to start your Hybrid Application Toolkit installation.

1) Open your HAT folder and double click on the setup.cmd file. It’s the one with Type=Windows Command Script

/wp-content/uploads/2015/07/21_828056.jpg

2) The installation process is launched. The setup script looks for another components, which we have not yet installed, but that the script automatically installs by itself. This component is “bower“. It’s a sort of tool which allows the script to easily install other missing libraries

/wp-content/uploads/2015/07/22_828057.jpg

3) It might happen that you are behind a proxy in your company and you have forgot to configure it for any of Npm, Git and Plugman tools. No worries! You can specify your proxy settings here and the HAT setup will manage all the needed configurations for you. The proxy must be entered in the form <http|https>://<host>:<port> (i.e. http://proxy:8080). This is what I’m doing right now.

If you are not behind a firewall, this step, of course, will not be required. If you want to manually configure Bower’s proxy you can follow the procedure shown in the Appendix to this part.

/wp-content/uploads/2015/07/2015_07_08_09_36_22_743998.jpg

4) After all the required packages have been all successfully installed by bower, the main page of HAT setup is opened. HAT setup is web based, so it’s all managed by some web pages on a temporary web server automatically created by Node.js. This is how the main page looks like: it also reminds you to check if you have correctly matched all the basic prerequisites. Since we are good so far, we just need to click on the Check All button and all the other prerequisites will be checked by the script, which will also take care of installing all other missing things

/wp-content/uploads/2015/07/23_828058.jpg

5) Since we have already installed some components and configured all the environment variables, the first page of checks should go forward very smooth

/wp-content/uploads/2015/07/12_778836.jpg

6) Again you might get an error like this complaining that you are probably behind a proxy and you need to configure it. This time is for Gradle: you have here the chance to configure it during the installation. Just click on the first text box

/wp-content/uploads/2015/07/12_778836.jpg

7) A popup window appears and here you need to enter your proxy settings in the same format you did previously. Then click on Set

/wp-content/uploads/2015/07/13_794907.jpg

8) The values are automatically set in the system

9) Go to the top left corner of the page and click again on the Check All button

/wp-content/uploads/2015/07/2015_07_08_09_45_59_744003.jpg

10) The setup will restart, but this time you should pass that Gradle configuration test without any problem. When all the tests on the first page have been successfully completed a popup appears to inform you that you are going to be automatically redirected in a few seconds to the next page. If you are in hurry or tired to wait you can simply click on Next Step

/wp-content/uploads/2015/07/2015_08_04_17_42_29_762658.jpg

11) In this second page, at step 3, you are requested to provide the link to your SAP Web IDE instance (i.e. https://webide-<your_account>.dispatcher.hanatrial.ondemand.com/). You can enter of course more than one, but for this H2G we are fine with just one single link. In particular, here I’m using my SAP Web IDE from the HANA Trial Landscape. Once you have copied the link in the text box, simply click on Save

/wp-content/uploads/2015/07/2015_07_08_09_50_03_744005.jpg

12)  Here you can specify the path to the custom Cordova plugins folder. At moment we don’t want to use any custom plugins so you can press Skip to skip this step

    /wp-content/uploads/2015/07/15_794961.jpg

13) In the next step you are requested to provide a password for the local keystore, which is going to be created on your machine in order to host all the passwords required for HAT. Just enter twice the password you have chosen and click on Generate

14) Click on Yes, if you get the User Access Control popup

/wp-content/uploads/2015/07/2015_07_08_09_51_12_744007.jpg

15) You are redirected now to page 3. At step 2 you need to provide some information regarding the Companion app. Fields are already pre-filled for you, so you can leave the proposed values and click on Save. The only thing that you have to specify are the custom Cordova plugins that you want to include in the companion app if any. We don’t have any of them in this guide.

16) The Companion app is getting built. You need to wait a little bit depending on your hardware’s power

/wp-content/uploads/2015/07/2015_07_08_09_57_58_744009.jpg


17) When this process ends you are invited to close the page because setup completed successfully!

/wp-content/uploads/2015/07/24_828062.jpg

Run HAT and test its connectivity with SAP Web IDE

1) Open your HAT folder and double click on the run.cmd file

2) Enter your keystore password (the one you have previously defined)

/wp-content/uploads/2015/07/2015_08_04_18_09_59_762677.jpg

3) HAT starts to listen on port 9010.

/wp-content/uploads/2015/07/25_828063.jpg

4) This port can be changed, of course, but you will need to edit the config.json file in the HAT folder and then put the same port number in SAP Web IDE under Tools –> Preferences –> Hybrid Application Toolkit. In this screen you can also test HAT connectivity by clicking on the Test Connection button.You should get the message that the connection is available

/wp-content/uploads/2015/07/26_828064.jpg

NOTE: If you are using Firefox it might happen that the connectivity is not working at the first attempt: this because of the https protocol on localhost. So you might get the following error:

/wp-content/uploads/2015/07/2015_07_08_16_28_05_744016.jpg

What you have to do is just to add the https://localost:9010 site to your browser exceptions by following the steps listed in the APPENDIX to this part under the chapter Fix HAT connectivity issue with Firefox.


Deploy your first Kapsel app to local Hybrid App Toolkit

You are ready now to deploy your first Kapsel application to your local Hybrid App Toolkit


1) Open SAP Web IDE and create a new Kapsel app (if you don’t have one yet) based on one of the Kapsel templates


2) Right click on the name of the project and choose Project Settings


3) Configure project settings according to your needs. In particular since you are on a Windows platform you can only specify Android as deployment platform. When you have finished click on Save

     /wp-content/uploads/2015/07/28_828068.jpg


4) Right click on the name of the project and choose Deploy –> Deploy to local Hybrid App Toolkit

/wp-content/uploads/2015/07/29_828069.jpg


3) The application is downloaded from the Cloud and “mobilised” by HAT. You can follow the process in the background by opening the SAP Web IDE console window through the menu View –> Console


4) When the process finishes, you get a completion message; click on OK to close it


5) If you go on your file system, you should have a subfolder named SAPHybrid under your user folder. This subfolder contains another subfolder for each project you have deployed to your local HAT. In this case I have just one project

/wp-content/uploads/2015/07/30_828070.jpg


6) You can now run the deployed application on your device/emulator.

/wp-content/uploads/2015/07/31_828071.jpg


Congratulations! You have successfully installed and tested your Hybrid Application Toolkit!




APPENDIX

How to configure proxy for Bower

1) Create a new file named “.bowerrc” under the path C:\Users\<your_user>

2) Add to this file the following lines containing your proxy information


{
  "proxy":"http://proxy:8080",
  "https-proxy":"http://proxy:8080"
}





/wp-content/uploads/2015/07/10_794881.jpg

Fix HAT connectivity issue with Firefox

1) Open another page on your browser and enter the URL address https://localhost:9010

2) Click on I Understand the Risks –> Add Exception

/wp-content/uploads/2015/07/2015_07_08_16_30_17_744020.jpg

3) Click on Confirm Security Exception

/wp-content/uploads/2015/07/2015_07_08_16_30_40_744021.jpg

4) You get this message. Don’t ask me why it mentions “Chrome” even though you are on Firefox

/wp-content/uploads/2015/07/2015_07_08_16_31_01_744022.jpg

5) Retest your connection now, it should be fine

To report this post you need to login first.

81 Comments

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

  1. Arun Rajamani

    Hello,

    I followed all steps as mentioned in part,2 . But when I run HAT check I get error in        3. Android SDK

    ERROR:

    Android SDK is not installed!

    The Android SDK is available at http://developer.android.com/sdk/index.html#Other.

    After installation completes, include the Android SDK’s tools and platform-tools directories in your PATH environment variable. If the SDK is still not detected in the PATH variable, restart the computer and try again..


    I have installed Android SDK and ran all steps as mentioned in part 1 .


    can you please help what else could be the reason for Hat not to recognize Android SDK.


    Regards

    Arun

    (0) 
    1. SIMMACO FERRIERO Post author

      Arun,

      you need also to properly configure system variables and add the paths to Android tools and platform tools to the system path variable as explained in the second part of this guide.

      Regards,

      Simmaco

      (0) 
      1. Arun Rajamani

        Hi Simmaco,

        i did follow the part2 . have updated the env. variable.

        i checked again everything is as documented in part 2.

        what else could be the issue ?

        Regards

        Arun

        (0) 
        1. SIMMACO FERRIERO Post author

          Arun,

          what do you get if you open a terminal window and you run the command “android”?

          Could you please attach here a screen shot reporting the package you have installed in the Android SDK manager?

          Regards,

          Simmaco

          (0) 
  2. Rene Guenther

    I started with an empty Windows 8.1 32 bit VM. All went good except for npm problems related to node.js 10.3. I eventually found node.js 10.39 and that problem went away.

    Later on I got an error during the companion app build. Google play service 7.3.0 cannot be found/installed. I tried to install it with Android SDK Manager. But from there I can not choose a version. Latest Android SDK is required. I installed it and afterwards google play service. Still I cannot build companion app.

    That is the error:

    * What went wrong:

    A problem occurred configuring root project ‘android’.

    > Could not resolve all dependencies for configuration ‘:_debugCompile’.

    > Could not find com.google.android.gms:play-services-gcm:7.3.0.

    Searched in the following locations:

    https://repo1.maven.org/maven2/com/google/android/gms/play-services-gcm/7.3.0/play-services-gcm-7.3.0.pom

    https://repo1.maven.org/maven2/com/google/android/gms/play-services-gcm/7.3.0/play-services-gcm-7.3.0.jar

    file:/C:/Program Files/Android/android-sdk/extras/android/m2repository/com/google/android/gms/play-services-gcm/7.3.0/play-services-gcm-7.3.0.pom

    file:/C:/Program Files/Android/android-sdk/extras/android/m2repository/com/google/android/gms/play-services-gcm/7.3.0/play-services-gcm-7.3.0.jar

    Required by:

    :android:unspecified

    (0) 
    1. Christian Dr. Drumm

      Hi Rene,

      I faced the same problem. The trick is to install the Google Play services and the Google Repository using the Android SDK manager. After this, the setup completed without an error.

      2015-09-21 21_45_17-Android SDK Manager.png

      Christian

      (0) 
  3. Gareth Ryan

    What version of the SMP SDK are you downloading?  I’ve tried 3.10.1 and 3.9.6 so far and both times, when I run the setup.cmd script to start up HAT and then run the “Check all” I get the following error:-

    HATCheckFailure.png

    (0) 
    1. Gareth Ryan

      Solved this myself – it is now working with 3.9.6, I just needed to reinstall the Kapsel SDK with npm install -g D:\KapselSDK\cli which I’d forgot to redo earlier.

      (0) 
  4. Niketa Chaudhary

    Hello,

    I followed the steps and installed all the prerequisites.

    Cordova: 5.1.1

    HAT: 1.9.3

    npm: 1.4.28

    git: 2.6.1.windows 1

    SDK: SP10

    now when i execute setup.cmd, it checks for the pre requisites, install bower, all ok but after that it closes.

    When i tried to execute again it just checks the pre requisites, display bower version 1.6.3 and closes , nothing happens.

    I verified with the admin for proxy but we are not using that.

    I can’t understand, what i am doing wrong?

    (0) 
    1. SIMMACO FERRIERO Post author

      Hi Niketa,

      are you able to catch any error when the installation closes? Could you please zip the “logs” folder under your “hat” installation and send it to me? Maybe you can put it somewhere (Dropbox) and I can download it from there.

      Regards,

      Simmaco

      (0) 
              1. Michael Appleby

                Please create a new Discussion marked as a Question.  Comments to a Blog (or Document) is not the right vehicle for asking questions as the results are not easily searchable.  Once your issue is solved, a Discussion with the solution (and marked with Correct Answer) makes the results visible to others experiencing a similar problem.  If a blog or document is related, put in a link.

                NOTE: Getting the link is easy enough for both the author and Blog.  Simply MouseOver the item, Right Click, and select Copy Shortcut.  Paste it into your Discussion.  You can also click on the url after pasting.  Click on the A to expand the options and select T (on the right) to Auto-Title the url.

                Thanks, Mike (Moderator)

                SAP Technology RIG

                (0) 
  5. Chandu Va

    Hi,

    Thank you very much for your valuable guide.

    I’m almost done. But I stuck up at Level 3 “Build Hybrid Companion App” -> “Build the companion app” step.

    Please check the below screenshot and help me out.Build the Companion app.PNG

    (0) 
        1. SIMMACO FERRIERO Post author

          Hi, it seems not really helpful. Anyway could you please check if in the Chrome inspector console window there is any error? If you don’t know how to do it you can contact me privately and I can help you.

          Regards,

          Simmaco

          (0) 
          1. Greatriver Deng

            Hi Simmaco,

            Chrome console

            /wp-content/uploads/2016/01/error5_870839.png

            I tried to debug, I found something wierd.

            /wp-content/uploads/2016/01/error3_870840.png

            It never stop at line 496 or line 514, I found the caution in the below picture

            /wp-content/uploads/2016/01/error6_870845.pngI hope these will be useful

            Regards and thanks a lot

            (0) 
            1. SIMMACO FERRIERO Post author

              The problem with “favicon” is not really a big issue. Could you please contact me privately (send me a private email) so that I can schedule with you a session in order to get a closer look to the problem ?

              Regards,

              Simmaco

              (0) 
  6. Prakash Waddar

    Hi Simmaco,

                         i am getting this error while importing Certificate, i don’t know how to import server certificate .please kindly guide me .

    HatError.PNG

    (0) 
    1. SIMMACO FERRIERO Post author

      Hi Prakash,

      it seems that you haven’t the propers right on your machine. I see the ACCESS_DENIED error. Could you please also try with another more powerful account, just to see if you have the same error?

      Regards,

      Simmaco

      (0) 
  7. Navin Mittal

    Hi,

    I am getting error in the last step ( Building of Companion App ).

    Error Screenshot is attached.

    It seems it is unable to reach to some files because of peer authentication failed. (highlighted error). Have checked , there is no proxy issue.

    Regards,

    Navin

    Error_Companion_app_build.PNGError_Companion_app_build2.PNG

    (0) 
    1. SIMMACO FERRIERO Post author

      Hi Navin,

      could you please perform the following steps and let me know the result?

      1) go inside the folder “C:\SAP\SAP_HAT\WebIdeCompanion\companionapp”

      2) Delete completely the subfolder “CompanionApp”

      3) Open the Windows Command Prompt and navigate to the folder “C:\SAP\SAP_HAT\WebIdeCompanion\companionapp”

      4) Here run the command “node create_companion_app.js”

      Let me know if you get errors even when building this companion app manually

      You can also send me a direct message.

      Regards,

      Simmaco

      (0) 
        1. SIMMACO FERRIERO Post author

          It’s strange, it seems that the file “create_companion_app.js” is not present in this folder. Could you please verify?

          I suggest you to write me through direct messages in order to not flood this post.

          Regards,

          Simmaco

          (0) 
          1. Kevin Kussyk

            Hi Simmaco,

            the HAT worked very fine on my computer. Overnight, I got the error code 1. I started the setup again and got the same problem as Navin. After that, I tried your 4 steps. Then i got this error:

            It’s exactly the same error as you find during the setting up process. It’s not an isolated problem, since a work colleague has encountered the very same problem. Last week there was no issue with the HAT, but now it isn’t working anymore, even though there were no changes since then.

            We use the SAP HAT version 1.22.2
            cordova 6.1.1
            kapsel version 3.1.1
            node 5.4.1
            npm 3.3.12

            Could you please help us figure out what is happening?

            Best Regards,
            Kevin

            (0) 
    1. SIMMACO FERRIERO Post author

      You can simply switch the proxy off by opening a Terminal window, going in your HAT installation directory and running the command “proxy off”: this will completely disable the proxy for all the HAT components, Gradle included.

      Regards,

      Simmaco

      (0) 
            1. SIMMACO FERRIERO Post author

              Hi Rumeshbabu,

              could you please contact me privately so that we do not flood this blog post?

              In the meantime I have another test for you.

              • Open the Windows command prompt
              • Go to a temporary folder and run one by one the following commands:
                • cordova create hello com.example.hello “HelloWorld”
                • cd hello
                • cordova platform add android
                • cordova build
              • Let me know if you have any errors.

              The above commands simply create a very basic cordova app for you, just an “HelloWorld” app.

              Regards,

              Simmaco

              (0) 
              1. Rumeshbabu Somaskandan

                Hi,

                Sorry not able to send you direct message,

                Got the following after executing the command, cordova build

                C:\Users\rsomaska\AppData\Local\Temp\hello>cordova build

                Running command: cmd “/s /c “C:\Users\rsomaska\AppData\Local\Temp\hello\platform

                s\android\cordova\build.bat””

                ANDROID_HOME=D:\Android_SDK

                JAVA_HOME=C:\Program Files\Java\jdk1.7.0_79

                Running: C:\Users\rsomaska\AppData\Local\Temp\hello\platforms\android\gradlew cd

                vBuildDebug -b C:\Users\rsomaska\AppData\Local\Temp\hello\platforms\android\buil

                d.gradle -Dorg.gradle.daemon=true

                FAILURE: Build failed with an exception.

                * What went wrong:

                A problem occurred configuring root project ‘android’.

                > Could not resolve all dependencies for configuration ‘:classpath’.

                   > Could not resolve com.android.tools.build:gradle:1.0.0+.

                     Required by:

                         :android:unspecified

                      > Failed to list versions for com.android.tools.build:gradle.

                         > Unable to load Maven meta-data from https://repo1.maven.org/maven2/co

                m/android/tools/build/gradle/maven-metadata.xml.

                            > Could not GET ‘https://repo1.maven.org/maven2/com/android/tools/bu

                ild/gradle/maven-metadata.xml’.

                               > peer not authenticated

                Thanks,

                Rumeshbabu S

                (0) 
  8. shiv soni

    Hi SIMMACO ,

    I am getting error

    Cordova project creation is complete.

    The android for Cordova is added.

    Cordova build platform: android done.

    ERROR:

    Cordova search plugin failure: you must configure the HTTP(S) proxy correctly. Please try Click .

    If it does not work, you can:

    1. Plugman

    plugman config set proxy http://proxy.company.com:8080

    plugman config set https-proxy http://proxy.company.com:8080

    2. or set the environment variables, e.g.

    Set the environment variable: e.g. http://proxy.company.com:8080

    Set the environment variable: e.g. http://proxy.company.com:8080

    i set all given steps but Still getting the same error.

    Thanks,

    Shiv

    (0) 
    1. SIMMACO FERRIERO Post author

      Hi Shiv,

      1) which version of HAT are you going to install?

      2) are you behind a proxy?

      3) did you try by running the command “proxy on” in the HAT installation folder?

      Regards,

      Simmaco

      (0) 
      1. shiv soni

        Hi

        thanks for reply Sinnaco..

        1) which version of HAT are you going to install?

        Ans: SAP_HAT_local-1.13.4


        2) are you behind a proxy?

        Ans:No,but i set proxy http://proxy:8080 (for all)


        3) did you try by running the command “proxy on” in the HAT installation folder?

        Ans: yes.i tried both way. still same error.

        (0) 
        1. SIMMACO FERRIERO Post author

          Shiv,

          if you are NOT behind a proxy, why are you trying to set a proxy for all? You don’t need to do it and in your case the command that you have to run is “proxy off”.

          Regards,

          Simmaco

          (0) 
  9. sanjo thomas

    Hi,

    First of all thanks for this blog, really helped!
    I have a problem here, I am not able to run my projects on my android device, every time it runs, it shows a blank screen.

    It shows build successful and an app is created on my device,  but only a blank screen appears. What do you think the problem might be?

    Thanks,

    Sanjo Thomas

    (0) 
  10. abhinanda bagui

    Hi Simmaco,

    When I am running my app getting the below error.

    Application Error – The connection to the server was unsuccessful. (file:///android_asset/www/index.html).


    I am using HAT 1.16.1 in local, in WEBIDE it is having HAY 1.17.2


    Could you please help me to get out of this error

    Thanks

    Abhinanda

    (0) 
    1. SIMMACO FERRIERO Post author

      Hi Abhinanda,

      could you please download and install the latest version of local HAT from the store which is 1.17.2 and check if the error persists?

      Regards,

      Simmaco

      (0) 
        1. SIMMACO FERRIERO Post author

          1) Where exactly are you having this error?

          2) Are you testing it on the emulator or on a real device? Is this connected to the network?

          3) Which steps did you take for creating the application? Could you please send it to me so that I can give a closer look? You can contact me also in private with a DM.

          Regards,

          Simmaco

          (0) 
          1. abhinanda bagui

            Hi Simmaco,

            Thanks for your reply.

            1. I have imported the app from the file system in the webide( it is a developed app, and working fine).

            2. I have deployed the app into local HAT.

            3. Then try to run the app on the emulator, I donot have external device for testing the app.

            First time i have done this HAT installation, the app is running one the web, but whenever I am testing it on HAT it is gierror.PNGven error

            Thanks

            Abhinanda

            (0) 
            1. SIMMACO FERRIERO Post author

              1) Did you check if the emulator is able to go on internet?

              2) You said you imported the app in WebIDE. Maybe this app needs to be adapted and configured to be run on the device. For example if this app is connected to a backend you need to add the Logon Manager Kassel plugin to the app, otherwise you won’t be able to connect.

              I need the app in order to help you further.

              Regards,

              Simmaco

              (0) 
  11. Subodh Kumar

    Hi,

    I have followed your blog to setup the HCPms environment on my Windows(64 bit, Windows 10) machine and installed following software’s successfully:

    • JDK 8
    • NodeJS 5.4.1
    • Kapsel CLI
    • Apache Cordova 6.0.0
    • Plugman
    • Git
    • Kapsel Plugin
    • Android SDK
    • HAT 1.17.2
    • Configured Environment Variables

    After doing every steps when i am trying to run the HAT, it’s giving me following error:

    only error i am getting at point no. 5 in the below screenshot.

    Please let me know why i am getting this error.

    ERROR:

    cordova add android platform error!

    Error: Failed to fetch platform android Probably this is either a connection

    problem, or platform spec is incorrect. Check your connection and platform

    name/version/URL. Error: getaddrinfo EAI_AGAIN proxy:8080

     

        Error_HCPms.JPG

       Regards
       Subodh

    (0) 
    1. SIMMACO FERRIERO Post author

      Hi Subodh,

      could you please verify if you are also having errors while doing the steps listed here https://cordova.apache.org/docs/en/latest/guide/cli/ ?

      If yes, it means that your problem is more likely related to Cordova setup and not to HAT.

      Try to create the sample application and to add the platforms.

      Furthermore, the error you receive can help us to understand the nature of the problem.

      Another thing: if you are behind a proxy you need to revert back all the settings as if you are without a proxy. Then go into the HAT installation folder and run the command “proxy.cmd on” to automatically set the proxy to ON. This will do everything for you.

      Regards,

      Simmaco

      (0) 
      1. Subodh Kumar

        Hi Simmaco,

        I have followed the steps which you have provided but while adding the platform i am getting the error: failed to fetch platform android@~5.1.0

        cordova_platform_error.JPG.

        Regards

        Subodh

        (0) 
        1. SIMMACO FERRIERO Post author

          Subodh,

          this means that your issue is not depending on HAT, but more likely on the proxy configuration so you must try to fix it first.

          Could you please confirm that you ran the “proxy.cmd on” command in the HAT installation folder first?

          Do you have the ability to test the “cordova platform add” command in a different network, without the proxy, like for example at home?

          Regards,

          Simmaco

          (0) 
          1. Subodh Kumar

            Hi Simmaco,

            Thanks for your help so far.

            Yes i ran the proxy.cmd first and then i tried to add the platform but no luck.

            I tried the same machine from home network also but it gave the same issue.

            Regards

            Subodh

            (0) 
            1. SIMMACO FERRIERO Post author

              Subodh,

              at this point I think that it’s possible that your proxy configuration is a little messed up. You should try to go one by one in the configuration of any of the components of HAT installation and fix there the proxy settings.

              Let’s start with npm. Could you please

              1) run “proxy.cmd off” in the HAT installation folder

              2) run “npm config list”

              3) show me the result?

              Regards,

              Simmaco

              (0) 
                1. SIMMACO FERRIERO Post author

                  The only difference I see here with mine is the fact that you are using the “registry” line. Could you please try to comment that line by putting a “;” before it and see what happens?

                  Is it fine for you to continue our discussion in private? Maybe we can also have a SAP Connect session so that I can give a closer look to your problem. You can drop me a direct message and I can send you my email.

                  Regards,

                  Simmaco

                  (0) 
    1. SIMMACO FERRIERO Post author

      I think that your proxy is not properly configured. For me it’s not easy to help you remotely. The only thing I can suggest is to go inside the HAT installation folder and run the command “proxy.cmd on” in order to easily switch on the proxy for all the required components.

      Let’s try and let me know, even in private with a direct message.

      Regards,

      Simmaco

      (0) 
        1. SIMMACO FERRIERO Post author

          Hi Subodh, I think you should ping me in private so that we can exchange our contacts and have a remote session together. I don’t have any further advise to give you. Normally this it really straightforward, there is some wrong configuration with your machine. Could you confirm that you are administrator of your machine?

          Regards,

          Simmaco

          (0) 
    1. SIMMACO FERRIERO Post author

      Sanjo,

      I would need more information regarding this error: where did you get it? In which phase (Installation, execution)? Does this happen for a specific app?

      You can write me in private(best way) since you have my contact!

      Regards,

      Simmaco

      (0) 
  12. Utsav Ghosh

    Hi,

    I am getting the below error after installing the app on the actual device.

    err_file_not_found (file:///android_asset/www/webapp/index.html)

    (0) 
  13. Henrique Mattos

    Thanks for the great article series. I was able to run it on NodeJS 7 just by skipping the version validation used in the C:\sap-hat\setup\scripts\win\check_env.cmd. Basically I removed all the “go to end_err” condition… 😛
     

    (0) 
  14. Oscar Bermedo

    Hello Simmaco,

    I followed all your steps. Now I have created a demo application using Northwind.
    I have done so far:
    – Created a Demo SAP UI 5 Master Detail Kapsel Application
    – Used Northwind to get some data
    – Deploy -> Hybrid App Toolkit (Local Add-on) -> Prepare Hybrid Project.

    The Deploy finished OK, but when I try to run on Local Device -> Android Device, it gives me an error: The run command execute failure reason: No Target found!

    Regards,
    Oscar

    (0) 
  15. Ravi Singhal

    Hello Simmaco,

    Thankyou for the detailed blog.

    Everything working fine during the installation process expect i am getting during creating of companion app.

    Can you please share your details so that i can send you the error, It would be a great help.

    Regards,
    Ravi

    (0) 
  16. kapil parmar

     

    Hi Simmaco,

    I have followed your blog to setup the HCPms environment on my Windows(64 bit, Windows 7) machine and installed following software’s successfully:

    • JDK 8
    • NodeJS 5.4.1
    • Kapsel CLI
    • Apache Cordova 6.1.1
    • Plugman
    • Git
    • Kapsel Plugin
    • Android SDK
    • HAT 1.21.3
    • Configured Environment Variables

    Everything working fine during the installation process,but  getting error in the last step ( Building of Companion App ).

    Error Screenshot is attached.
    Please let me know why i am getting this error.

    Regards
    Kapil

    (0) 
  17. Srilaxmi Donakanti

    Hi Simmaco,

    I have followed the blog and able to install all.

    Now i am facing the problem while setting the HAT. Below is the error screen shot. Please help me on this.

     

     

    And i tried below steps :

    1) go inside the folder “C:\SAP\SAP_HAT\WebIdeCompanion\companionapp”

    2) Delete completely the subfolder “CompanionApp”

    3) Open the Windows Command Prompt and navigate to the folder “C:\SAP\SAP_HAT\WebIdeCompanion\companionapp”

    4) Here run the command “node create_companion_app.js”

     

    Getting below error:

     

    Regards,

    Srilaxmi.

    (0) 
  18. saurabh vakil

    Hello Simmaco,

    I have followed both the previous parts of this blog series (1 & 2) and made the below installations on my machine in the same sequence with no issues so far.

    JDK8, Android SDK, Apache Ant, SAP Kapsel Plugin, set the environment variables JAVA_HOME, ANT_HOME, KAPSEL_HOME, ANDROID_HOME and PATH, GIT Client, Node.js, Kapsel CLI, Apache Cordova 5.2.0 and Plugman.

    Now when I run the setup.cmd file from the extracted SAP_HAT folder I can see that initially the Node.js, npm and bower versions are fetched and displayed as shown below:

    But then after a while I see the below screen where it says Couldn’t resolve proxy ‘null‘:

    I am connected to my home wireless network with no proxy server so I haven’t set any proxy in npm. Can you please let me know what I need to set in npm to be able to proceed successfully with the HAT installation?

    Regards, Saurabh

    (0) 

Leave a Reply