File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes error cannot read file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "error cannot read file" Watch "error cannot read file" New topic

error cannot read file

abraham onyemaechi

Joined: Mar 11, 2004
Posts: 1
Hi guys!

I tried running the following simple code several times but kept receiving the error" cannot read file". Pls could some one bail me out!
Here is the code:
public class MyDataApp
public static void main(String[] args)
System.out.println("My name is Abraham!");
Thanks a lot
See ya soon
john smith
Ranch Hand

Joined: Mar 04, 2004
Posts: 75
Describe how you tried to run it.
Nigel Browne
Ranch Hand

Joined: May 15, 2001
Posts: 673
Did you set your classpath correctly before trying to run it?
[ March 11, 2004: Message edited by: Nigel Browne ]
Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
john smith,
Welcome to JavaRanch!
We ain't got many rules 'round these parts, but we do got one. Please change your display name to comply with The JavaRanch Naming Policy.
Thanks Pardner! Hope to see you 'round the Ranch!

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
I agree. Here's the link:
subject: error cannot read file
It's not a secret anymore!