aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes is the Java compiler, platform dependent....??? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "is the Java compiler, platform dependent....???" Watch "is the Java compiler, platform dependent....???" New topic
Author

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

Amit Das
Ranch Hand

Joined: Mar 05, 2005
Posts: 206
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
Anupam Sinha
Ranch Hand

Joined: Apr 13, 2003
Posts: 1088
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

Joined: Mar 05, 2005
Posts: 206
hi Anupam,

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

neways.....thanx
Marcus Green
arch rival
Rancher

Joined: Sep 14, 1999
Posts: 2813
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.


SCWCD: Online Course, 50,000+ words and 200+ questions
http://www.examulator.com/moodle/course/view.php?id=5&topic=all
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: is the Java compiler, platform dependent....???