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.

help instaling java


Post Reply New Thread Subscribe

 
Thread Tools
Blindness

 
Member Since: Jan 17, 2008
Posts: 3
Blindness is on a distinguished road

Blindness is offline
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
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
Java comes pre-installed with OSX

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

Code:
java -version
QUOTE Thanks
Aptmunich

 
Aptmunich's Avatar
 
Member Since: Mar 09, 2004
Location: Munich
Posts: 9,075
Aptmunich has a brilliant futureAptmunich has a brilliant futureAptmunich has a brilliant futureAptmunich has a brilliant futureAptmunich has a brilliant futureAptmunich has a brilliant futureAptmunich has a brilliant futureAptmunich has a brilliant futureAptmunich has a brilliant futureAptmunich has a brilliant futureAptmunich has a brilliant future
Mac Specs: Aluminium Macbook 2.4 Ghz 4GB RAM, SSD 24" Samsung Display, iPhone 4, iPad 2

Aptmunich is offline
Yeah, just open the terminal, cd over to your folder and type "javac myapplication.java" 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).
QUOTE Thanks
Blindness

 
Member Since: Jan 17, 2008
Posts: 3
Blindness is on a distinguished road

Blindness is offline
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
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
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
QUOTE Thanks
Blindness

 
Member Since: Jan 17, 2008
Posts: 3
Blindness is on a distinguished road

Blindness is offline
thanks alot guys
QUOTE Thanks
Aptmunich

 
Aptmunich's Avatar
 
Member Since: Mar 09, 2004
Location: Munich
Posts: 9,075
Aptmunich has a brilliant futureAptmunich has a brilliant futureAptmunich has a brilliant futureAptmunich has a brilliant futureAptmunich has a brilliant futureAptmunich has a brilliant futureAptmunich has a brilliant futureAptmunich has a brilliant futureAptmunich has a brilliant futureAptmunich has a brilliant futureAptmunich has a brilliant future
Mac Specs: Aluminium Macbook 2.4 Ghz 4GB RAM, SSD 24" Samsung Display, iPhone 4, iPad 2

Aptmunich is offline
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.
QUOTE Thanks

Post Reply New Thread Subscribe


« Programming basic C in Xcode | Help with macports »
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
Headache error (Java) mister_montana Web Design and Hosting 1 03-26-2007 10:33 AM
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 From Terminal jdgti OS X - Development and Darwin 10 03-26-2005 07:16 PM
Apple Releases Java 1.4.1 Graphite Apple Rumors and Reports 5 03-10-2003 07:52 PM

All times are GMT -4. The time now is 11:26 AM.

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?