Compile .java file in xcode

I am new to programming in java and can only make simple programs in the console. I do this with a .java file, and then compiling it and running the .class file. On windows, I simply use javac.exe and java.exe. On the mac, how can I compile a .java file and run it with xcode.

iMac, Mac OS X (10.5.4)

Posted on Sep 23, 2008 5:31 PM

Reply
3 replies

Sep 23, 2008 5:43 PM in response to macman498

macman498 wrote:
I am new to programming in java and can only make simple programs in the console. I do this with a .java file, and then compiling it and running the .class file. On windows, I simply use javac.exe and java.exe. On the mac, how can I compile a .java file and run it with xcode.

Why not get BlueJ? It's free, and meant for editing (and compiling. and writing) java.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Compile .java file in xcode

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.