Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does Java Program on XP will run as it is on windows 7

Tags:

java

I wanted to know Will the Java desktop application running on Windows XP also run as it is on Windows 7 or need any modification in program?

like image 817
user3652391 Avatar asked Dec 11 '22 01:12

user3652391


1 Answers

Theoretically java is platform independent and should run on any Windows, any linux, any mac etc without any modification exactly the same. Practically you have to check that you do not use any platform dependent features or parameters.

For example:

  1. JNI
  2. Execution of platform specific command line tools
  3. Platform specific file paths
  4. Communication with platform specific processes/services
  5. Operations that can produce security issues on some Operating systems (e.g. specific file paths, registry entries under HKLM on windows 7,8 etc)
  6. Assumptions about line, path, file path separators (\r\n vs \n, \ vs '/', ; vs :)
  7. Wrong usage of layout managers that can cause UI to fail on some screen resolutions.
like image 91
AlexR Avatar answered Dec 28 '22 06:12

AlexR