wood burning stoves 2.0*
The moose likes Cattle Drive and the fly likes Using incorporated Java features on OS X Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » This Site » Cattle Drive
Bookmark "Using incorporated Java features on OS X" Watch "Using incorporated Java features on OS X" New topic
Author

Using incorporated Java features on OS X

Keith Riordan
Greenhorn

Joined: Jun 04, 2005
Posts: 6
Hello

Trying to use Java on OS X 10.3.9 (i'm under the impression that a JVM and compiler are built into this OS (which i can use with TextEdit)), but I can't figure it out. Can anyone help me out, I tried to consult the Apple Developer page (no help) and I tried just simply copying and pasting the HelloWorld program to TextEdit, saving as HelloWorld.java, then within Terminal entered commands: javac HelloWorld.java and java HelloWorld (in this order). Thanks.
Keith Riordan
Greenhorn

Joined: Jun 04, 2005
Posts: 6
Oh and this is all so that I can begin the Cattle Drive exercises, so I hope this is posted in the right place otherwise I apologize in advance.
Keith Riordan
Greenhorn

Joined: Jun 04, 2005
Posts: 6
Thank you random guy at the local coffeehouse!

Please disregard my previous request, as the guy behind me just happened to be a Mac Wizard (at least in my opinoin seeing how he made the screens dance around). Alas, my issue wasn't some rare problem to tell stories of to generations to come. No, no I simply hadn't changed the preferences and my file had been saved as a RTF(Rich Text File) while had needed to be a plain-text file. Foolish me.

But on to the assignments!
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9047
    
  10
I'm glad that you got an answer even though it wasn't from here.

Have fun with the assignments.


JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Carol Murphy
village idiot
Bartender

Joined: Mar 15, 2001
Posts: 1197
Now that you've got your saddle on straight, be sure to post to the assignment log so we can keep track of your progress on the trail!
Keith Riordan
Greenhorn

Joined: Jun 04, 2005
Posts: 6
I don't know, maybe it wasn't meant to be.

So it is now tomm. and I went to complete the first assignment. Wrote up the code and tried to compile it...error. Ok, no problem didn't expect it first time around. But after countless attempts I was baffled and needed relief. So i tried to run the HelloWorld program that I hadn't touched since it worked perfectly only hours ago !?!?!?! Counldn't do anything it won't run or compile and I haven't touched it. What is going on?!?!?! Someone please help me.
Carol Murphy
village idiot
Bartender

Joined: Mar 15, 2001
Posts: 1197
Keith, give very specific details about what you are doing and what kind of errors you are getting when you try to compile. I'm trying to find someone at the ranch to come to your rescue. The more information you give, the better idea we'll have what is happening, or not happening!
Pauline McNamara
Sheriff

Joined: Jan 19, 2001
Posts: 4012
    
    6
Howdy Keith, welcome to the Cattle Drive!

I've dragged myself through the Drive with a Macintosh, so we can probably figure out how to get you up and running.

Like Carol said, we need to know exactly what errors are coming up. For either the HelloWorld or the first assignment, what is the compiler telling you?

Hang in there, whatever it is it ain't impossible...
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
Yeah, we may be McWizards but we ain't mindreaders you know!

[never used a mac in my life, either , but I'm willing to get my son to try it out ]


Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
 
Don't get me started about those stupid light bulbs.
 
subject: Using incorporated Java features on OS X