2
votes

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?

2
Works for me... What kind of errors are you getting?fvu
What version of netbeans are you using? Refer to this table: netbeans.org/downloads PHP means (PHP + HTML + CSS + Javascript)c69
I'm currently using the PHP version of netbeansHandonam
Hmmm... How are you getting code errors if you don't get JavaScript support?Álvaro González
I get a bunch of errors where it says "unclosed character literal" or "character, interface, or enum expected"Handonam

2 Answers

4
votes

I get a bunch of errors where it says "unclosed character literal" or "character, interface, or enum expected"

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.

1
votes

the java-plugin is for java, so this won't help you.

what you'll need is to activate javascript-support. javascript is included in the PHP-pack (and also available as plugin).

to install the plugin, simply click tools -> plugins and install PHP to enable javascript-(and html-)support.