aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes Setting New Version of JDK in NetBEans Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Setting New Version of JDK in NetBEans" Watch "Setting New Version of JDK in NetBEans" New topic
Author

Setting New Version of JDK in NetBEans

sandeepg gadhvig
Greenhorn

Joined: Jul 22, 2008
Posts: 10
Hi everyone,
I want to set new Version of JDK in Netbeans.current version it shows is JDK 1.6.But when i try to use Enhanced For loop(for(int a:arrayName)) it gives error.
like Enhanced for loop not supported in JDK 3 use 5 or higher version.
I looked at JAVA_HOME env variable.
I looked at etc/netbeans.conf its pointing to netbeans_jdkhome=JDK6

Please anyone having any idea about this.


Thanks
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

I thinks I had given you a reply regading thi , here

If you can tell me which version the NB6 showing , we can fix the problem!


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Setting New Version of JDK in NetBEans