Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Beginning Java and the fly likes platform independency Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "platform independency" Watch "platform independency" New topic

platform independency

Tomendra Singh
Ranch Hand

Joined: Jun 28, 2008
Posts: 47
if i want to run the .class file on linux or other operating system what i have to do for that,does any need of jre or jdk to run .class file.

Strength Is Life,Weakness Is Death- Swamy Vivekanand.
SCJP 5.0(87%)
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 41182
.class files are platform independent, so you can compile them on one platform, and then transfer them elsewhere for running. Of course, you will need to have a JRE installed.

Ping & DNS - my free Android networking tools app
Tomendra Singh
Ranch Hand

Joined: Jun 28, 2008
Posts: 47
thank you ulf.
It is sorta covered in the JavaRanch Style Guide.
subject: platform independency
Similar Threads
Difference between commends "javac" and "java hello"
how to run servlet
running java without JRE ?
.class file execution
Java Petstore 2.0