Cannot get files installed using Bower to work in Eclipse

I created a new “dynamic web project” in Eclipse, installed Bowerglobally and then locally to the root directory of my project, and then hit the command bower install jquery. He created a folder bower_componentsin my project and perfectly added the jquery folder.

Here is the structure created:

enter image description here

Then I created a new file index.htmland tried to reference this file jqueryinstalled with Bower. [I did not change any build path or anything else; I am really new to Eclipse]. Link Code:

<head>
    <script src="bower_components/jquery/src/jquery.js" type="text/javascript"></script>
</head>

When I launched this page; Looking through the developer tools, I always got an error:

GET http://localhost:8080/PolymerTrials/bower_components/jquery/src/jquery.js 404 (Not Found) 

When I copy the url to browesr and press enter, I get:

enter image description here

jquery.js jquery , . , Bower, , . , Eclipse Bower , , . , - . . !

+4
1

, eclipse.

, " " . , eclipse . "bower_components" "/bower", jQuery "bower/jquery/src/jquery.js"

+4

All Articles