Can I use applications using Java 1.4.2_12 and Java 1.5 on the same Windows server?

I have several applications running on Java 1.4.2_12, and now you need to add a new application using Java 1.5. Can I have java versions on a windows server?

+3
source share
5 answers

Yes. You just need to make sure that each one has the correct version of Java / JRE in its CLASSPATH, PATH, and JAVA_HOME environment variables.

+5
source

Yes: in fact, the JDK or JRE can simply be "copied" wherever you want and not "installed" (avoiding putting anything in c: \ Windows \ System32)

.

, ( ), Java

+3

, Java 1.4.2_12 Java? , 1.5.

VM, , .

+2

. . . , ( ) .

+1

Java WebStart, J2SE JNLP. ; "java.exe" " " .

CLASSPATH JRE ( JRE). JRE bootclasspath . CLASSPATH .

JAVA_HOME, JDK\lib\(, tools.jar, )

But I'm not sure what your problem is. Do you run a client application (swing)? Two Java processes for providing services? or do two applications use the same Java application server?

0
source

Source: https://habr.com/ru/post/1702418/


All Articles