PDA

View Full Version : java same as windows?


deathbyswiftwind
March 2nd, 2006, 11:21 PM
I would like to learn some programming. From what Ive read java can be very powerful programming language. I have one question though. Is the programming for java in linux the same as windows? Or would I need to acquire a linux java book?

SectionThree
March 2nd, 2006, 11:27 PM
Nope. Java is Java, plain and simple. You write an applet on one OS, and it will run just fine on any system that has Java installed on it.

moberry
March 2nd, 2006, 11:28 PM
JAVA is totally platform independent. So java is java. Windows programs written in java will run under linux. And vice versa.

P.S. Some things.. more advanced can be different. E.x. if you decided to use GTK in your java program.

-jordan

LordHunter317
March 2nd, 2006, 11:36 PM
JAVA is totally platform independent.Unless you're using JNI or APIs not in the standard.

Then it may or may not be platform indepedent.

For most stuff, it is. Not for everthing however. Certainly everything you do as a beginning programmer will be platform independent.

moberry
March 2nd, 2006, 11:39 PM
LordHunter: I think we are browsing and posting to the same threads :-) seen your handle about 10 times now.

deathbyswiftwind
March 3rd, 2006, 01:50 AM
thanks alot for all your guys help. very quick as well anyways thanks :D

3rdalbum
March 3rd, 2006, 05:39 AM
Nope. Java is Java, plain and simple. You write an applet on one OS, and it will run just fine on any system that has Java installed on it.

That's the way it's supposed to work... but I've found that small differences between computers can mean the difference between an app/applet that works, and one that malfunctions or won't even run. If you want to write anything in Java that is intended to be used cross-platform, test it on as many different systems as possible.

(and, for these purposes, I would consider Linux on PPC to be a different platform)

stoffe
March 3rd, 2006, 08:40 PM
That's the way it's supposed to work... but I've found that small differences between computers can mean the difference between an app/applet that works, and one that malfunctions or won't even run. If you want to write anything in Java that is intended to be used cross-platform, test it on as many different systems as possible.

(and, for these purposes, I would consider Linux on PPC to be a different platform)
"Write once, debug everywhere" as someone put it.

blastus
March 3rd, 2006, 09:23 PM
Unless you're using JNI or APIs not in the standard.

Or are building device-side mobile applications, in which case one manufacturer's implementation of the specifications may be different from another's.

Ptero-4
March 3rd, 2006, 10:48 PM
Or your using M$ Java implementation which is a propietary, Windoze-only, IE-only, non-standar format.

LordHunter317
March 3rd, 2006, 11:00 PM
Which doesn't exist anymore, except in strictly legacy situations.