14

Is any version of Sun JDK or Open JDK available to be installed on cygwin.

Reason I am looking for this option is: There are many tools (e.g. jStack, jMap) which are available in unix versions of JDK but not for windows version. I need to exploit the same on my windows machine using Cygwin if possible.

Sandeep Jindal
  • 14,510
  • 18
  • 83
  • 121

2 Answers2

2

The Windows version should work alright, and is now available pre-built https://github.com/alexkasko/openjdk-unofficial-builds/downloads

Philippe Ombredanne
  • 2,017
  • 21
  • 36
  • 1
    It works alright, but not perfectly. For example, it won't understand Cygwin-format absolute filenames. – mhsmith Mar 24 '17 at 20:14
  • This is a 2 years old answer. Check may be Azul and RedHat OpenJDK distros for Windows? – Philippe Ombredanne Mar 25 '17 at 07:26
  • Neither of them offer Cygwin builds. It may be a two year old answer, but it seems to still be the best one (although Windows OpenJDK builds are now available from Oracle themselves). Especially since GCJ has now been abandoned and was never released for Cygwin 64-bit anyway. – mhsmith Mar 29 '17 at 12:51
  • Yeah. I gave up on using Cygwin entirely. I now run Linux as my primary OS desktop, Windows in a VM when needed. And only Windows-built on Windows unless absolutely necessary as a last resort for a few non-portable POSIX-only utilities where the Cygwin DLL would be needed to compile and run. I would never use an OpenJDK built on Cygwin. – Philippe Ombredanne Apr 02 '17 at 05:02
1

The OpenJDK site has build / compile instructions for a Cygwin environment:

I have however not encountered pre-built binaries that are intended to run on CygWin - yet.

Awais Qarni
  • 17,492
  • 24
  • 75
  • 137
Ngure Nyaga
  • 2,989
  • 1
  • 20
  • 30
  • 5
    Those instructions use Cygwin tools and Visual Studio to build the Windows version of the JDK, but not a Cygwin version that would use the Unix compatibility layer provided by Cygwin. – ak2 Oct 31 '11 at 06:54