Win a copy of Mastering Corda: Blockchain for Java Developers this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Jj Roberts
  • Carey Brown
Bartenders:
  • salvin francis
  • Frits Walraven
  • Piet Souris

java compiler

 
Ranch Hand
Posts: 787
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I understand there is different java interpretor for each supported operating environment. But what about compiler? Is that unique to platform or single compiler is needed? I think that later statement is correct but I just wanted to confirm...
Thanks
Barkat
[ September 10, 2002: Message edited by: Barkat Mardhani ]
 
Ranch Hand
Posts: 1056
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, my new iMac came with two Java compilers: javac and jikes .
 
Barkat Mardhani
Ranch Hand
Posts: 787
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So it means that plateform independence is at source code level, not at byte code level. The code has to be compiled for each plateform after each change....
[ September 10, 2002: Message edited by: Barkat Mardhani ]
 
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The code need not be recompiled for each platform. I often develop and compile in Windows desktop and can run the same in Solaris too without recompilation. The byte code is not platform specific but the way it is interpreted and executed by the JVM is platform specific. Hence only the JVM is platform specific.
But can the byte code be JVM version specific ? Iam not sure abt that.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic