How to import Web IDE SAPUI5 projects into Eclipse.
Hi Developers!! In this blog I will simplify the steps to
import a sapui5 project into eclipse, originally created in SAP Web IDE. So let’s
see how it’s done stepwise.
Steps
1) Right click on the project’s
webapp folder in SAP web IDE, and click
on Export.
2) Now, in your Eclipse create a new
project.
3) Right click on WebContent folder,
and select import.
4) Choose “General>Archieve File”
5) Browse the exported webapp.zip
file and click the select all button, and click on Finish button.
6) That’s it, you are ready to run
the application in Eclipse. You may face one issue here, while running the
application “sap not defined”.
To remove this error, you just
need to correct the path of sapui5 resource provide in index.html file.
<script id="sap-ui-bootstrap"
src="../../resources/sap-ui-core.js"
……
>
</script>
Replace the highlighted code with:
<script id="sap-ui-bootstrap"
src="resources/sap-ui-core.js"
……
>
</script>
That’s it. Stay tuned for more
tutorials on SAPUI5. ;)