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 and Java 2 Plus I want to learn development on Java 6 and 7
Thanks.
I attach some pics as how I configured VS code to work with two different versions of Java in one machine
1-Environment Variables
2-Configuration inside VS Code
3-Configuration inside VS Code
4-Configuration inside VS Code
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With