Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #15451 > unrolled thread
| Started by | owais <awais4you@gmail.com> |
|---|---|
| First post | 2012-06-20 08:33 -0700 |
| Last post | 2012-06-25 20:44 +0200 |
| Articles | 20 on this page of 28 — 15 participants |
Back to article view | Back to comp.lang.java.programmer
Java claims WORA owais <awais4you@gmail.com> - 2012-06-20 08:33 -0700
Re: Java claims WORA Robert Klemme <shortcutter@googlemail.com> - 2012-06-20 09:21 -0700
Re: Java claims WORA Gene Wirchenko <genew@ocis.net> - 2012-06-20 09:46 -0700
Re: Java claims WORA Lew <lewbloch@gmail.com> - 2012-06-20 10:47 -0700
Re: Java claims WORA "Mike Schilling" <mscottschilling@hotmail.com> - 2012-06-24 16:56 -0700
Re: Java claims WORA Arne Vajhøj <arne@vajhoej.dk> - 2012-06-20 17:02 -0400
Re: Java claims WORA glen herrmannsfeldt <gah@ugcs.caltech.edu> - 2012-06-20 21:45 +0000
Re: Java claims WORA Martin Gregorie <martin@address-in-sig.invalid> - 2012-06-20 22:25 +0000
Re: Java claims WORA Robert Klemme <shortcutter@googlemail.com> - 2012-06-21 00:57 +0200
Re: Java claims WORA Roedy Green <see_website@mindprod.com.invalid> - 2012-06-20 16:46 -0700
Re: Java claims WORA David Lamb <dalamb@cs.queensu.ca> - 2012-06-20 19:56 -0400
Re: Java claims WORA Arne Vajhøj <arne@vajhoej.dk> - 2012-06-20 19:16 -0400
Re: Java claims WORA "Mike Schilling" <mscottschilling@hotmail.com> - 2012-06-24 16:58 -0700
Re: Java claims WORA Roedy Green <see_website@mindprod.com.invalid> - 2012-06-20 16:43 -0700
Re: Java claims WORA Arne Vajhøj <arne@vajhoej.dk> - 2012-06-20 20:30 -0400
Re: Java claims WORA Roedy Green <see_website@mindprod.com.invalid> - 2012-06-20 18:37 -0700
Re: Java claims WORA Arne Vajhøj <arne@vajhoej.dk> - 2012-06-20 21:47 -0400
Re: Java claims WORA Thomas Richter <thor@math.tu-berlin.de> - 2012-06-22 19:18 +0200
Re: Java claims WORA "John B. Matthews" <nospam@nospam.invalid> - 2012-06-22 15:59 -0400
Re: Java claims WORA Roedy Green <see_website@mindprod.com.invalid> - 2012-06-24 04:43 -0700
Re: Java claims WORA "John B. Matthews" <nospam@nospam.invalid> - 2012-06-24 18:51 -0400
Re: Java claims WORA Lew <noone@lewscanon.com> - 2012-06-24 23:27 -0700
Re: Java claims WORA "John B. Matthews" <nospam@nospam.invalid> - 2012-06-26 15:43 -0400
Re: Java claims WORA Jim Janney <jjanney@shell.xmission.com> - 2012-06-22 18:23 -0600
Re: Java claims WORA Jan Burse <janburse@fastmail.fm> - 2012-06-22 21:40 +0200
Re: Java claims WORA David Lamb <dalamb@cs.queensu.ca> - 2012-06-25 09:57 -0400
Re: Java claims WORA Jan Burse <janburse@fastmail.fm> - 2012-06-25 20:34 +0200
Re: Java claims WORA Jan Burse <janburse@fastmail.fm> - 2012-06-25 20:44 +0200
Page 1 of 2 [1] 2 Next page →
| From | owais <awais4you@gmail.com> |
|---|---|
| Date | 2012-06-20 08:33 -0700 |
| Subject | Java claims WORA |
| Message-ID | <8bc88bdc-bd63-4dd2-ba6c-cb0a7622fa1f@googlegroups.com> |
Java claims WORA (write once and run anywhere). Do you agree with this statement that all java programs can be run anywhere (all platforms)? Can you identify a scenario where this claim may not hold true?
[toc] | [next] | [standalone]
| From | Robert Klemme <shortcutter@googlemail.com> |
|---|---|
| Date | 2012-06-20 09:21 -0700 |
| Message-ID | <bed70a15-c200-4360-b2d3-2593d623bc48@googlegroups.com> |
| In reply to | #15451 |
On Wednesday, June 20, 2012 5:33:02 PM UTC+2, owais wrote: > Java claims WORA (write once and run anywhere). Do you agree with this statement that all java programs can be run anywhere (all platforms)? Can you identify a scenario where this claim may not hold true? I find the question quite strange. Something tells me that you are asking a homework question... Oh, I see: http://vusols.blogspot.de/ Please do your own research. Cheers robert
[toc] | [prev] | [next] | [standalone]
| From | Gene Wirchenko <genew@ocis.net> |
|---|---|
| Date | 2012-06-20 09:46 -0700 |
| Message-ID | <7iv3u79k6i5o3utqv2a5tc330ieeqttkp3@4ax.com> |
| In reply to | #15451 |
On Wed, 20 Jun 2012 08:33:02 -0700 (PDT), owais <awais4you@gmail.com>
wrote:
>Java claims WORA (write once and run anywhere). Do you agree with this
statement that all java programs can be run anywhere (all platforms)?
Can you identify a scenario where this claim may not hold true?
Since it is your homework, how about you do it?
Sincerely,
Gene Wirchenko
[toc] | [prev] | [next] | [standalone]
| From | Lew <lewbloch@gmail.com> |
|---|---|
| Date | 2012-06-20 10:47 -0700 |
| Message-ID | <1d5c87aa-624d-4397-9781-927a50749404@googlegroups.com> |
| In reply to | #15451 |
On Wednesday, June 20, 2012 8:33:02 AM UTC-7, owais wrote: > Java claims WORA (write once and run anywhere). Do you agree with this statement that all java programs can be run anywhere (all platforms)? Can you identify a scenario where this claim may not hold true? It is spelled "Java". I am not aware of a Java port to the PDP-8. -- Lew
[toc] | [prev] | [next] | [standalone]
| From | "Mike Schilling" <mscottschilling@hotmail.com> |
|---|---|
| Date | 2012-06-24 16:56 -0700 |
| Message-ID | <js89e8$uci$1@dont-email.me> |
| In reply to | #15456 |
"Lew" <lewbloch@gmail.com> wrote in message news:1d5c87aa-624d-4397-9781-927a50749404@googlegroups.com... > On Wednesday, June 20, 2012 8:33:02 AM UTC-7, owais wrote: >> Java claims WORA (write once and run anywhere). Do you agree with this >> statement that all java programs can be run anywhere (all platforms)? Can >> you identify a scenario where this claim may not hold true? > > It is spelled "Java". > > I am not aware of a Java port to the PDP-8. > I don't see why not. A 12-bit address space would make writing a garbage collector a snap.
[toc] | [prev] | [next] | [standalone]
| From | Arne Vajhøj <arne@vajhoej.dk> |
|---|---|
| Date | 2012-06-20 17:02 -0400 |
| Message-ID | <4fe23a6f$0$282$14726298@news.sunsite.dk> |
| In reply to | #15451 |
On 6/20/2012 11:33 AM, owais wrote: > Java claims WORA (write once and run anywhere). Do you agree with this statement that all java programs can be run anywhere (all platforms)? Can you identify a scenario where this claim may not hold true? Java programs written and build for a specific Java version will run where that Java version or is available (and typical also if a newer version is available). Java is available for all the most common platforms. Arne
[toc] | [prev] | [next] | [standalone]
| From | glen herrmannsfeldt <gah@ugcs.caltech.edu> |
|---|---|
| Date | 2012-06-20 21:45 +0000 |
| Message-ID | <jrtg8s$b4f$1@speranza.aioe.org> |
| In reply to | #15460 |
Arne Vajhøj <arne@vajhoej.dk> wrote: > On 6/20/2012 11:33 AM, owais wrote: >> Java claims WORA (write once and run anywhere). > Do you agree with this statement (snip) > Java programs written and build for a specific Java version will run > where that Java version or is available (and typical also if a newer > version is available). > Java is available for all the most common platforms. So common, but not all. Is there Java for VAX/VMS? As I understand it, there are web browsers that run on VMS. Java requires IEEE floating point, so it tends not to be available on hosts that have a different floating point format. Most likely never for, for example, the IBM 7090. (Which would be batch mode, and not browser/applet, but still.) -- glen
[toc] | [prev] | [next] | [standalone]
| From | Martin Gregorie <martin@address-in-sig.invalid> |
|---|---|
| Date | 2012-06-20 22:25 +0000 |
| Message-ID | <jrtijt$qjg$1@localhost.localdomain> |
| In reply to | #15461 |
On Wed, 20 Jun 2012 21:45:00 +0000, glen herrmannsfeldt wrote: > Most likely never for, for example, the IBM 7090. (Which would be batch > mode, and not browser/applet, but still.) > More to the point, are any still running? -- martin@ | Martin Gregorie gregorie. | Essex, UK org |
[toc] | [prev] | [next] | [standalone]
| From | Robert Klemme <shortcutter@googlemail.com> |
|---|---|
| Date | 2012-06-21 00:57 +0200 |
| Message-ID | <a4f2r6F9roU1@mid.individual.net> |
| In reply to | #15462 |
On 21.06.2012 00:25, Martin Gregorie wrote: > On Wed, 20 Jun 2012 21:45:00 +0000, glen herrmannsfeldt wrote: > >> Most likely never for, for example, the IBM 7090. (Which would be batch >> mode, and not browser/applet, but still.) >> > More to the point, are any still running? Probably: there's nobody around any more who knows how to switch them off... robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/
[toc] | [prev] | [next] | [standalone]
| From | Roedy Green <see_website@mindprod.com.invalid> |
|---|---|
| Date | 2012-06-20 16:46 -0700 |
| Message-ID | <u2o4u71crc74bet8bellr5r65dmvgdf6ua@4ax.com> |
| In reply to | #15463 |
On Thu, 21 Jun 2012 00:57:30 +0200, Robert Klemme <shortcutter@googlemail.com> wrote, quoted or indirectly quoted someone who said : >Probably: there's nobody around any more who knows how to switch them off.. Where they the ones with the red mushroom you either pulled or pushed for emergency power off or was that the 360? -- Roedy Green Canadian Mind Products http://mindprod.com If you look in a computer programmer's freezer you will find all kinds of containers, but none of them labeled. They do the same thing creating files without labeling the encoding. You are just supposed to know. Ditto with the MIME type, the separator and comment delimiters and column names in CSV files. Ditto with the endian convention. Imagine how much more civilised life would have been if Martha Stewart were the first programmer.
[toc] | [prev] | [next] | [standalone]
| From | David Lamb <dalamb@cs.queensu.ca> |
|---|---|
| Date | 2012-06-20 19:56 -0400 |
| Message-ID | <jrtnvn$qs9$1@dont-email.me> |
| In reply to | #15469 |
On 20/06/2012 7:46 PM, Roedy Green wrote: > On Thu, 21 Jun 2012 00:57:30 +0200, Robert Klemme > <shortcutter@googlemail.com> wrote, quoted or indirectly quoted > someone who said : > >> Probably: there's nobody around any more who knows how to switch them off.. > > Where they the ones with the red mushroom you either pulled or pushed > for emergency power off or was that the 360? 360. You had to call IBM to unlatch the emergency-off and figure out how many components blew out from the instant power cut.
[toc] | [prev] | [next] | [standalone]
| From | Arne Vajhøj <arne@vajhoej.dk> |
|---|---|
| Date | 2012-06-20 19:16 -0400 |
| Message-ID | <4fe259da$0$285$14726298@news.sunsite.dk> |
| In reply to | #15461 |
On 6/20/2012 5:45 PM, glen herrmannsfeldt wrote: > Arne Vajhøj <arne@vajhoej.dk> wrote: >> On 6/20/2012 11:33 AM, owais wrote: >>> Java claims WORA (write once and run anywhere). >> Do you agree with this statement > (snip) > >> Java programs written and build for a specific Java version will run >> where that Java version or is available (and typical also if a newer >> version is available). > >> Java is available for all the most common platforms. > > So common, but not all. Yep. > Is there Java for VAX/VMS? > As I understand it, there are web browsers that run on VMS. VMS Alpha and VMS Itanium: yes VMS VAX: no But it is 20 years since Alpha came out. > Java requires IEEE floating point, so it tends not to be available > on hosts that have a different floating point format. That is supposed to be the reason why VAX did not get Java. But they could have emulated IEEE FP if they wanted to. Arne
[toc] | [prev] | [next] | [standalone]
| From | "Mike Schilling" <mscottschilling@hotmail.com> |
|---|---|
| Date | 2012-06-24 16:58 -0700 |
| Message-ID | <js89ha$uoo$1@dont-email.me> |
| In reply to | #15464 |
"Arne Vajhøj" <arne@vajhoej.dk> wrote in message news:4fe259da$0$285$14726298@news.sunsite.dk... > On 6/20/2012 5:45 PM, glen herrmannsfeldt wrote: > >> Java requires IEEE floating point, so it tends not to be available >> on hosts that have a different floating point format. > > That is supposed to be the reason why VAX did not get Java. > > But they could have emulated IEEE FP if they wanted to. They had 4 different floating point formats, what's one more? :-)
[toc] | [prev] | [next] | [standalone]
| From | Roedy Green <see_website@mindprod.com.invalid> |
|---|---|
| Date | 2012-06-20 16:43 -0700 |
| Message-ID | <40o4u71gpg9lmptbffe2k5e6da6ggcdo8a@4ax.com> |
| In reply to | #15451 |
On Wed, 20 Jun 2012 08:33:02 -0700 (PDT), owais <awais4you@gmail.com> wrote, quoted or indirectly quoted someone who said : >Java claims WORA (write once and run anywhere). >Do you agree with this statement that all java programs >can be run anywhere (all platforms)? Can you identify a >scenario where this claim may not hold true? The caveats are: 1. If your code is written for Java 1,7 you must have a Java 1.7+ runtime. It might not be available for a given platform. 2. a given JVM might have a bug that stops some particular program from working. 3. If you use JNI, you must have the appropriate native code for the given platform. 4. Java does requires the programmer to handle the WORA stuff explicitly for file names and line separators and encodings. Simple programs will work fine, but more complex ones must be aware. -- Roedy Green Canadian Mind Products http://mindprod.com If you look in a computer programmer's freezer you will find all kinds of containers, but none of them labeled. They do the same thing creating files without labeling the encoding. You are just supposed to know. Ditto with the MIME type, the separator and comment delimiters and column names in CSV files. Ditto with the endian convention. Imagine how much more civilised life would have been if Martha Stewart were the first programmer.
[toc] | [prev] | [next] | [standalone]
| From | Arne Vajhøj <arne@vajhoej.dk> |
|---|---|
| Date | 2012-06-20 20:30 -0400 |
| Message-ID | <4fe26b1f$0$284$14726298@news.sunsite.dk> |
| In reply to | #15468 |
On 6/20/2012 7:43 PM, Roedy Green wrote: > 4. Java does requires the programmer to handle the WORA stuff > explicitly for file names and line separators and encodings. Simple > programs will work fine, but more complex ones must be aware. It is not quite clear to me what "handle the WORA stuff explicitly" really means. But the Java API provides classes and methods that allow for platform independent handling of those. So by following good practice one should be OK. Arne
[toc] | [prev] | [next] | [standalone]
| From | Roedy Green <see_website@mindprod.com.invalid> |
|---|---|
| Date | 2012-06-20 18:37 -0700 |
| Message-ID | <kfo4u7tag5anql6eenirdrrll025sij67g@4ax.com> |
| In reply to | #15468 |
On Wed, 20 Jun 2012 16:43:21 -0700, Roedy Green <see_website@mindprod.com.invalid> wrote, quoted or indirectly quoted someone who said : >The caveats are: for a more detailed answer see http://mindprod.com/jgloss/wora.html -- Roedy Green Canadian Mind Products http://mindprod.com If you look in a computer programmer's freezer you will find all kinds of containers, but none of them labeled. They do the same thing creating files without labeling the encoding. You are just supposed to know. Ditto with the MIME type, the separator and comment delimiters and column names in CSV files. Ditto with the endian convention. Imagine how much more civilised life would have been if Martha Stewart were the first programmer.
[toc] | [prev] | [next] | [standalone]
| From | Arne Vajhøj <arne@vajhoej.dk> |
|---|---|
| Date | 2012-06-20 21:47 -0400 |
| Message-ID | <4fe27d25$0$286$14726298@news.sunsite.dk> |
| In reply to | #15479 |
On 6/20/2012 9:37 PM, Roedy Green wrote: > On Wed, 20 Jun 2012 16:43:21 -0700, Roedy Green > <see_website@mindprod.com.invalid> wrote, quoted or indirectly quoted > someone who said : > >> The caveats are: > > for a more detailed answer see http://mindprod.com/jgloss/wora.html More detailed but very misleading. #Java works with platform-specific \r \n line-ending conventions. You have the lineSeparator to help, but your code has to deal with \r\n (Windows), \n (Unix) and \r (Mac) conventions. You should be using readLine and println etc. not doing binary IO with line.separator! #Internet Explorer is so far out, they can’t even legally call it Java. I can not see why SUN/Oracle Java used by IE can not be called Java. #On some platforms the elements of the classpath are separated by semicolons, and others by colons. There was no need for this variety, since classpath is a purely Java invention. Classpath is a Java thingy but path separators are not. Arne
[toc] | [prev] | [next] | [standalone]
| From | Thomas Richter <thor@math.tu-berlin.de> |
|---|---|
| Date | 2012-06-22 19:18 +0200 |
| Message-ID | <js29dm$1fo$1@news.belwue.de> |
| In reply to | #15451 |
Am 20.06.2012 17:33, schrieb owais: > Java claims WORA (write once and run anywhere). Do you agree with this statement that all java programs can be run anywhere (all platforms)? Can you identify a scenario where this claim may not hold true? Java is more like WOTA for me - write once, test everywhere. It's quite acceptable for simple programs, but as soon as it gets more complex than this, there are subtle differences between Java installations on Windows and Linux, and from version to version. I've seen cases where Java does not size windows correctly on one version, but not on others for reasons that are not clear to me, where input focus handling was slightly different and inconsistent, where refresh handling and the order of requests is slightly different, where window placement may or may not work... In theory, Java is very nice for running everywhere, but you still need to test and need to tweak a bit to get it working consistently.
[toc] | [prev] | [next] | [standalone]
| From | "John B. Matthews" <nospam@nospam.invalid> |
|---|---|
| Date | 2012-06-22 15:59 -0400 |
| Message-ID | <nospam-F6171E.15594322062012@news.aioe.org> |
| In reply to | #15518 |
In article <js29dm$1fo$1@news.belwue.de>, Thomas Richter <thor@math.tu-berlin.de> wrote: > Am 20.06.2012 17:33, schrieb owais: > > Java claims WORA (write once and run anywhere). Do you agree with > > this statement that all java programs can be run anywhere (all > > platforms)? Can you identify a scenario where this claim may not > > hold true? > > Java is more like WOTA for me - write once, test everywhere. It's > quite acceptable for simple programs, but as soon as it gets more > complex than this, there are subtle differences between Java > installations on Windows and Linux, and from version to version. I've > seen cases where Java does not size windows correctly on one version, > but not on others for reasons that are not clear to me, where input > focus handling was slightly different and inconsistent, where refresh > handling and the order of requests is slightly different, where > window placement may or may not work... In theory, Java is very nice > for running everywhere, but you still need to test and need to tweak > a bit to get it working consistently. I'll second the need for testing, but I've found that using layouts properly and respecting a component's preferred size greatly reduces the number of cross-platform problems. There's a recent example here: <https://groups.google.com/d/msg/comp.lang.java.programmer/BbU4GjYuD6E/H-QLV3BRmmsJ> -- John B. Matthews trashgod at gmail dot com <http://sites.google.com/site/drjohnbmatthews>
[toc] | [prev] | [next] | [standalone]
| From | Roedy Green <see_website@mindprod.com.invalid> |
|---|---|
| Date | 2012-06-24 04:43 -0700 |
| Message-ID | <u5vdu75uinlmblggdlue7vlbjq64flga8a@4ax.com> |
| In reply to | #15524 |
On Fri, 22 Jun 2012 15:59:43 -0400, "John B. Matthews" <nospam@nospam.invalid> wrote, quoted or indirectly quoted someone who said : >I'll second the need for testing, but I've found that using layouts >properly and respecting a component's preferred size greatly reduces >the number of cross-platform problems. There's a recent example here: one of the big problems is when you substitute a font, the characters are not the same size. I would like to normalize fonts to their true size so that when you substitute fonts, the actual real estate consumed varies only a little. Another would be a guaranteed to render all glyphs, even if it means substituting from some other font. Failing that at telling the truth. Java claims to render a glyph when all it does in render some generic glyph. -- Roedy Green Canadian Mind Products http://mindprod.com Computers are machines that do exactly what you tell them, but they still can surprise you with the results. ~ Dr. Richard Dawkins 1941-03-26
[toc] | [prev] | [next] | [standalone]
Page 1 of 2 [1] 2 Next page →
Back to top | Article view | comp.lang.java.programmer
csiph-web