File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Mac OS and the fly likes cannot read Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » Mac OS
Reply locked New topic

cannot read

Kevin Tysen
Ranch Hand

Joined: Oct 12, 2005
Posts: 255
I tried to get the java compiler to compile my file like this:
tysen% javac
but I got this error message
error: cannot read
I cannot figure out why the compiler cannot read my application. I wrote it and saved it in text only format. It's a standard simple application with one class and a main method. The class name and file name are the same (except that the class name doesn't have .java on it), and the lower and upper cases match too.
Do I have to provide information to the compiler to tell it where the file is? How do I do that? I have OS10.0.4. Is this a problem with OS10.0.4 which gets fixed in later editions of OS10?
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63873

Please do not post the same question in more than one forum.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: cannot read
It's not a secret anymore!