• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

is the Java compiler, platform dependent....???

 
Ranch Hand
Posts: 206
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

i've a doubt in my mind about the JDK itself. JDK(Java Development Toolkit) comes as a package which includes the compiler and the JVM.....

now is the compiler platform dependent??? if yes, why? if no, why??

i know the JVM is platform dependent...right!!!but what part of the JVM is depending on the platform......???

all sapients out there plz clear the haze

thanx
amit
 
Ranch Hand
Posts: 1090
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Amit

I think that the Java compiler itself is not platform independent. It's because different platforn communicate differently. The bytecode (the resultant code) which is generated is platform independent.
 
Amit Das
Ranch Hand
Posts: 206
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi Anupam,

whatever u've written, i already knew(i've doubts on Compiler being platform dependent..)

neways.....thanx
 
arch rival
Posts: 2813
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The Java Compiler (javac.exe on a Windows platform) is platform dependent in the sense that you cannot take javac exa and run it on a Linux, Symbian, Solaris or Apple Mac platform. Large portions of the JRE (Java Runtime Environment) are also platform dependent as they have to access the underling differences in operating system, and parts of this rely on native code fir optimisation.
 
Brace yourself while corporate america tries to sell us its things. Some day they will chill and use tiny ads.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic