Campbell Ritchie wrote:Welcome to the Ranch
You don't start Java® from the start menu. What you do is open the command line. Have a look in our FAQ.
Uninstall the versions of JRE you have; you don't need them. The complete JRE is included in the JDK.
Don't mix user environment variables and system environment variables. Set the PATH to the Java9 JDK as a system environment variable; it should start with c: and end with \bin.
Until you use the Streams API, chances are everything you write will be backwards compatible with Java7-8, but will need to be recompiled with compatibility instructions. If you are just beginning, backward compatibility will not be an important issue, but the compatibility flags will produce error messages if you try compiling a new feature not available in the old version. Search for the documentation for the javac and java tools (you might find the old Java7 versions here) and look for the option tags called -source and -target.
Campbell Ritchie wrote:If you are using NetBeans you will have to use the technique of setting JAVA_HOME as well as the PATH component. You should probably put the desired PATH component to Java® first in the PATH.
Campbell Ritchie wrote:That's a pleasure
You don't need the user environment variable at the present if you have set it for the system. Maybe you would want a user variable if you are the only person to use Java®. Getting 9 from java -version sounds good.
I would suggest you get yourself a decent text editor (Notepad++ being my favourite on Windows®) and set up the options for automatic indentation, automatic conversion of tab→4 spaces, syntax colouring which you like and bracket matching. Those will make it easier to find your way around the code. Once you are confident about setting the CLASSPATH (which you won't need for some time, but you will probably do differently for each app needing it), then I suggest you move onto an IDE. Any of IntelliJ Eclipse and NetBeans will work nicely.
Fred Wilhelm wrote:...
Also as I mentioned I have Eclipse Oxygen and Netbeans i found that the Oxygen version of Eclipse was the only eclipse version to see Java 9.
I am in the process of contacting Jetbrains to see if I can qualify for free license and will be getting a trial version of it...
salvin francis wrote:
Fred Wilhelm wrote:...
Also as I mentioned I have Eclipse Oxygen and Netbeans i found that the Oxygen version of Eclipse was the only eclipse version to see Java 9.
I am in the process of contacting Jetbrains to see if I can qualify for free license and will be getting a trial version of it...
Hi Fred, if you are beginner, an IDE (Eclipse, Netbeans, IntelliJ, etc...) which understands Java and autocompletes stuff for you will actually slow down your learning process. What you need is a Text editor that handles indentations well. This is why Campbell suggested using Notepad++
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |