My sister has to take a class on Java at community college to fulfill her requirements to move on to four year. Even though she does not have to take the class anymore I made her keep the book she bought because I am interested in learning. But I am way confused.
I need an editor. I know mac comes with text edit so could that work as my editor for java. Also it says macs are known to come with Java already installed. I have a mac book pro. In the book it says to open terminal and enter to see if you have java installed.
javac
I did that but it did not recognize it so that means it does not come with java on my computer. Here is what it said
Last login: Tue Nov 25 11:17:47 on ttys000
apples-macbook-pro-2:~ juliagrohman$ 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
-cp <path> Specify where to find user class files
-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
-d <directory> Specify where to place generated class 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
-X Print a synopsis of nonstandard options
-J<flag> Pass <flag> directly to the runtime system
apples-macbook-pro-2:~ juliagrohman$
So does that mean I Have dont have java included. If not how do I download java. Because it says the place to download java java.sun.com does not support mac operating systems. Please help me as I am very confused and want to start learning java. Please help me.
I need an editor. I know mac comes with text edit so could that work as my editor for java. Also it says macs are known to come with Java already installed. I have a mac book pro. In the book it says to open terminal and enter to see if you have java installed.
javac
I did that but it did not recognize it so that means it does not come with java on my computer. Here is what it said
Last login: Tue Nov 25 11:17:47 on ttys000
apples-macbook-pro-2:~ juliagrohman$ 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
-cp <path> Specify where to find user class files
-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
-d <directory> Specify where to place generated class 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
-X Print a synopsis of nonstandard options
-J<flag> Pass <flag> directly to the runtime system
apples-macbook-pro-2:~ juliagrohman$
So does that mean I Have dont have java included. If not how do I download java. Because it says the place to download java java.sun.com does not support mac operating systems. Please help me as I am very confused and want to start learning java. Please help me.