File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Can i shift JSP From Window to Unix Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Can i shift JSP From Window to Unix" Watch "Can i shift JSP From Window to Unix" New topic

Can i shift JSP From Window to Unix

lou webster

Joined: Jul 15, 2008
Posts: 1
If i take jsp program developed in window platform then i put it into unix server then it is runable or not?

development pc:
OS: window XP

OS: solaris 10
Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24199


Welcome to JavaRanch!

Yes, it will be completely compatible, as long as you haven't done anything like hardcode a Windows path to a data file.

[Jess in Action][AskingGoodQuestions]
Muhammad Saifuddin
Ranch Hand

Joined: Dec 06, 2005
Posts: 1323

write once, run anywhere.

[Blog][Linkedin] How To Ask Questions On JavaRanch My OpenSource
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 15094

I've been working like this for years: the developers use Windows XP machines, and the application is deployed on Linux or Solaris servers.

Java was designed to be platform-independent. A Java program runs on any operating system without modifications, as long as there's a JVM available on the operating system.

It is possible to do platform-specific things in Java, such as using Windows-style paths to files as Ernest mentions. If you do that in your program, it obviously doesn't work on non-Windows environments.

Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
I agree. Here's the link:
subject: Can i shift JSP From Window to Unix
It's not a secret anymore!