Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using incorporated Java features on OS X

 
Keith Riordan
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9066
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm glad that you got an answer even though it wasn't from here.

Have fun with the assignments.
 
Carol Murphy
village idiot
Bartender
Posts: 1203
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1203
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4012
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 7729
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic