<div dir="ltr">Probably a question I should have asked up front and may have missed it someplace, but what is the version of JDK required for jfx from master?   I'm using JDK 17 at the moment.  Is that still okay?<br><div><br></div>Will give that a try...<div><br></div><div><div>Before I got this email response I was poking around some...</div><div><br></div><div>I ran "sh gradlew --debug tasks" and noticed there appeared to be two variations of paths showing up (see below).  I could be wrong, but the first looks like it might be okay in cygwin but the subsequent ones don't look quite right to me (i.e., assume using cygwin it might treat the "\home\.." as a "corrupt" path with the "\" escaping portions of the path).</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">2023-07-02T11:59:29.490-0500 [INFO] [org.gradle.api.Project] <b>Converting path '/home/<userhome>/.sdkman/candidates/java/current' via cygpath to /home/</b>

<userhome><b>/.sdkman/candidates/java/current<br></b>2023-07-02T11:59:29.490-0500 [INFO] [org.gradle.api.Project] Converting path '/home/<userhome>/.sdkman/candidates/java/current/bin/java' via cygpath to <b><u><i>\home\<userhome>\.sdkman\candidates\java\current\bin\java</i></u></b><br>2023-07-02T11:59:29.490-0500 [INFO] [org.gradle.api.Project] Converting path '/home/<userhome>/.sdkman/candidates/java/current/bin/javac' via cygpath to \home\<userhome>\.sdkman\candidates\java\current\bin\javac<br>2023-07-02T11:59:29.490-0500 [INFO] [org.gradle.api.Project] Converting path '/home/<userhome>/.sdkman/candidates/java/current/bin/javadoc' via cygpath to \home\<userhome>\.sdkman\candidates\java\current\bin\javadoc<br>2023-07-02T11:59:29.490-0500 [INFO] [org.gradle.api.Project] Converting path '/home/<userhome>/.sdkman/candidates/java/current/bin/jmod' via cygpath to \home\<userhome>\.sdkman\candidates\java\current\bin\jmod<br>2023-07-02T11:59:29.491-0500 [INFO] [org.gradle.api.Project] Converting path 'null/jmods' via cygpath to null/jmods</blockquote><div><br></div><div>Not sure if it's related but in the build.gradle file, I noticed the below "cygpath helper methods" defined.  Does the build.gradle not truely use the actual "cygpath" and instead just tries to mirror the behavior within?  Is it possible the build.gradle cygpath related conversions are a little off around the highlighted places and/or need the "-m" (mixed) type of logic included?  </div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">/**<br><blockquote> * Converts cygwin style paths to windows style paths, but with a forward slash.<br> * This method is safe to call from any platform, and will only do work if<br> * called on Windows (in all other cases it simply returns the supplied path.<br> *<br> * @param path the path to convert<br> * @return the path converted to windows style, if on windows, otherwise it<br> *         is the supplied path.<br> */<br>String cygpath(String path) {<br>    if (!IS_WINDOWS) return path;<br>    if (path == null || "".equals(path)) return path;<br>   <b> String ret = path.replaceAll('\\\\', '/')</b><br>    <a href="http://logger.info">logger.info</a>("Converting path '$path' via cygpath to "+ret)<br>    return ret<br>}<br>/**<br> * Converts cygwin file paths for java executables to windows style<br> * executable paths by changing forward slashes to back slashes and<br> * adding the '.exe' extension.<br> * This method is safe to call from any platform, and will only do work if<br> * called on Windows (in all other cases it simply returns the supplied path).<br> *<br> * @param path the path to convert<br> * @return the path converted to windows style, if on windows, otherwise it<br> *         is the supplied path.<br> */<br>String cygpathExe(String path) {<br>    if (!IS_WINDOWS) return path;<br>    if (path == null || "".equals(path)) return path;<br>    <b>String ret = path.replaceAll('/', '\\\\')</b><br>    <a href="http://logger.info">logger.info</a>("Converting path '$path' via cygpath to "+ret)<br>    return ret + ".exe"<br>}</blockquote></blockquote><div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Eric Bresie<br><a href="mailto:ebresie@gmail.com" target="_blank">ebresie@gmail.com</a><br></div></div></div></div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Jul 2, 2023 at 11:50 AM John Neffenger <<a href="mailto:john@status6.com">john@status6.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div>
    <div>On 7/2/23 9:21 AM, Eric Bresie wrote:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">* What went wrong:<br>
        <div>A problem occurred evaluating root project 'jfx'.<br>
          > Missing or incorrect path to 'java':
          '\home\<userHome>\.sdkman\candidates\java\current\bin\java.exe'.
          Perhaps bad JDK_HOME? /home/
          <userHome>  /.sdkman/candidates/java/current<br>
        </div>
      </div>
    </blockquote>
    <p>You might need to use the <tt>cygpath</tt> command to set those
      environment variables. I finally got builds working well on
      Windows with the <a href="https://github.com/jgneff/jfxbuild/blob/main/win10/bin/jfxbuild.env" target="_blank">following
        script</a> for setting up the environment variables in Cygwin:</p>
    <hr width="100%" size="2">
    <pre>#!/bin/bash
# Sets up the environment for building JavaFX

# Path must include 'C:\Windows\System32'
syspath=/usr/sbin:/usr/bin:/sbin:/bin:/cygdrive/c/Windows/System32

# Visual Studio Build Tools 2022
export VS150COMNTOOLS="C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Auxiliary\\Build"

cmake=$HOME/opt/cmake-3.26.4-windows-x86_64
jdk=$HOME/opt/jdk-19.0.2
ant=$HOME/opt/apache-ant-1.10.13

CMAKE_HOME=$(cygpath -m "$cmake")
JAVA_HOME=$(cygpath -m "$jdk")
ANT_HOME=$(cygpath -m "$ant")
SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct)

export CMAKE_HOME
export JAVA_HOME
export ANT_HOME
export SOURCE_DATE_EPOCH

# JDK_HOME and PATH are required by the build
export JDK_HOME="$JAVA_HOME"
export PATH=$ant/bin:$jdk/bin:$cmake/bin:$syspath
</pre>
    <hr width="100%" size="2">
    <p>See my repository at <a href="https://github.com/jgneff/jfxbuild/tree/main" target="_blank">jgneff/jfxbuild</a>
      for the scripts I use to run the builds.</p>
    <p>John</p>
  </div>

</blockquote></div>