I read about Java being multi-platform language but could not confirm this. If I compile and make .cla files in Windows OS and then run these on Unix OS will run fine ? Or I need to install some components.

Recommended Answers

All 2 Replies

Guess :)

Java programs (unless you do something stupid like calling operating system specific commands or filenames) will run anywhere there's a JVM of an appropriate version for the classfiles available.

that is the idea, java is (somewhat) platform independent except...

+ (like jwenting said) if you call os specific commands
+ the pluggable look and feel (UI) will look different since apple will not let there look n' feel to run on a microsoft computer (and i believe this goes vice versa for MS)

but the reason i said java is somewhat platform independent is because I it isn't,
Java IS the platform

you cannot run a class file from the operating system it requires the Java Virtual Manager to run it, therefore if there is no JVM for your OS it will not work.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.