Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Oct 23, 2007, 09:46 AM   #1
HomeingPigeon
macrumors regular
 
Join Date: Aug 2007
How do i write java on a mac?

For my class I will get extra credit if i can figure out how to write java and run java on a mac. I know it is possible and I hope that someone can tell me how they do it. The fewer things I have to download the better and the less money that it cost the better as well


thanks
__________________
FLICKr
HomeingPigeon is offline   0 Reply With Quote
Old Oct 23, 2007, 09:49 AM   #2
Queso
macrumors 603
 
Join Date: Mar 2006
Java is built into OSX. More info here
Queso is offline   0 Reply With Quote
Old Oct 23, 2007, 09:53 AM   #3
HomeingPigeon
Thread Starter
macrumors regular
 
Join Date: Aug 2007
Yeah i know that it is built in but how do i access it and write it.
__________________
FLICKr
HomeingPigeon is offline   0 Reply With Quote
Old Oct 23, 2007, 09:56 AM   #4
Queso
macrumors 603
 
Join Date: Mar 2006
Have you installed the XCode tools? The Java Development apps are bundled with them. They aren't installed by default, but are on your OSX installation disks.
Queso is offline   0 Reply With Quote
Old Oct 23, 2007, 10:28 AM   #5
Eraserhead
macrumors G4
 
Eraserhead's Avatar
 
Join Date: Nov 2005
Location: UK
If you have broadband its probably best to download the latest version of the developer tools with a free developers account on http://developer.apple.com/. Though the method dynamicv will work fine, and save you a 900MB download.

Once you have installed the developers tools. You can then compile with javac and run with java just like on Windows/Linux.
Eraserhead is offline   0 Reply With Quote
Old Oct 23, 2007, 03:43 PM   #6
cjh
macrumors newbie
 
Join Date: Oct 2007
If you only need to prove that you can write, compile and run java on a Mac, then you can just use TextEdit to make your java source (set it up to use plain text instead of rich text), compile using javac, then run using java.

I don't recall if javac is installed with OS X or if you have to install it via developers tools (either off your OS X dvd or from the download mentioned above).

Alternatively, you can use XCode, also mentioned above, or other available IDEs for java available for Mac like Eclipse or NetBeans.

Last edited by cjh; Oct 23, 2007 at 03:49 PM.
cjh is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Resolved: Most modern Mac to write to 800K floppies? tevion5 Apple Collectors 11 Oct 19, 2013 08:01 PM
VMware Fusion 5 - Shared Folder (Read/Write) - Yet no write permissions in VM altjx Windows, Linux & Others on the Mac 2 Aug 29, 2013 09:19 AM
Chrome on OS X -- Java plugin / Java 7 vs Java 6 Issue booyahbooyah Mac Applications and Mac App Store 4 May 31, 2013 09:13 AM
Mac can no longer write on External Drive noelpinell Mac Basics and Help 5 Dec 16, 2012 11:37 PM

Forum Jump

All times are GMT -5. The time now is 09:43 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC