This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt on-line!
See this thread for details.
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

Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
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: 24193


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: 1321

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: 14991

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!