Problem with OpenJFX on Windows/Cygwin/SDKMAN Environment
Eric Bresie
ebresie at gmail.com
Sun Jul 2 16:21:33 UTC 2023
Hope this is the right place to ask this question...If there was some IRC,
Slack, or some other form of chat I would direct it there...
I am trying to build openjfx from master per
https://wiki.openjdk.org/display/OpenJFX/Building+OpenJFX
Using
1. Cygwin in Windows 11 environment with specified add ons setup.
2. Visual Studio 2022 Community in use, setting the VS150COMNTOOLS to
subfolder under this
1. Is this acceptable or should a different variable be used here?
2. Does ./vcvarsall.bat need to be called to set applicable
VisualStudio variables, etc.)?
3. I'm using SDKMAN to manage my JDKs in the Cygwin environment.
Attempting the basic sh gradlew tasks command I'm getting
Build file 'C:\git\jfx\jfx\build.gradle' line: 693
* 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
In the build.gradle, the above issue occurs here
// Make sure JDK_HOME/bin/java exists
if (!file(JAVA).exists()) throw new Exception("Missing or incorrect path to
'java': '$JAVA'. Perhaps bad JDK_HOME? $JDK_HOME")
My environment variables are set like:
$ echo $JAVA_HOME
/home/<userhome>/.sdkman/candidates/java/current
$ echo $JDK_HOME
/home/ <userhome> /.sdkman/candidates/java/current
In the bin of the above there is the following which appears to have
"java.exe" so not sure why this is happening.
~/.sdkman/candidates/java/current/bin
$ ls -l java*
-rwxrwxr-x 1 146824 Apr 18 17:39 java.dll
-rwxrwxr-x 1 50056 Apr 18 17:39 java.exe
-rwxrwxr-x 1 287624 Apr 18 17:39 javaaccessbridge.dll
-rwxrwxr-x 1 23944 Apr 18 17:39 javac.exe
-rwxrwxr-x 1 23944 Apr 18 17:39 javadoc.exe
-rwxrwxr-x 1 179080 Apr 18 17:39 javajpeg.dll
-rwxrwxr-x 1 23944 Apr 18 17:39 javap.exe
-rwxrwxr-x 1 50056 Apr 18 17:39 javaw.exe
Not sure if this is due to the way sdkman creates a symbolic link from
"current" to given candidate or if there is some "pathing differences"
(i.e. Windows C:\\someplace" vs /c/someplace, etc.) issue.
Has anyone had similar issues and/or know how to get around this?
Eric Bresie
ebresie at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/openjfx-dev/attachments/20230702/a813ffb4/attachment.htm>
More information about the openjfx-dev
mailing list