i've been looking all over. I even go to the Java Sun/Oracle site and where it says "choose your platform" Mac is not included, only the basic Linux, Windows ....anyone know where i can download JDK for Mac???
Welcome to the Java Programming Forums
The professional, friendly Java community. 21,500 members and growing!
The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.
>> REGISTER NOW TO START POSTING
Members have full access to the forums. Advertisements are removed for registered users.
i've been looking all over. I even go to the Java Sun/Oracle site and where it says "choose your platform" Mac is not included, only the basic Linux, Windows ....anyone know where i can download JDK for Mac???
Doesn't MAC OS come with a pre installed JDK?
See if this link helps:As a rule you cannot install other versions of Java on a Mac than those provided by Apple through Software Update. If you need Java 6 you must have a 64-bit Intel computer. You should always have Java 5 and 1.4 and perhaps 1.3 installed if you have at least OS X 10.4.
Apple Developer Tools for Java
Please use [highlight=Java] code [/highlight] tags when posting your code.
Forum Tip: Add to peoples reputation by clicking the button on their useful posts.
coolmate108 (November 18th, 2010)
Thank you so much for trying to help but yes, i am able to find Java in: System > Library > Java > Java Virtual Machines, which brings up JDK 1.6 but it only shows the Java Preferences I have like 4 different java development kits there....
Where do i go to launch them? You can't launch there in the "Preferences" page nor can i find the LAUNCH or RUN file in /usr/bin/
How in the world do i get JDK SE so i can use its compiler and start coding?!?!?!?
Jesus!
It should be installed and on the Path.Open a terminal window (Applications->Utilities->Terminal), and type 'javac -version'. It should respond with the current compiler version number. You can also type 'java -version' and it should respond with the current version of the JRE. Use these commands to compile and run.
Hello, i appreciate your help,
On the terminal for java and javac i got
vinicio-paredess-macbook:~ vinicioparedes$ javac -version
javac 1.6.0_22
vinicio-paredess-macbook:~ vinicioparedes$ java -version
java version "1.6.0_22"
Java(TM) SE Runtime Environment (build 1.6.0_22-b04-307-9M3263)
Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03-307, mixed mode)
vinicio-paredess-macbook:~ vinicioparedes$
Sure it says i have it, but how do i run it? or launch it? Whatever happened to clicking on a button and installing it =(
Not sure what you mean...that is how you run it. See Hello World for a demo on using java and javac. They are command line utilities. In the long run an IDE (such as Eclipse) makes things much simpler, but I'd always encourage new users to become familiar with the command line.
Pardon my ignorance. I am using xcode for my text edit, or i can even use the mac's text editor, but now you're saying to code, all you need is the "Terminal" command and a text editor?
I thought JDK was an IDE on itself. I see, the command line is the JDK on mac...hmmm? Thank you! I'm very new at this. I will be back later to Thank you further when i write my first "hello World" program =P
The JDK is not an IDE, it is in fact a Java compiler, a Java debugger (somewhat difficult to fathom without an IDE), and some other helpful utilities which beginning Java programmers probably won't use.
Any text editor will work for writing your source code. Note that it must save in plain text format, not RTF or XML (something like Microsoft Word/Open Office wouldn't work).
If you want an IDE, the one I would recommend is called Eclipse. Download link: Eclipse Downloads (pick the one for "Java Developers").