This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
Are you certain that NetBeans is using Java 6 for compiling, and not some other installed JRE? That package was added to the JDK in Java 6, so using an earlier version of the class libraries would produce that error.
Ping & DNS - updated with new look and Ping home screen widget
Joined: Jun 18, 2008
thaks for the pointer , but edited the post, my Netbeans6.5.1 shows the above error but it is the Netbeans javafx version so there might be the root of the problem, on the other hand Netbeans 19 may nightly shows no problem with the above code but it is full netbeans installed , with base IDE and javaSE, JavaEE, etc., i.e., everything , problem seems to be like my wrong use of IDE plugins, and there is no other JRE installed in my system, currently I am working on my java code in the nightly Netbeans and on JavaFX in the current version and they both are running f9