For faster navigation, this Iframe is preloading the Wikiwand page for 一次编写,到处运行.

一次编写,到处运行

一次编写,到处运行”(Write once, run anywhereWORA,有时也作“write once, run everywhere”、WORE)是Sun微系统用来展示Java编程语言跨平台特性的口号[1][2]。在理想中,这意味着Java可以在任何装置上开发,然后编译成一段标准的字节码,就可以在任何安装有Java虚拟机(JVM)的装置上运行。在晶片、装置和软件包中安装Java已经成为一种工业实践的标准。

它意味着开发者可以在一台PC上进行Java开发,并能在安装有Java的手机路由器大型电脑上运行其代码而无需经过调整。这将使开发者能更容易地在不同的平台操作系统上部署软件,而不必开发不同的版本来面向不同平台。

该想法可以追溯到20世纪70年代,UCSD Pascal系统在p-code上开发、运行。James Gosling提到UCSD Pascal(以及Smalltalk虚拟机)对Java虚拟机的设计有关键性的影响[来源请求]

美中不足的是,Java虚拟机在各种操作系统(WindowsLinuxSolarisNetWareHP-UX以及Mac OS)上有多种不同的实现,导致Java程序在不同的JVM虚拟机和操作系统上执行时有微妙的差别,所以一种应用可能需要在许多平台上进行测试才能确保正确性和稳定性,这造就了一个程序员间的笑话:“一次编译,到处调试”(“Write Once, Debug Everywhere”)。[3]

引用

[编辑]
  1. ^ JavaSoft ships Java 1.0. Sun Microsystems. 1996-01-23. Java's write-once-run-everywhere capability along with its easy accessibility have propelled the software and Internet communities to embrace it as the de facto standard for writing applications for complex networks 
  2. ^ Write once, run anywhere?. Computer Weekly. 2002-05-02 [2009-07-27]. (原始内容存档于2021-08-13). 
  3. ^ Wong, William. Write Once, Debug Everywhere. electronicdesign.com. 2002-05-27 [2013-02-04]. (原始内容存档于2019-04-03). So far, the "write-once, run-everywhere" promise of Java hasn't come true. The bulk of a Java application will migrate between most Java implementations, but taking advantage of a VM-specific feature causes porting problems. 

参见

[编辑]
{{bottomLinkPreText}} {{bottomLinkText}}
一次编写,到处运行
Listen to this article

This browser is not supported by Wikiwand :(
Wikiwand requires a browser with modern capabilities in order to provide you with the best reading experience.
Please download and use one of the following browsers:

This article was just edited, click to reload
This article has been deleted on Wikipedia (Why?)

Back to homepage

Please click Add in the dialog above
Please click Allow in the top-left corner,
then click Install Now in the dialog
Please click Open in the download dialog,
then click Install
Please click the "Downloads" icon in the Safari toolbar, open the first download in the list,
then click Install
{{::$root.activation.text}}

Install Wikiwand

Install on Chrome Install on Firefox
Don't forget to rate us

Tell your friends about Wikiwand!

Gmail Facebook Twitter Link

Enjoying Wikiwand?

Tell your friends and spread the love:
Share on Gmail Share on Facebook Share on Twitter Share on Buffer

Our magic isn't perfect

You can help our automatic cover photo selection by reporting an unsuitable photo.

This photo is visually disturbing This photo is not a good choice

Thank you for helping!


Your input will affect cover photo selection, along with input from other users.

X

Get ready for Wikiwand 2.0 🎉! the new version arrives on September 1st! Don't want to wait?