Will the Java program run on XP, as on Windows 7

I wanted to know. Will the Java desktop application run on Windows XP, like on Windows 7, or any changes in the program?

+4
source share
5 answers

Theoretically, Java is platform independent and should work on any Windows, any Linux, any Mac, etc. without any changes. In practice, you need to verify that you are not using any platform-specific functions or parameters.

For instance:

  • Jni
  • Running command line tools for the platform
  • Specific Platform File Paths
  • Communication with platform-specific processes / services
  • , (, , HKLM 7,8 ..).
  • , , (\r\n vs \n, \ vs '/', ; vs :)
  • , .
+12

. . , - , .

+1

Java .

.

Java . Java .

0

Java application must be WORA (Write Once, Run Anywhere).

Assuming that the Windows 7 JRE does not introduce any new errors and assumes that your code is a direct Java language that does not rely on JNI by manipulating Windows XP special registry keys, etc., the answer is definite yes . It should work smoothly.

0
source

Yes, thanks for the JVM (Java Virtual Machine), it will act the same on different platforms ...

0
source

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


All Articles