Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

canExecute method of File?

 
Ricky James
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I was trying to compile a program that uses canExecute method of the File class but the program doesn't compile. Although all the other methods that I used worked properly.

Is this method no longer used or is it deprecated?

Would be thankful if somebody advises me.

Ricky
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is a new method in Mustang (Java 1.6). Are you using jdk 1.6 ?
 
Ricky James
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Satou kurinosuke:
This is a new method in Mustang (Java 1.6). Are you using jdk 1.6 ?


That explains it. I am using Java 5.

Thanks for the reply and advice Satou.

Much appreciated.
Ricky
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic