views:

278

answers:

5

Hi,

I have a web project developed in java. I am using the Windows platform and accessing the project from the Windows machine itself. How can I make the project run on a Linux machine? I am using jboss server and deploying the project.

Regards

A: 

Java is a Cross-Platform language. Just deploy your JAR/WAR/EAR in a JBOSS running on a Linux Box.

Igor Zelaya
A: 

Hi Igor,

thanks. But my project fetches the data from a MySQL database and returns it to the client. Should I need to have a MySQL database on the Linux box, too?

Thanks.

+4  A: 

Java is Cross-Platform, MySQL also. You can have your application server running on one server and the database on another. You can even have your Appserver on Linux and your database on Windows and your client on MacOS.

If you run into any specific problem, please let us know, but everything should be transparent unless you wrote some very bad Java code ...

Guillaume
A: 

Java can run on many platforms only if any platform specific coding is not done for example file separator are different in windows, linux and Mac.

You need Jboss for linux and deploy your web application it should just work fine.

Bhushan
A: 

Java can run on many plarforms including linux and windows. You can develop project anywhere and run on any server.

I suggest you, install a linux on virtualbox and deploy it on linux directly. Also you can try cruise control for deploy automatically.

rayyildiz