Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The resource is not on the build path of a javascript project

I am making a javaEE project. I imported a project from my computer as a maven project (Import->Import as maven project) The project has many javascript files in the source folder. Eclipse is not showing outline of my javascript files. '

However when i imported the project as a javascript project the outline was shown correctly!!

How can i make the outline correct when i import it as a maven project?

like image 827
Shivendra Avatar asked Jul 01 '14 08:07

Shivendra


People also ask

What is Eclipse build path?

The Java build path is used while compiling a Java project to discover dependent classes . It is made up of the following items − Code in the source folders. Jars and classes folder associated with the project. Classes and libraries exported by projects referenced by this project.


1 Answers

I just answered this for another question, very similar to yours.

You need to add the JavaScript "nature" to the project (basically, tell Eclipse to treat it as a JavaScript project). Right-click on the project and choose Configure > Convert to JavaScript Project....

enter image description here

After doing that you should see a Builder named "JavaScript Validator" and have the JavaScript section in the properties.

like image 113
E-Riz Avatar answered Sep 29 '22 02:09

E-Riz