Problem with OpenJFX on Windows/Cygwin/SDKMAN Environment
John Neffenger
john at status6.com
Sun Jul 2 16:49:11 UTC 2023
On 7/2/23 9:21 AM, Eric Bresie wrote:
> * What went wrong:
> A problem occurred evaluating root project 'jfx'.
> > 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
You might need to use the cygpath command to set those environment
variables. I finally got builds working well on Windows with the
following script
<https://github.com/jgneff/jfxbuild/blob/main/win10/bin/jfxbuild.env>
for setting up the environment variables in Cygwin:
------------------------------------------------------------------------
#!/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
------------------------------------------------------------------------
See my repository at jgneff/jfxbuild
<https://github.com/jgneff/jfxbuild/tree/main> for the scripts I use to
run the builds.
John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/openjfx-dev/attachments/20230702/28a38bca/attachment-0001.htm>
More information about the openjfx-dev
mailing list