Get the Java JDK 6
http://www.oracle.com/technetwork/java/ … #javasejdk
Offline
To the knowledge of a windows user who wanted to know if he could develop java if he ever got enough money for a Mac, Java (both JRE and JDK) are included in OSX. Try typing 'javac' into terminal to see if it is installed.
Edit: yeah. There isn't even a download for Mac OSX except the JDK 7 beta.
Last edited by 16Skittles (2012-04-17 23:00:58)
Offline
Ecliptic wrote:
Just use the JDK 7 beta.
But JDK is preinstalled for macs
Offline
16Skittles wrote:
To the knowledge of a windows user who wanted to know if he could develop java if he ever got enough money for a Mac, Java (both JRE and JDK) are included in OSX. Try typing 'javac' into terminal to see if it is installed.
Edit: yeah. There isn't even a download for Mac OSX except the JDK 7 beta.
I get
Last login: Wed Apr 18 06:58:47 on ttys000 Maxwells-MacBook-Pro:~ maxwelldoss$ javac Usage: javac <options> <source files> where possible options include: -g Generate all debugging info -g:none Generate no debugging info -g:{lines,vars,source} Generate only some debugging info -nowarn Generate no warnings -verbose Output messages about what the compiler is doing -deprecation Output source locations where deprecated APIs are used -classpath <path> Specify where to find user class files and annotation processors -cp <path> Specify where to find user class files and annotation processors -sourcepath <path> Specify where to find input source files -bootclasspath <path> Override location of bootstrap class files -extdirs <dirs> Override location of installed extensions -endorseddirs <dirs> Override location of endorsed standards path -proc:{none,only} Control whether annotation processing and/or compilation is done. -processor <class1>[,<class2>,<class3>...]Names of the annotation processors to run; bypasses default discovery process -processorpath <path> Specify where to find annotation processors -d <directory> Specify where to place generated class files -s <directory> Specify where to place generated source files -implicit:{none,class} Specify whether or not to generate class files for implicitly referenced files -encoding <encoding> Specify character encoding used by source files -source <release> Provide source compatibility with specified release -target <release> Generate class files for specific VM version -version Version information -help Print a synopsis of standard options -Akey[=value] Options to pass to annotation processors -X Print a synopsis of nonstandard options -J<flag> Pass <flag> directly to the runtime system
I don't know what to do next.
Offline
Macs come with the JDK. Type 'javac file_name.java' into the Terminal application after you have navigated to the correct directory ('cd folder' to go into a folder, 'cd ..' to exit a folder; it starts on your user folder). Then type 'java class_and_file_name' to run it. There's also another, longer command to turn the .class file that you'll create with javac into a .jar.
Offline
I would say get netbeans or eclipse, but those don't work on mac. Then I would say get NPP, but that's, also, just fow windows. Just use TextEdit or whatever sorcery you have on macs and use javac or java from the command line.
Offline
Find a good tutorial !FOR MAC! Most books use an IDE but you can't. Or just sell your 2000$ mac and get a windows. </completely unbiased>
Offline
maxdoss wrote:
16Skittles wrote:
To the knowledge of a windows user who wanted to know if he could develop java if he ever got enough money for a Mac, Java (both JRE and JDK) are included in OSX. Try typing 'javac' into terminal to see if it is installed.
Edit: yeah. There isn't even a download for Mac OSX except the JDK 7 beta.I get
Code:
Last login: Wed Apr 18 06:58:47 on ttys000 Maxwells-MacBook-Pro:~ maxwelldoss$ javac Usage: javac <options> <source files> where possible options include: -g Generate all debugging info -g:none Generate no debugging info -g:{lines,vars,source} Generate only some debugging info -nowarn Generate no warnings -verbose Output messages about what the compiler is doing -deprecation Output source locations where deprecated APIs are used -classpath <path> Specify where to find user class files and annotation processors -cp <path> Specify where to find user class files and annotation processors -sourcepath <path> Specify where to find input source files -bootclasspath <path> Override location of bootstrap class files -extdirs <dirs> Override location of installed extensions -endorseddirs <dirs> Override location of endorsed standards path -proc:{none,only} Control whether annotation processing and/or compilation is done. -processor <class1>[,<class2>,<class3>...]Names of the annotation processors to run; bypasses default discovery process -processorpath <path> Specify where to find annotation processors -d <directory> Specify where to place generated class files -s <directory> Specify where to place generated source files -implicit:{none,class} Specify whether or not to generate class files for implicitly referenced files -encoding <encoding> Specify character encoding used by source files -source <release> Provide source compatibility with specified release -target <release> Generate class files for specific VM version -version Version information -help Print a synopsis of standard options -Akey[=value] Options to pass to annotation processors -X Print a synopsis of nonstandard options -J<flag> Pass <flag> directly to the runtime systemI don't know what to do next.
Okay, this means that you do have the JDK already installed. You'll need to learn Java now (I recommend TheNewBoston on YouTube) and then you're all set!
Offline
nickbrickmaster wrote:
I would say get netbeans or eclipse, but those don't work on mac. Then I would say get NPP, but that's, also, just fow windows. Just use TextEdit or whatever sorcery you have on macs and use javac or java from the command line.
netbeans works on mac
eclipse i think it does
So kids the lesson is - Do your research FIRST
Offline
16Skittles wrote:
maxdoss wrote:
16Skittles wrote:
To the knowledge of a windows user who wanted to know if he could develop java if he ever got enough money for a Mac, Java (both JRE and JDK) are included in OSX. Try typing 'javac' into terminal to see if it is installed.
Edit: yeah. There isn't even a download for Mac OSX except the JDK 7 beta.I get
Code:
Last login: Wed Apr 18 06:58:47 on ttys000 Maxwells-MacBook-Pro:~ maxwelldoss$ javac Usage: javac <options> <source files> where possible options include: -g Generate all debugging info -g:none Generate no debugging info -g:{lines,vars,source} Generate only some debugging info -nowarn Generate no warnings -verbose Output messages about what the compiler is doing -deprecation Output source locations where deprecated APIs are used -classpath <path> Specify where to find user class files and annotation processors -cp <path> Specify where to find user class files and annotation processors -sourcepath <path> Specify where to find input source files -bootclasspath <path> Override location of bootstrap class files -extdirs <dirs> Override location of installed extensions -endorseddirs <dirs> Override location of endorsed standards path -proc:{none,only} Control whether annotation processing and/or compilation is done. -processor <class1>[,<class2>,<class3>...]Names of the annotation processors to run; bypasses default discovery process -processorpath <path> Specify where to find annotation processors -d <directory> Specify where to place generated class files -s <directory> Specify where to place generated source files -implicit:{none,class} Specify whether or not to generate class files for implicitly referenced files -encoding <encoding> Specify character encoding used by source files -source <release> Provide source compatibility with specified release -target <release> Generate class files for specific VM version -version Version information -help Print a synopsis of standard options -Akey[=value] Options to pass to annotation processors -X Print a synopsis of nonstandard options -J<flag> Pass <flag> directly to the runtime systemI don't know what to do next.
Okay, this means that you do have the JDK already installed. You'll need to learn Java now (I recommend TheNewBoston on YouTube) and then you're all set!
The problem is I don't even know how to access JDK from there......
Offline
nickbrickmaster wrote:
I would say get netbeans or eclipse, but those don't work on mac. Then I would say get NPP, but that's, also, just fow windows. Just use TextEdit or whatever sorcery you have on macs and use javac or java from the command line.
They both work on Mac :3
Offline
maxdoss wrote:
16Skittles wrote:
maxdoss wrote:
I getCode:
Last login: Wed Apr 18 06:58:47 on ttys000 Maxwells-MacBook-Pro:~ maxwelldoss$ javac Usage: javac <options> <source files> where possible options include: -g Generate all debugging info -g:none Generate no debugging info -g:{lines,vars,source} Generate only some debugging info -nowarn Generate no warnings -verbose Output messages about what the compiler is doing -deprecation Output source locations where deprecated APIs are used -classpath <path> Specify where to find user class files and annotation processors -cp <path> Specify where to find user class files and annotation processors -sourcepath <path> Specify where to find input source files -bootclasspath <path> Override location of bootstrap class files -extdirs <dirs> Override location of installed extensions -endorseddirs <dirs> Override location of endorsed standards path -proc:{none,only} Control whether annotation processing and/or compilation is done. -processor <class1>[,<class2>,<class3>...]Names of the annotation processors to run; bypasses default discovery process -processorpath <path> Specify where to find annotation processors -d <directory> Specify where to place generated class files -s <directory> Specify where to place generated source files -implicit:{none,class} Specify whether or not to generate class files for implicitly referenced files -encoding <encoding> Specify character encoding used by source files -source <release> Provide source compatibility with specified release -target <release> Generate class files for specific VM version -version Version information -help Print a synopsis of standard options -Akey[=value] Options to pass to annotation processors -X Print a synopsis of nonstandard options -J<flag> Pass <flag> directly to the runtime systemI don't know what to do next.
Okay, this means that you do have the JDK already installed. You'll need to learn Java now (I recommend TheNewBoston on YouTube) and then you're all set!
The problem is I don't even know how to access JDK from there......
Just download an IDE.
Offline
veggieman001 wrote:
maxdoss wrote:
16Skittles wrote:
Okay, this means that you do have the JDK already installed. You'll need to learn Java now (I recommend TheNewBoston on YouTube) and then you're all set!The problem is I don't even know how to access JDK from there......
Just download an IDE.
I recommend Eclipse.
Offline
maxdoss wrote:
16Skittles wrote:
maxdoss wrote:
I getCode:
Last login: Wed Apr 18 06:58:47 on ttys000 Maxwells-MacBook-Pro:~ maxwelldoss$ javac Usage: javac <options> <source files> where possible options include: -g Generate all debugging info -g:none Generate no debugging info -g:{lines,vars,source} Generate only some debugging info -nowarn Generate no warnings -verbose Output messages about what the compiler is doing -deprecation Output source locations where deprecated APIs are used -classpath <path> Specify where to find user class files and annotation processors -cp <path> Specify where to find user class files and annotation processors -sourcepath <path> Specify where to find input source files -bootclasspath <path> Override location of bootstrap class files -extdirs <dirs> Override location of installed extensions -endorseddirs <dirs> Override location of endorsed standards path -proc:{none,only} Control whether annotation processing and/or compilation is done. -processor <class1>[,<class2>,<class3>...]Names of the annotation processors to run; bypasses default discovery process -processorpath <path> Specify where to find annotation processors -d <directory> Specify where to place generated class files -s <directory> Specify where to place generated source files -implicit:{none,class} Specify whether or not to generate class files for implicitly referenced files -encoding <encoding> Specify character encoding used by source files -source <release> Provide source compatibility with specified release -target <release> Generate class files for specific VM version -version Version information -help Print a synopsis of standard options -Akey[=value] Options to pass to annotation processors -X Print a synopsis of nonstandard options -J<flag> Pass <flag> directly to the runtime systemI don't know what to do next.
Okay, this means that you do have the JDK already installed. You'll need to learn Java now (I recommend TheNewBoston on YouTube) and then you're all set!
The problem is I don't even know how to access JDK from there......
Are you expecting a program such as Scratch? The JDK is the BARE basics needed to create Java programs. It includes the JRE, the compiler (Javac on command line) and a few other tools. If you want to do all the hard work yourself, just fire up a text editor and save your program as a .java file. Navigate to the directory of the file and type "javac yourprogram.java". Note that Java is a case sensitive language, meaning that if your program is named "HelloWorld.java" and you type "javac helloworld.java" there will be an error.
If you want the computer to do most of the work for you, as well as be more organized, you will want an IDE, or Integrated Development Environment. This organizes your program in packages, catches bad syntax (like spell check in Word or Pages) and features options for exporting your program easily. Most commonly used are Eclipse and Netbeans, which I believe have already been linked to above. If not, Google it.
Offline