简体   繁体   中英

Configuring multiple java on linux

I have a linux vm which is our testing machine. as part of some initiative, I want to install some software on this vm which would require Java 6+. Currently its running java 5 which i don't want to change because of the compatibility with test environment.

I want to know who can i configure multiple JAVA on this vm.

By installing the binaries to another location, and then directily referencing the file you can start using a specific binary

Instead of

java -jar Derp.jar

it will be

/opt/java5/bin/java -jar Derp.jar

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM