This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
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

Win a copy of Building Microservices this week in the Design forum!
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: 42958
.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.
Tomendra Singh
Ranch Hand

Joined: Jun 28, 2008
Posts: 47
thank you ulf.
I agree. Here's the link:
subject: platform independency
It's not a secret anymore!