JVMs provide architecture and platform portability. Having an x86 cpu doesn't mean macs can use the x86 JVMs.. .there's no such thing... JVMs need to be architecture and platform specific.
JVMs provide architecture and platform portability. Having an x86 cpu doesn't mean macs can use the x86 JVMs.. .there's no such thing... JVMs need to be architecture and platform specific.
At the moment a Java applet will run on windows or Linux on a PC , the fact that they're both x86 isn't the issue. Let's see you write c/c++ code and compile it so the binary runs on either platform. With Java the byte code is completely portable. In any case, there are plenty of smart phones + PDA's , web fridges, etc using ARMs or whatever. I don't think Apple's switch will ruin Java's appeal as a multi platform solution.
Although C++ binaries are not cross-platform, using #defines and proper versioning techniques, the source code can be built on any platform. This is how Firefox works.Let's see you write c/c++ code and compile it so the binary runs on either platform.
In any case, Java binaries are not really cross-platform either. Java needs the JVM to be installed first. So if your definition of cross-platform means "just find a way to run it", then C++ can just use a binary emulator, like WINE to run on both platforms.
Not necessarily. You need the JVM installed. And if the applet uses a graphics feature that only appears in the latest versions of the JDK, it won't work.At the moment a Java applet will run on windows or Linux on a PC
Really? Try running Java code on these platforms: Xbox/PS2/Gameboy Advance. It won't work out-of-the-box, you'll have to find some unofficial JVMs.With Java the byte code is completely portable.
Last edited by Dante Shamest; 06-09-2005 at 01:41 PM.