Skip to Content
avatar image
Former Member

where's the resources/sap-ui-core.js?

hi Guys,

I'm a starter of SAP UI5. I created a ui5 project using the eclipse project wizard.

In the index.html file, there's the bootstrap in the red box:

My question is: where's this resources folder? I looked all over the project structure, I didn't find a clue.

Could you tell me how does this line of code links to the sap-ui-core.js in detail?

Thanks !!

1.png (32.7 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • Best Answer
    avatar image
    Former Member
    May 21, 2014 at 10:02 AM

    Hi there,

    is this a local project?

    The path "src=''resources/sap-ui-core.js" means that the file sap-ui-core.js is in the directory resources RELATIVE to the file (usually index.html) where you include it.

    That means if your project folder is

    c:\projects\project1\

    the file sap-ui-core.js should be located in the folder

    c:\projecty\project1\resources\

    So you can either copy the sapui5 framwork there, or you change the path accordingly to the location of the framework.

    Greets,

    ben

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 21, 2014 at 04:19 AM

    Hi Aaron,

    Refer this thread discussion and

    also refer sapui5 documentation on bootstrap Documentation/AdvancedTopics/Bootstrap – SAPUI5 Wiki (TIP CORE User Interface)

    Regards,

    Chandra

    Add comment
    10|10000 characters needed characters exceeded

  • May 21, 2014 at 09:52 AM

    Hey guys,

    I have the same question and I am still not able to find the answer. We are not talking about how to integrate the bootstrip (resources/sap-ui-core.js) from a server, it has to be somewhere on the local machine and I should be able to access it somehow through eclipse. Where is the location of this file in Eclipse?

    Can someone please explain how that is working?

    Thanks and regards

    Chris

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 04, 2014 at 05:58 AM

    Hi Aaron,

    suppose you are running you application on tomcat,

    you could observe the resource folder in Chrome Development tool ( F12 ) tab - Sources, and the sap-ui-core.js is just within that folder.

    click on Network tab, and you will find how this js file is loaded from your local machine:

    Best regards,

    Jerry


    clipboard1.png (50.8 kB)
    clipboardok.png (75.5 kB)
    Add comment
    10|10000 characters needed characters exceeded

  • Jan 13, 2016 at 04:32 PM

    Hi,

    maybe also try to use "/sap/ui5/1/resources/sap-ui-core.js" instead.

    Add comment
    10|10000 characters needed characters exceeded