• Post Reply Bookmark Topic Watch Topic
  • New Topic

Installing on Mac OS X 10.6  RSS feed

 
Kerry Cotter
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am very green and am trying to install javac on my macos 10.6

the install package states it can't install because I need Lion...do I have to upgrade my maxos?

Thanks
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What did you download that you are trying to install now? Snow Leopard (10.6) comes with Java pre-installed. If for some reason it's missing, then http://support.apple.com/kb/dl1573 is what you need.

If it's Java 7 from Oracle you're trying to install, then yes - you need Lion, as documented here.
 
Kerry Cotter
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank You Ulf.

I believe I have java installed: Here is what comes up when I try to use javac on my first program. I know the file is correctly stated.

Kerry-Cotters-iMac:hello kcotter01$ javac HelloWorld.java
javac: file not found: HelloWorld.java
Usage: javac <options> <source files>
use -help for a list of possible options
Kerry-Cotters-iMac:hello kcotter01$
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16044
88
Android IntelliJ IDE Java Scala Spring
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That tells you that you do have the Java compiler (javac), however it cannot find your source code file HelloWorld.java.

You first have to navigate to the directory that contains the source code file, using the "cd" command. If you haven't used the terminal window before, you might want to find and read some information on basic terminal commands.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!