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.
The moose likes Beginning Java and the fly likes not even beginning... Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "not even beginning..." Watch "not even beginning..." New topic
Author

not even beginning...

stella marsh
Greenhorn

Joined: May 16, 2006
Posts: 6
This is my first attempt at java, and I'm having trouble getting started.
I've been typing in examples from a book, and keep getting this error message when I run javac:
error: cannot read: MyFirstApp.java
1 error
Obviously, I spent hours checking for typos. Now I've read the page here on how to get started, copied the example code from this site in directly and even WIPED the whole thing clean- without altering this message at all!
I'm obviously doing something ELSE wrong.
I'm writing in textedit on mac osx 4, and javac is definately there. Should I be saving my java document somewhere in particular, or typing in fuller directions as to where it is located? I don't seem to be missing out any of the stages in the book I have.
I've tried the apple developers' site recommended, and am more confused than ever.
Just hoping someone might save me another 24hrs or so of stress and mounting confusion...
marc weber
Sheriff

Joined: Aug 31, 2004
Posts: 11343

Welcome to JavaRanch!

It sounds like your file is not saved as plain text (it's probably rich text instead). Unfortunately, I'm on a Windows machine now, so I can't tell you the exact options -- I'll check this later tonight. I think you want to select "Plain Text" from the Format menu before saving. Then when you save, enter ".java" as the extension, and when TextEdit asks if you want to append or use the .txt extension, tell it that you're sure you want to use .java instead.

Also, note that we have a Mac OS forum specifically for Mac topics. I'll move this post there for you, so you can get expert Mac help.

Let us know how this works!
[ May 16, 2006: Message edited by: marc weber ]

"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
 
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.
 
subject: not even beginning...
 
Similar Threads
compiling problems
Getting up and running with Javac
Is this the place to ask installation questions?
not even beginning
setting up java environment