It seems that when you have added the sqljdbc4.jar
it was on the desktop, so Netbeans linked it letting your source code compile, but this don't include the jar into your src/bundle_includes
.
You should:
- manually copy
sqljdbc4.jar
intosrc/bundle_includes
- removing the
sqljdbc4.jar
with bad path from the Compile panel - click Add JAR/Folder and choose
src/bundle_includes/sqljdbc4.jar