你为什么要编写Windows和放大器单独的程序; Linux的 [英] Why do you have to write separate Programs for Windows & Linux

查看:80
本文介绍了你为什么要编写Windows和放大器单独的程序; Linux的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直想知道为什么有些语言,如在Linux很少Java运行或code的任何修改,但你必须接近其他语言重新编写所有code。为什么是这样?因为内核的?

I've been wondering why do some languages, such as Java run on Both Linux with little or no modification of the code, but other languages you have to nearly re-write all the code. Why is this? Because of the Kernel?

很抱歉,如果这是一个简单的问题,但我真的没有太多的线索的。

Sorry if this is a simple question but, I really don't have much of a clue.

此外,什么是Linux中的条款CPU架构之间的差异。

Also, what's the difference between cpu architecture in terms of Linux.

推荐答案

从技术上讲你就错了。

Java没有在Linux上运行。它也不会在Windows上运行。它不会在Mac上运行的任何,也没有任何其他的Unix类操作系统。对于这个问题,它不在任何操作系统上运行。

Java does not run on Linux. It also does not run on Windows. It does not run on Mac either, nor any other Unix like operating system. For that matter, it does not run on any operating system.

这直接运行在机器上。它仅适用于一个类型的机器 - Java虚拟机。幸运的是,Java虚拟机已被虚拟化的Linux上,在Windows,Mac等。

It runs directly on the machine. It only works on one type of machine - the Java Virtual Machine. Fortunately, the Java Virtual Machine has been virtualized onto Linux, Windows, Mac, etc.

这篇关于你为什么要编写Windows和放大器单独的程序; Linux的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆