0

I am deploying a java application in windows IDE but this application will be run in Ubuntu. What cross compiler do I need to compile in windows and then deploy it in Ubuntu?

Thank you,

3
  • 4
    Java is cross-platform already. Classes compiled with Windows should work in Ubuntu . Commented May 11, 2018 at 13:50
  • Java works on any platform. You can compile your code on windows and run it on Ubuntu, and vice-versa. Commented May 11, 2018 at 13:51
  • Little anecdote: i once worked on project, developers worked on windows, automated build on linux, and final deployment was on AIX machines. No cross-compilers needed :-) Commented May 11, 2018 at 14:15

1 Answer 1

3

All Java compilers are cross-platform. That's one of the most important characteristics of Java. Java compiles to byte-code, which is the interpreted by a virtual machine. If a computer has a virtual machine it can run byte code generated in any operating system.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.