title: How to run Java application using Cygwin
body: <p>I've been trying to compile and run this example for javafx  <a href="https://openjfx.io/openjfx-docs/#maven" rel="nofollow noreferrer">https://openjfx.io/openjfx-docs/#maven</a> using Cygwin on Windows 10.  It took awhile to get past the compile because my javafx is stored in C:\Program Files\javafx-sdk-13.0.1, the trouble being the space in the folder name.  After trying lots of different things I finally found <a href="https://stackoverflow.com/questions/18323508/how-to-cd-into-a-directory-with-space-in-the-name">How to cd into a directory with space in the name?</a>, which in a nutshell tells you to put quotes around your environment variable, "PATH_TO_FX". </p>
  
  <p>Then I tried to run the example </p>
  
  <p>$ java --module-path "PATH_TO_FX":mods -m hellofx/hellofx.HelloFX </p>
  
  <p>Error occurred during initialization of boot layer​java.nio.file.InvalidPathException: Illegal char &lt;:> at index 10: PATH_TO_FX:mods​</p>
  
  <p>So I thought the PATH_TO_FX was the problem but it turns out it is not.</p>
  
  <p>$ java --module-path src:mods -m hellofx/hellofx.HelloFX</p>
  
  <p>Error occurred during initialization of boot layer​java.nio.file.InvalidPathException: Illegal char &lt;:> at index 3: src:mods​</p>
  
  <p>src is a valid directory and I still get the same problem.  I think it is related to java being stored in a directory with spaces in it but I'm not sure.</p>