Can I have multiple java SDK versions installed on my machine?
Java 1.4 Java 2 Java 6 Java 7
please advise as I have to develop solutions for Maximo in Java 1.4
Yeah, you can install as many Java SDKs as you want. When you develop you just use the JDK you want to use.
Yes, you can. Just use full path names when invoking javac
, java
, etc. or set your PATH environment variable to point to the appropriate jdk/bin
location.
The IDEs usually allow defining multiple JDKs/JREs, and you can choose which one to use for every project.
Yes you can. JDK is merely a directory somewhere on your disk. So you can easily download and unpack all the versions you want, and run java
and javac
from the directory you're currently interested in.
IDEs will do all the messy stuff for you: just let them know where the unpacked JDKs are, and choose a JDK in project's or module's settings.
PS. Java 1.4 is Java 2. Java 2 is actually an umbrella name for 1.2, 1.3, and 1.4
Yes,you can. You need change environment variable Normally JAVA_HOME variable. So you can use another variable. eg.
JAVA_HOME='/home/jdk1.8.0_45'
JAVA_7='/home/jdk1.7.0_60'
JAVA_6='/home/jdk1.6.0_34'
Add path variable
PATH=$PATH:$JAVA_HOME/bin
PATH=$PATH:$JAVA_7/bin
PATH=$PATH:$JAVA_8/bin
Can I have multiple java SDK versions installed on my machine?
But make sure you use right path in your projects. It will be better to use some IDE like Eclipse. It will handle jdk path problems for you.
Java 1.4 is very old, try to shift to new one as soon as possible.