This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
hi all.... this is for the first time that i m doing files topic.....the following code compiled fine but its giving an exception while running it...please help... [edit]Add code tags. CR[/edit] [ September 08, 2008: Message edited by: Campbell Ritchie ]
When you past another File as first parameter to the File's constructor, it expect it to be a directory. Check the javadoc on the description of the constructor.
geet kaur
Ranch Hand
Joined: Sep 03, 2008
Posts: 78
posted
0
the error is Exception in Thread main.java.io.IOException:the system cannot find the path specified..
geet kaur
Ranch Hand
Joined: Sep 03, 2008
Posts: 78
posted
0
hey Thanks Wirianto i got the solution to it...i was passing a file instead...thanks!!
Campbell Ritchie
Sheriff
Joined: Oct 13, 2005
Posts: 32654
4
posted
0
Please find the code button and ctrl-c ctrl-v when posting code, so we don't think you have an empty "catch" anywhere. I have added code tags so you can see how much easier your post is to read.
But well done sorting it out
geet kaur
Ranch Hand
Joined: Sep 03, 2008
Posts: 78
posted
0
hey thanks Campbell !!! being new to javaranch i was not aware of this..but i will take care of this in future for sure!!
Campbell Ritchie
Sheriff
Joined: Oct 13, 2005
Posts: 32654
4
posted
0
Originally posted by geet kaur: hey thanks Campbell !!! . . .
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.