• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

comparison

 
kanagaraj swamy
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hai
what is difference between running JAVA in windows platform
/in unix/linux platform.

thanks
 
David Harrigan
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nothing.
Java was designed to be platform independent. All the data types are fixed (i.e., 64bit, 32bit, 16bit, 8bit). All the input/output streams/readers work on a high level so you don't have to worry if you are running on a Unix box or a Windows box.
I develop both in Unix (GNU/Linux) and Windows and I yet to notice a difference...
David.
 
Grant Crofton
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I read that there can be speed differences as well, depending on the JVM.
Microsofts is supposed to be good, and would probably run your java faster than many others (espesially on lesser-used systems, where less development has been put into the JVM).
Also, depending on what API you use, your java may look different. If you use 'heavyweight' components, like those of AWT, the stuff you write (windows, buttons, etc.) will look the same as normal windows/buttons from that system.
If you use 'lightweight' components, like most of SWING, they look the same on whatever platform.
But these are only minor details - basically, like David said, there are no real differences.
 
David Harrigan
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yeah, thanks Grant. He's right. Some minor points about speed and looks, but if you stick with "lightweight" components such as Swing provides then you'll have a consistent look and feel...
Speed, ahem, Java isn't noted for it's *speed*... :-) But as Grant rightly points out, there may be minor speed variations on platforms. Personally I only use the Sun JVM on Windows and Blackdown on Linux.
David.
 
kanagaraj swamy
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks David & Ranch hands
please explain Blackdown in linux.Why the speed differs while using different platform.
 
Sean Casey
Ranch Hand
Posts: 625
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the different OS's I think that there is a differnce on the way each system runs threads. Some use a timesplicing system, while others use a priority system. I'm not sure which system implements which method but I know that it is different on Solaris, Unix, and Windows.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic