Mac Forums

Mac Forums (
-   OS X - Development and Darwin (
-   -   help instaling java (

Blindness 01-17-2008 02:30 AM

help instaling java
Hi all. This is my first mac and i am very excited. However i am currently enrolled in a java programing class and i cant seem to install it on my mac.
I got a new macbook pro with leopard OS. Every time i try to install it i am told that i need os 10.4 or later does anyone know where i can get java for leopard or what i am doing wrong?
thanks :)

Del 01-17-2008 03:23 AM

Java comes pre-installed with OSX

To check what version you have, open a terminal window and enter the following command


java -version

Aptmunich 01-17-2008 03:35 AM

Yeah, just open the terminal, cd over to your folder and type "javac" and it'll compile your code.

Then type in "java myapplication" to run your app.

Personally I used Textmate for quite a while since it does all that for you with a single click. Now I use Eclipse mostly (a Java IDE).

Blindness 01-17-2008 07:49 AM

hey guys thanks so much for your help, but this is my first mac so where is this terminal window which im assuming is the same as the comand window on a windows machine. For windows i just go to start, then run, type cmd and click enter. where do i find it here. also where do i find textmate and that other one u where talking about?
Thanks so much:)

Del 01-17-2008 10:19 AM

Yes terminal is the same as the 'command' window.

just type 'terminal' in to spotlight (the magnifying glass to the right of the top menubar)

Textmate is found with google, but there is a textedit that comes with OSX, but it saves in rtf format so make sure you save as plain text when editing java code

Blindness 01-17-2008 12:55 PM

thanks alot guys

Aptmunich 01-18-2008 01:51 AM

To change Folder directory in the terminal, either type "cd" and then the path, or just type "cd" and then drag in the folder that you want to change to.

The terminal will auto-complete the rest of the path for you.

All times are GMT -4. The time now is 06:21 AM.

Powered by vBulletin
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.