I had netbeans 6.9, and i was trying to edit javascript on it. However, I keep getting code errors in my .js files. I can’t even create a new javascript template. I tried upgrading to netbeans 7.01, but this doesn’t change. I also enabled the JAVA plugin, but it doesn’t help.
Anyone know what’s going on?
I suspect you’ve somehow configured NetBeans to handle *.js files as Java, which is an entirely different language.
Go to Tools-> Options-> Miscellaneous-> Files and find js in the “File Extension” combo. The “Associated File Type (MIME)” input box should say
text/javascript.