Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
The moose likes Beginning Java and the fly likes filenameFilter in linux directory Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "filenameFilter in linux directory" Watch "filenameFilter in linux directory" New topic

filenameFilter in linux directory

nur rahayu

Joined: Dec 11, 2010
Posts: 2
Hi, i've a problem related with filenameFilter. My code is:

I'm little confusing; no syntax-error, but when i execute, my app always show pop-up "Sorry, no answer" although there's a directory listed (home/nnur/compareN). Please help me, thanks...
Tom Reilly

Joined: Jun 01, 2010
Posts: 618
A guess - you specify a relative path. Don't you want an absolute path (one that starts with a '/')?
nur rahayu

Joined: Dec 11, 2010
Posts: 2
Thank you Tom Reilly!
I've never noticed about the absolute/relative path. But unfortunately, the new problem is coming. Let me try to solve it first by myself.
I agree. Here's the link:
subject: filenameFilter in linux directory