New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

OS 10.5 - how do get started in java


Post Reply New Thread Subscribe

 
Thread Tools
Straitsfan

 
Member Since: Feb 03, 2008
Posts: 142
Straitsfan is on a distinguished road

Straitsfan is offline
I posted this topic a while ago, but I can't find it anymore, so I'll ask again. I've downloaded the lates version of Java for mac (se6) and it's sitting on my hard drive, but I don't know what to do next to get going. I bought the dummies series of books to start out with Java, and it comes with an IDE (j creator light). I haven't loaded it yet into the machine, because I dont' know what else I need (if anything) to start programming/learning. Can anyone out there tell me what else I need to do?
QUOTE Thanks
Del

 
Member Since: Dec 24, 2006
Location: N. Ireland
Posts: 901
Del has a spectacular aura about
Mac Specs: Mac Pro 2xQuad core 2.8GHZ

Del is offline
Firstly - You don't need anything else, however as you become more proficient a better IDE (Eclipse or Netbeans) would be recommended.

You can write java code using a simple plain text editor.

And then you can compile and run the code from OSX's terminal, which is basically what j creator will do for you behind the scenes.
QUOTE Thanks
Straitsfan

 
Member Since: Feb 03, 2008
Posts: 142
Straitsfan is on a distinguished road

Straitsfan is offline
Okay -- I'm not sure I said enough in my other posts. I was learning java on my old pc, so I'm very very new to mac. I'll start using text editor to write the programs, but how do I use terminal to run the programs? I have it on my machine, but all I get is a window. while I'm here, can anyone tell me how to open xcode? I know it's on my disc, and I thought I downloaded the right one (I think it was the package) but I get nothing.
QUOTE Thanks
Del

 
Member Since: Dec 24, 2006
Location: N. Ireland
Posts: 901
Del has a spectacular aura about
Mac Specs: Mac Pro 2xQuad core 2.8GHZ

Del is offline
In the terminal there are two main commands for java, these are
java and javac

javac runs the java compiler

java executes a java program


so some examples

javac MyProgram.java (will compile MyProgram.java in the current directory)

java MyProgram (will execute MyProgram)
QUOTE Thanks
aplistar1982

 
Member Since: May 09, 2012
Posts: 2
aplistar1982 is on a distinguished road

aplistar1982 is offline
Here is a great article about java programming on mac. There is a whole section about development on mac - unix navigation, environment variables, eclipse/tomcat/maven installation etc

http://bitbybitblog.com/java-on-mac
QUOTE Thanks

Post Reply New Thread Subscribe


« Support with Applescript | g++ fstream in Mac OS X 10.6 »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Getting started with Java DrQuincy OS X - Development and Darwin 6 02-13-2007 06:06 PM
weird java problem rerks OS X - Apps and Games 0 01-28-2007 05:59 AM
java question rerks OS X - Operating System 0 01-23-2007 03:05 AM
Java update 1.4.1 is out rman OS X - Operating System 1 04-30-2006 01:05 PM
Java From Terminal jdgti OS X - Development and Darwin 10 03-26-2005 07:16 PM

All times are GMT -4. The time now is 07:15 PM.

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

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?