This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
I am not able to import some sdk 5.0 classes, for example import java.util.Scanner; does not work. Does NetBeans 3.6 suuport only version 1.4.2?
Yes Netbeans 3.6 does not fully support sdk 5.0. This issue is fixed in NB 4.0.
Anyway, you should be able to add this import even in 3.6. What do you mean by saying you are not able to? Are you getting a compilation error? If so, make sure you are running on JDK 5.0 so that the file you are trying to import is on the bootclasspath.
The problem is I can't import sdk 1.5 classes into Netbeans 3.6. For example, the statement: import java.util.Scanner; fails.
My question was, what you mean by saying that the import statement fails?? Does it give you a compiler error, or what? Are you running on JDK 5.0? Could you attach your IDE log? Btw. this bug is definitely not reproducibe in the current dev build, that's why we mark it as fixed.
I installed Netbeans 3.6 and SDK 5.0 yesterday, so I am assuming I have the latest builds. The detail window on Netbean's "About" says I am running on Java 1.5.0 As soon as I type the import statement, it is marked as an error. Also, in the code completion box that pops up after "import java.util.", Scanner does not even appear as an option.
NetBeans 3.6 was released in April. The bugs reported agains it are fixed in CVS maintrunk and released in daily dev builds. They will be available in 4.0 release. Please do not reopen this issue unless you are able to reproduce it in the NetBeans 4.0 build. If you are able to reproduce it there, please attach your messages.log. Regarding the fact that the Scanner class does not appear in the code completion, it is a known problem in NB 3.6 - the code completion database contained only JDK 1.4 classes.
I assume the resolution should be WONTFIX in this case. There were no code changes made to address the originally reported problem. NB 3.6 doesn't support JDK 1.5 fully as correctly stated, problem no longer exists in NB 4.0. Reopening to change the resolution status.
WONTFIX.
Reorganization of java component