Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Setting New Version of JDK in NetBEans

 
sandeepg gadhvig
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic