English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

jdk1.5.0

2007-08-09 02:47:00 · 6 answers · asked by beniask 1 in Computers & Internet Programming & Design

6 answers

A particular JDK install will be for a single operating system. (You can't use the Windows Java installer on Unix.)

However, there are identically functional Java compilers for a large number of operating systems.

Also, the compiled Java (.class files) is OS independent and can be transferred to any system with Java installed, and run there, without recompiling.

2007-08-09 03:29:56 · answer #1 · answered by McFate 7 · 0 0

No, java compiler is operating system independent any one can compile the java byte codes in any of the operating system platforms......

2007-08-10 08:29:45 · answer #2 · answered by Anonymous · 0 0

You can get the compiler for any operating system.

2007-08-09 09:50:20 · answer #3 · answered by Anonymous · 0 0

java is platform independent.it is important to distinguish between the Java programming language and the Java platform. The Java programming language is the language in which Java applications, applets, servlets, and components are (usually) written.

The Java platform, on the other hand, is the predefined set of Java classes that exist on every Java installation; these classes are available for use by those applications, applets, servlets, and components. The Java platform is also sometimes referred to as the "core Java APIs" or the "Java runtime environment."

he Java Programming Language

The Java programming language is a state-of-the-art, object-oriented language that has a classic syntax similar to that of C. The designers strived to make the Java language powerful, and at the same time tried to avoid the overly complex features that have bogged down other promising object-oriented languages such as C++. By keeping the language simple, the designers also made it easier for programmers to write bug-free and robust code.

As a result of its elegant design and next-generation features, the Java language has proved to be wildly popular with programmers, who typically find it a pleasure to work with Java after struggling with more difficult and less powerful languages.

The Java Platform

Just as important as the Java programming language is the Java platform. This is the set of predefined classes that programs written in the Java language rely on. These predefined classes are the building blocks of all Java applications, applets, servlets, and components. Java classes are grouped into related groups known as packages. The Java platform defines packages for functions such as input/output, networking, graphics, user interface creation, security, and much more. The bulk of this chapter is devoted to a package-by-package exploration of the full capabilities of the Java 2 platform.

Before we proceed with our survey of the Java platform, however, it is important to understand what is meant by the term "platform." To a computer programmer, a platform is defined by the APIs that he or she can use and rely on when writing programs. These APIs are typically defined primarily by the operating system of the target computer. Thus, a programmer writing a program to run under Microsoft Windows must use a different set of APIs than a programmer writing the same program for the Macintosh or a programmer writing for a Unix-based system. Windows, Macintosh, and Unix are three distinct platforms.

Java is not an operating system.[1] Nevertheless, the Java platform - particularly the Java 2 platform - provides APIs with a comparable breadth and depth to those defined by an operating system. With the advent of the Java 2 platform, programmers can choose to write applications on the Java platform without sacrificing the advanced features that are available to programmers writing native applications targeted at a particular underlying operating system.

[1] There is a Java-based operating system, however. It is known as JavaOS.

An application written on the Java platform runs on any operating system that supports the Java platform. This means that programmers do not have to create distinct Windows, Macintosh, and Unix versions of their programs. A single Java program runs on all of these operating systems. This explains why "Write once, run anywhere" is Sun's motto for Java.

It also explains why companies such as Microsoft might feel threatened by Java. The Java platform is not an operating system, but for programmers, it is an alternative development target, and a very popular one at that. The Java platform reduces programmers' reliance on the underlying operating system, and by allowing programs to run on top of any operating system, it increases end users' freedom to choose any operating system they prefer.

Thus jdk should be different for different operating system, which is you can download from sun site.

Ofcourse the compiled .class files is OS independent and can be transferred to any system with Java installed, and run there, without recompiling.

2007-08-09 12:40:42 · answer #4 · answered by angel04 3 · 0 0

java compilers are operating system independent,and can be installed on any platform.

2007-08-09 10:44:16 · answer #5 · answered by Anonymous · 0 1

?

Each java compiler/environment is machine/os dependent.. the output of java is platform independent

2007-08-09 09:49:51 · answer #6 · answered by Anonymous · 0 0

fedest.com, questions and answers