What prevents cross-platforming of your Java web application

Are there any things that once can do unknowingly that could prevent the Java web application from being cross-linked? (Windows / Linux / Mac)

The tools I plan to use is java / spring framework / hibernate

+5
source share
4 answers
  • Hardcoding separators / paths.
  • Using your own libraries.
  • Using Runtime.exec ()
  • Using sun classes. * (this may cause portability problems with the non-Sun JVM).
+12
source

case insensitive file system

+6
source

/

+6

, :

  • provided that some shell syntax will work correctly (for example, 2>&1or something else)
  • delete or rename a file that can be opened by another process (or by the same one!)
  • Making assumptions about the working directory (for example, using relative paths to load resoucs from the file system)
+5
source

All Articles