我们可以在Cygwin上安装Linux版本的Java吗?

huangapple go评论85阅读模式
英文:

Can we install Linux version of Java on Cygwin?

问题

我在Cygwin上运行Java应用程序,但它失败了,因为它指向主机Windows机器上安装的Java。因此,我正在检查是否可以直接在Cygwin上安装Java,理想情况下是Linux版的Java(但我不认为Linux版的Java是可能的)。

请指导。

英文:

I am running a Java application on Cygwin however it is failing since it is pointing to the Java installed on the host windows machine. Therefore I was checking if we can install Java on Cygwin directly, ideally Linux Java (but I do not think Linus version of Java could be possible).

Please guide.

答案1

得分: 1

No it does not work.
As reported at the very beginning of the project Webpage https://cygwin.com/

Cygwin is:

  • a large collection of GNU and Open Source tools which provide functionality similar to a Linux distribution on Windows.
  • a DLL (cygwin1.dll) which provides substantial POSIX API functionality.

Cygwin is not:

  • a way to run native Linux apps on Windows. You must rebuild your application from source if you want it to run on Windows.
  • a way to magically make native Windows apps aware of UNIX® functionality like signals, ptys, etc. Again, you need to build your apps from source if you want to take advantage of Cygwin functionality.
英文:

No it does not work.
As reported at very begin of the project Webpage
https://cygwin.com/

> Cygwin is:
> - a large collection of GNU and Open Source tools which provide functionality similar to a Linux distribution on Windows.
> - a DLL (cygwin1.dll) which provides substantial POSIX API functionality.
>
> Cygwin is not:
>
> - a way to run native Linux apps on Windows. You must rebuild your application from source if you want it to run on Windows.
> - a way to magically make native Windows apps aware of UNIX® functionality like signals, ptys, etc. Again, you need to build your
> apps from source if you want to take advantage of Cygwin
> functionality.

huangapple
  • 本文由 发表于 2023年3月9日 21:34:12
  • 转载请务必保留本文链接:https://go.coder-hub.com/75685327.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定