Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <blockquote> <p><strong><em>Is Java a cross platform?</em></strong></p> </blockquote> <p>Java is cross platform in the sense that a <em>compiled</em> Java program runs on all platforms for which there exists a JVM. (This holds for all major operating systems, including Windows, Mac OS and Linux.)</p> <blockquote> <p><strong><em>I mean I can develop Java application in windows and use it in mac and Linux?</em></strong></p> </blockquote> <p><strong>Yes,</strong> this is possible.</p> <p>This (and the security aspect) is one of the main advantages of running the programs in a virtual machine.</p> <blockquote> <p><strong><em>If yes how?</em></strong></p> </blockquote> <ul> <li>Write your application in Java (In <code>.java</code> files)</li> <li>Compile your application using Eclipse or javac (into <code>.class</code> files)</li> <li>(Optionally) Bundle your .class files in an executable (<code>.jar</code> file)</li> </ul> <p>The very same <code>.jar</code> file can be distributed and executed on Windows systems, Mac systems, etc.</p> <blockquote> <p><strong><em>I find application written in Java, has two setup file one for windows and other for mac. This confuses me.</em></strong></p> </blockquote> <p>This is because some applications rely on platform-specific features. They are then bundled with different platform-specific libraries.</p> <p>Unless you're developing an application that itself relies on platform-specific features, (such as for instance low-level system calls), you should be able to do just fine with ordinary Java.</p> <p><strong>Important comment</strong> by <a href="https://stackoverflow.com/users/57695/peter-lawrey">@Peter Lawrey</a>:</p> <blockquote> <p><em>It can be while the application is platform independent, the setup program is not. e.g. IntelliJ has three platform specific installers which are not written in Java, but have a zip which you can just unzip on any platform and it will work.</em></p> </blockquote>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload