Installing multiple versions of sun java
Yes. you can. Check this article. http://lj4newbies.blogspot.com/2007/04/2-jvm-on-one-linux-box.html
Hope this helps.
Related videos on Youtube
sharat87
Updated on September 17, 2022Comments
-
sharat87 over 1 year
I have a need to maintain different versions of a certain product written in java, and uses sun's jdk to build. Some older versions of the product need an older jdk (1.5) and the newer ones need jdk 1.6. So, my question is how can I install (and maintain) multiple versions of sun's jdk. I don't want openjdk, icedtea or whatever else, but different versions of sun's jdk itself.
I ask this as I've seen I have the commands
python
,python2.6
accessible. If I install another python version, I get it aspython2.7
although thepython
command doesn't point to it. This is exactly the kind of setup I need with java. But anything close also works.Thank you.
-
ryanjdillon over 10 yearsI attempted to use this method for Saucy (13.10), and it appears there is not a
sun-java6-jdk
package available under the backport libraries for this newer version of Ubuntu.