I'm not sure what is going on here, here are a few comments...
1. The leJOS install will normally set your path to include the leJOS bin dir. However you may need to run the command with administrator rights for it to do this. You may want to check your path and remove any errors from it (or old references to leJOS), before installing leJOS.
2. The NetBeans plug in is not part of the standard install (nor is the Eclipse plug in), so will need to be installed separately.
3. The NetBeans plug in is very new, and is still being developed, so you may see problems with it.
4. You don't need the plug in to use NetBeans with leJOS (though it can make things easier).
5. You should probably take things a step at a time ensuring that each step works, rather than installing lots of things then trying to make it all work...
I think you need to start again from the very beginning, and for now I would ignore the NetBeans plug in, you do not need this to build programs in NetBeans...
1. Remove leJOS
2. Remove Netbeans
3. Remove the JDK.
4. Make sure you have the Lego software installed. If it is not the 2.0 version download and install the correct driver from here:
5. Install the 32bit version (not the X64) version of the JDK (and not the version combined with NetBeans).
6. Ensure that the bin directory of the JDK is in you path, and that you can open a cmd window and that the command javac -version works.
7. Download and install leJOS.
8. open a new command window and cd into the lejos samples that you have just installed. cd to the HelloWorld sample.
9. Connect your NXT using USB and compile and run the sample with:
nxj -r HelloWorld
10. If the above all works then you have a basic leJOS system working. I have just followed all of the above steps on my system and it all works. The path has been set correctly and I can run the command line lejos tools with no problems (and without setting the path manually). If the above does not work, stop now and report the problem.
11. Install NetBeans I would recommend that for now you use 6.5.1 as more recent versions seem to have a pre-compiler that gets confused by leJOS.
12 Run netbeans and open the leJOS samples project.
13 Turn on your NXT, compile and run the hello world sample by opening the sample, click on default package, right click on the build.xml file and select run target->uploadandrun
14 The above should work and on my system no errors are flagged by netbeans. If you have problems please report them.
I would stop there. You can create your own projects by creating a copy of the build files used in the samples directory (you may need to change the path information but this is easy to do). You may need to take a while to understand how the ant build process works, but in the long run I think it will be worth it....
I've just followed all of the above steps on couple of clean systems (Vista and Windows 7 on both systems my user was a member of the admin group and I had the standard settings for UAC) here and it seemed to work fine for me. Please try the above, please don't be tempted to miss out any of the steps....
Once you have the above working, and you can build and run the samples. You may wish to try the NetBeans plug in. but I probably can't help you very much with that. But Roger (the author of that part of the project probably can)....