mrblah
mrblah

Reputation: 103497

things that prevent cross-platformness your java web application

are there any things that once can do ignorantly that can prevent a java web application from being cross platform? (windows/linux/mac)

Tools I am planning to use are java/spring framework/hibernate

Upvotes: 5

Views: 158

Answers (4)

Dan
Dan

Reputation: 11069

In addition to what Dan Dyer said:

  • calling executables by a fixed path or of a fixed name
  • assuming a certain shell command syntax will work properly (eg 2>&1 or something)
  • deleting or renaming a file that some other process (or the same one!) might have open
  • Making assumptions about the working directory (eg using relative paths to load resouces from the file system)

Upvotes: 5

axtavt
axtavt

Reputation: 242686

Using system default character encoding for input/output when inappropriate

Upvotes: 6

peter p
peter p

Reputation: 798

not honoring case-sensitivity in filesystem

Upvotes: 6

Dan Dyer
Dan Dyer

Reputation: 54465

  • Hard-coding file separators/paths.
  • Using native libraries.
  • Using Runtime.exec()
  • Using sun.* classes (this may cause portability issues with non-Sun JVMs).

Upvotes: 12

Related Questions