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???
Printable View
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:Quote:
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
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").