Java platform independent? Looks like a myth.
Guys, I'm doing research on a Java and as this is a research paper I'm trying to be as objective as possible. From my own experience with Java I know that source code which is of some reasonable size will not successfully run on different platforms. It will run on the platform it was written on, but on the other/s will crash.
Any thoughts?
Re: Java platform independent? Looks like a myth.
It's possible to write java code that is platform specific.
I don't see how Source code size is relevant. Can you explain what you mean or have observed?
Re: Java platform independent? Looks like a myth.
Quote:
Originally Posted by
Norm
I don't see how Source code size is not relevant.
If Java were platform independent than any program size would be independent, does it make sense? They (Oracle) do not advertise Java as platform independent up to x number of lines of code. Oracle says that Java is platform independent, I, and if you read articles on the net you'll see, that there are many other developers who admit that platform independency in Java is purely hyped and doesn't have any confirmation in real world.
Re: Java platform independent? Looks like a myth.
Can you explain how program size effects platform independence?
Re: Java platform independent? Looks like a myth.
Platform independent doesn't mean you can run every Java program on multiple platform. Rather it means that there exists at least one Java program which when compiled can run on multiple platforms without re-compiling or any other kind of modification to the program.
Any platform which does not meet this requirement would be considered non-Java compatible, which does not necessarily mean Java is not platform independent.
Re: Java platform independent? Looks like a myth.
Java is known for its portability. I wouldn't consider it a hype.
Re: Java platform independent? Looks like a myth.
I have written and tested dozens of programs in java, from command line to full blow enterprise applications, and the only cases of platform dependence were programmed dependencies. If you are having problems, then you are much better off asking a question to try and solve the problem, or quoting the sources of these articles you mention to validate your claim
Re: Java platform independent? Looks like a myth.
Quote:
Originally Posted by
ask
Guys, I'm doing research on a Java and as this is a research paper I'm trying to be as objective as possible. From my own experience with Java I know that source code which is of some reasonable size will not successfully run on different platforms. It will run on the platform it was written on, but on the other/s will crash.
Any thoughts?
My own 2c is that WORA is an invention of the Marketing department. It's not that it's a lie: the lawyers are too clever for that! But "anywhere" (=="platform independent") has to be interpreted as "anywhere that a runtime has been implemented". And the whole thing begins to sound a little like an impressive seeming tautology.
The other side of this slightly tinny coin is the extent to which Java can (or can't) naturally access the capabilities of every platform. It's a little unsatisfying to be told that even mediocre support for a platform's console is "platform dependent" while knowing that Swing aims at providing a platform independent GUI. How can that be? Someone should tell the marketeers that the "I" in GUI is for interface: it's the same da@mn platform.
(Moreover there is the logical point that different platforms are capable of doing different things. So a language that could fully utilitise each is bound to fail on some.)
-----
It's not my intention to dis Java. But if you are aiming at objectivity you might want to ask (and answer) objective questions. (and avoid "crashing" etc).
What platforms have a Java runtime implemented on them?
What capabilities of these platforms are supported, or not, by Java?
What other (actual or being developed) languages aim separating the source code from the platform via compiling to byte code or by some other mechanism? And how do they fare relative to Java?
What other languages take advantage of Java's runtime? And are they better or worse (to be given suitably objective definitions) than Java?
What penalties, if any, does Java pay for compilation to byte code that can act as a cross platform lingua franca?
Re: Java platform independent? Looks like a myth.
Quote:
Originally Posted by
helloworld922
Platform independent doesn't mean you can run every Java program on multiple platform.
No, you are wrong. It means exactly that. If someone claims that Java is a platform independent it means Java, not some, perhaps one program written in Java. And I know from my own experience that Java is not platform independent.
Re: Java platform independent? Looks like a myth.
Quote:
Originally Posted by
helloworld922
Any platform which does not meet this requirement would be considered non-Java compatible, which does not necessarily mean Java is not platform independent.
I didn't know that platform supposed to be Java compatible, are we still talking about Java language?
Re: Java platform independent? Looks like a myth.
Quote:
Originally Posted by
Norm
Can you explain how program size effects platform independence?
I've nowhere stated that program size effects platform independence.
Re: Java platform independent? Looks like a myth.
Quote:
source code which is of some reasonable size will not successfully run on different platforms.
I must have misunderstood why you mentioned size here. I was wondering why you mentioned it.
Did you mean: non-trivial? HelloWorld being a trivial program.
Re: Java platform independent? Looks like a myth.
Quote:
Originally Posted by
ask
I've nowhere stated that program size effects platform independence.
Then "I know that source code which is of some reasonable size will not..." might have been misleading.
Re: Java platform independent? Looks like a myth.
Quote:
Originally Posted by
copeg
I have written and tested dozens of programs in java, from command line to full blow enterprise applications
Wow, in times where not only whole teams are working on "full blown" (there is 'n' at the end) applications but there are different teams for different areas, like design, implementation, testing just to name those most common, you yourself actually did the entire work yourself, and not on one application but on dozens. Wow!
Son, seriously, either you don't know what full blown means, or your psychiatrist is lying to you and you need to look for different one. Feel really sorry for you.
Re: Java platform independent? Looks like a myth.
@ask: Your original post talked of objectivity and of a research paper. I don't know the standards expected by your peer reviewers, but your attitude here suggests you might not either.
"Feel really sorry for you" and psychiatrist reference are uncalled for. AR
Re: Java platform independent? Looks like a myth.
Sounds more like the OP is blowing his own horn instead of doing research.
Re: Java platform independent? Looks like a myth.
Quote:
Originally Posted by
ask
Wow, in times where not only whole teams are working on "full blown" (there is 'n' at the end) applications but there are different teams for different areas, like design, implementation, testing just to name those most common, you yourself actually did the entire work yourself, and not on one application but on dozens. Wow!
Son, seriously, either you don't know what full blown means, or your psychiatrist is lying to you and you need to look for different one. Feel really sorry for you.
Perhaps I should be looking for another psychiatrist, and better yet take a class in spelling. That aside, it is clearly becoming obvious you are not looking for objective opinions, but are trying to get a rise out of people. In other words, it is becoming apparent from your posts and those who have reported your posts, that you don't value the opinions of others. In other words, you are a troll. You have posted things which can be considered insults directed at other members of this forum. Thread locked