<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">On 7/2/23 9:21 AM, Eric Bresie wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAHw6w1QTG+n0mGhYm52h==nQKUG_a+tTFzyLX42fKE-p3gOKzg@mail.gmail.com">
<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 moz-do-not-send="true"
href="https://github.com/jgneff/jfxbuild/blob/main/win10/bin/jfxbuild.env">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 moz-do-not-send="true"
href="https://github.com/jgneff/jfxbuild/tree/main">jgneff/jfxbuild</a>
for the scripts I use to run the builds.</p>
<p>John</p>
</body>
</html>