Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Where is vmone relase for windows? #5

Open
ctoabidmaqbool opened this issue Sep 7, 2024 · 14 comments
Open

Where is vmone relase for windows? #5

ctoabidmaqbool opened this issue Sep 7, 2024 · 14 comments

Comments

@ctoabidmaqbool
Copy link

First of all what is vmone?

I can't find vmone for windows release!
https://github.com/gluonhq/vmone/releases/tag/gvm-24-1
image

I am trying to native build https://github.com/gluonhq/hello-gluon-ci but facing same error!

D:\GraalVM-Projects\gluonhq\hello-gluon-ci>mvnw -Pdesktop gluonfx:build gluonfx:package
[0.321s][warning][jit,compilation] JVMCI compiler disabled after 11 of 11 upcalls had errors (Last error: "uncaught exception in call_HotSpotJVMCIRuntime_compileMethod [jdk.vm.ci.common.JVMCIError: VM config values missing that should be present in JDK 23 jvmci-23+25-jvmci-b01 windows-amd64 (java.home=D:\Programs\graalvm-java23-windows-amd64-gluon-23+25.1-dev, java.vm.name=OpenJDK 64-Bit Server VM, java.vm.version=23+25-jvmci-b01):
    HeapRegion::LogOfHRGrainBytes at jdk.graal.compiler/jdk.graal.compiler.hotspot.GraalHotSpotVMConfig.<init>(GraalHotSpotVMConfig.java:400)
Set the debug.jdk.graal.jvmciConfigCheck system property to "ignore" to suppress this error or to "warn" to emit a warning and continue execution.
Currently used Java home directory is D:\Programs\graalvm-java23-windows-amd64-gluon-23+25.1-dev.
Currently used VM configuration is: OpenJDK 64-Bit Server VM
]"). Use -Xlog:jit+compilation for more detail.
[INFO] Scanning for projects...
[INFO]
[INFO] -------------------< com.gluonhq.samples:hellogluon >-------------------
[INFO] Building HelloGluon 1.0.0-SNAPSHOT
[INFO]   from pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- gluonfx-maven-plugin:1.0.24-SNAPSHOT:build (default-cli) @ hellogluon ---
[WARN] Maven will be executed in interactive mode, but no input stream has been configured for this MavenInvoker instance.
[0.293s][warning][jit,compilation] JVMCI compiler disabled after 11 of 11 upcalls had errors (Last error: "uncaught exception in call_HotSpotJVMCIRuntime_compileMethod [jdk.vm.ci.common.JVMCIError: VM config values missing that should be present in JDK 23 jvmci-23+25-jvmci-b01 windows-amd64 (java.home=D:\Programs\graalvm-java23-windows-amd64-gluon-23+25.1-dev, java.vm.name=OpenJDK 64-Bit Server VM, java.vm.version=23+25-jvmci-b01):
    HeapRegion::LogOfHRGrainBytes at jdk.graal.compiler/jdk.graal.compiler.hotspot.GraalHotSpotVMConfig.<init>(GraalHotSpotVMConfig.java:400)
Set the debug.jdk.graal.jvmciConfigCheck system property to "ignore" to suppress this error or to "warn" to emit a warning and continue execution.
Currently used Java home directory is D:\Programs\graalvm-java23-windows-amd64-gluon-23+25.1-dev.
Currently used VM configuration is: OpenJDK 64-Bit Server VM
]"). Use -Xlog:jit+compilation for more detail.
[INFO] Scanning for projects...
[INFO]
[INFO] -------------------< com.gluonhq.samples:hellogluon >-------------------
[INFO] Building HelloGluon 1.0.0-SNAPSHOT
[INFO]   from pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] >>> gluonfx-maven-plugin:1.0.24-SNAPSHOT:compile (default-cli) > process-classes @ hellogluon >>>
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ hellogluon ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 5 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ hellogluon ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] <<< gluonfx-maven-plugin:1.0.24-SNAPSHOT:compile (default-cli) < process-classes @ hellogluon <<<
[INFO]
[INFO]
[INFO] --- gluonfx-maven-plugin:1.0.24-SNAPSHOT:compile (default-cli) @ hellogluon ---
Configuration: ProjectConfiguration{graalPath='D:\Programs\graalvm-java23-windows-amd64-gluon-23+25.1-dev', javaStaticSdkVersion='24-1', javafxStaticSdkVersion='24-ea+7.1', javaVersion=23, graalVersion=23, useJNI=true, useJavaFX=true, usePrismSW=false, enableCheckHash=true, targetTriplet=x86_64-microsoft-windows, hostTriplet=x86_64-microsoft-windows, backend='null', bundlesList=[], resourcesList=[], reflectionList=[], jniList=[], initBuildTimeList=[], runtimeArgsList=[], releaseSymbolsList=null, appName='HelloGluon', releaseConfiguration='ReleaseConfiguration{packageType=null, description='The HelloGluon app', vendor='Gluon', version='null', macAppStore=false, macSigningUserName=null, macAppCategory=null, bundleName='null', bundleVersion='null', bundleShortVersion='null', providedSigningIdentity='null', providedProvisioningProfile='null', skipSigning=false, simulatorDevice='null', appLabel='null', versionCode='null', versionName='null', providedKeyStorePath='null', providedKeyStorePassword='null', providedKeyAlias='null', providedKeyAliasPassword='null'}', mainClassName='com.gluonhq.hello.HelloGluonApp', classpath='D:\GraalVM-Projects\gluonhq\hello-gluon-ci\target\classes;D:\.my-m2\repository\com\gluonhq\charm-glisten\6.2.3\charm-glisten-6.2.3.jar;C:\Users\MSC-30\.m2\repository\com\gluonhq\attach\display\4.0.21\display-4.0.21-desktop.jar;D:\.my-m2\repository\com\gluonhq\attach\display\4.0.21\display-4.0.21.jar;C:\Users\MSC-30\.m2\repository\com\gluonhq\attach\lifecycle\4.0.21\lifecycle-4.0.21-desktop.jar;D:\.my-m2\repository\com\gluonhq\attach\lifecycle\4.0.21\lifecycle-4.0.21.jar;C:\Users\MSC-30\.m2\repository\com\gluonhq\attach\statusbar\4.0.21\statusbar-4.0.21.jar;D:\.my-m2\repository\com\gluonhq\attach\statusbar\4.0.21\statusbar-4.0.21.jar;C:\Users\MSC-30\.m2\repository\com\gluonhq\attach\storage\4.0.21\storage-4.0.21-desktop.jar;D:\.my-m2\repository\com\gluonhq\attach\storage\4.0.21\storage-4.0.21.jar;D:\.my-m2\repository\com\gluonhq\attach\util\4.0.21\util-4.0.21.jar;D:\.my-m2\repository\org\openjfx\javafx-base\24-ea+5\javafx-base-24-ea+5-win.jar;D:\.my-m2\repository\org\openjfx\javafx-base\24-ea+5\javafx-base-24-ea+5.jar;D:\.my-m2\repository\org\openjfx\javafx-controls\24-ea+5\javafx-controls-24-ea+5-win.jar;D:\.my-m2\repository\org\openjfx\javafx-controls\24-ea+5\javafx-controls-24-ea+5.jar;D:\.my-m2\repository\org\openjfx\javafx-graphics\24-ea+5\javafx-graphics-24-ea+5-win.jar;D:\.my-m2\repository\org\openjfx\javafx-graphics\24-ea+5\javafx-graphics-24-ea+5.jar'}
[Sun Sep 08 07:14:16 PKT 2024][INFO] ==================== COMPILE TASK ====================
             _______  ___      __   __  _______  __    _
            |       ||   |    |  | |  ||       ||  |  | |
            |    ___||   |    |  | |  ||   _   ||   |_| |
            |   | __ |   |    |  |_|  ||  | |  ||       |
            |   ||  ||   |___ |       ||  |_|  ||  _    |
            |   |_| ||       ||       ||       || | |   |
            |_______||_______||_______||_______||_|  |__|

    Access to the latest docs, tips and tricks and more info on
    how to get support? Register your usage of Gluon Substrate now at

    https://gluonhq.com/activate



[Sun Sep 08 07:14:18 PKT 2024][INFO] We will now compile your code for x86_64-microsoft-windows. This may take some time.
[Sun Sep 08 07:14:18 PKT 2024][FINE] Processing JavaStatic dependencies at C:\Users\MSC-30\.gluon\substrate\javaStaticSdk\24-1\windows-x86_64\lib
[Sun Sep 08 07:14:18 PKT 2024][FINE] Processing JavaFXStatic dependencies at C:\Users\MSC-30\.gluon\substrate\javafxStaticSdk\24-ea+7.1\windows-x86_64\sdk\lib
[Sun Sep 08 07:14:18 PKT 2024][INFO] Downloading Java Static Libs...
[Sun Sep 08 07:14:18 PKT 2024][FINE] Processing zip file: url = https://github.com/gluonhq/vmone/releases/download/gvm-24-1/vmone-windows-x64.zip, zip = C:\Users\MSC-30\.gluon\substrate\gvm-24-1\vmone-windows-x64.zip, subDir = javaStaticSdk, levels = [24-1, windows-x86_64], md5 = javaStaticSdk-windows-x86_64.md5
[Sun Sep 08 07:14:18 PKT 2024][FINE] download from link: https://github.com/gluonhq/vmone/releases/download/gvm-24-1/vmone-windows-x64.zip
[Sun Sep 08 07:14:19 PKT 2024][SEVERE] download from link failed with status: 404, and body: null
Check the log files under D:\GraalVM-Projects\gluonhq\hello-gluon-ci\target\gluonfx\x86_64-windows\gvm\log
And please check https://docs.gluonhq.com/ for more information.
java.lang.RuntimeException: Error downloading zips: java.io.IOException: Error downloading link from https://github.com/gluonhq/vmone/releases/download/gvm-24-1/vmone-windows-x64.zip. Unexpected status code: 404
        at com.gluonhq.substrate.util.FileDeps.setupDependencies(FileDeps.java:334)
        at com.gluonhq.substrate.util.FileDeps.resolvePath(FileDeps.java:174)
        at com.gluonhq.substrate.util.FileDeps.getJavaFXSDKLibsPath(FileDeps.java:106)
        at com.gluonhq.substrate.target.AbstractTargetConfiguration.processClassPath(AbstractTargetConfiguration.java:788)
        at com.gluonhq.substrate.target.AbstractTargetConfiguration.validateCompileRequirements(AbstractTargetConfiguration.java:392)
        at com.gluonhq.substrate.target.AbstractTargetConfiguration.compile(AbstractTargetConfiguration.java:132)
[INFO] ------------------------------------------------------------------------
        at com.gluonhq.substrate.SubstrateDispatcher.nativeCompile(SubstrateDispatcher.java:422)
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
        at com.gluonhq.NativeCompileMojo.execute(NativeCompileMojo.java:54)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137)
        at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2(MojoExecutor.java:370)
        at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute(MojoExecutor.java:351)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:215)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:171)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:163)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
        at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:56)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:299)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
[INFO] Total time:  4.472 s
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:963)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:296)
[INFO] Finished at: 2024-09-08T07:14:19+05:00
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
        at java.base/java.lang.reflect.Method.invoke(Method.java:580)
[INFO] ------------------------------------------------------------------------
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:282)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:225)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:406)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:347)
[ERROR] Failed to execute goal com.gluonhq:gluonfx-maven-plugin:1.0.24-SNAPSHOT:compile (default-cli) on project hellogluon: Error: Error downloading zips: java.io.IOException: Error downloading link from https://github.com/gluonhq/vmone/releases/download/gvm-24-1/vmone-windows-x64.zip. Unexpected status code: 404 -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Skipping HelloGluon
[INFO] This project has been banned from the build due to previous failures.
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  7.795 s
[INFO] Finished at: 2024-09-08T07:14:19+05:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.gluonhq:gluonfx-maven-plugin:1.0.24-SNAPSHOT:build (default-cli) on project hellogluon: Error, gluonfx:build failed -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
@credmond
Copy link

credmond commented Sep 9, 2024

Having this issue too where substrate cannot download the windows version...

@Aliere06
Copy link

Aliere06 commented Oct 4, 2024

Exact same issue here, I was absolutely dumbfounded when I saw that the error is that the file is just not there?

PS C:\Users\Yoga L13\Documents\School\S5\SI - Simulación\T2 - Números Pseudoaleatorios\Programa Algoritmos> mvn gluonfx:compile
[INFO] Scanning for projects...
[INFO] 
[INFO] ---------------------< com.aliere:RNG_Algorithms >----------------------
[INFO] Building RNG_Algorithms 1.0-SNAPSHOT
[INFO]   from pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] >>> gluonfx-maven-plugin:1.0.24:compile (default-cli) > process-classes @ RNG_Algorithms >>>
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ RNG_Algorithms ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 10 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.0:compile (default-compile) @ RNG_Algorithms ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] <<< gluonfx-maven-plugin:1.0.24:compile (default-cli) < process-classes @ RNG_Algorithms <<<
[INFO]
[INFO] 
[INFO] --- gluonfx-maven-plugin:1.0.24:compile (default-cli) @ RNG_Algorithms ---
Oct 04, 2024 3:00:15 PM com.gluonhq.substrate.util.Logger logInfo
INFO: Substrate is tested with the Gluon's GraalVM build which you can find at https://github.com/gluonhq/graal/releases.       
While you can still use other GraalVM builds, there is no guarantee that these will work properly with Substrate
[Fri Oct 04 15:00:15 GMT-06:00 2024][INFO] ==================== COMPILE TASK ====================
             _______  ___      __   __  _______  __    _
            |       ||   |    |  | |  ||       ||  |  | |
            |    ___||   |    |  | |  ||   _   ||   |_| |
            |   | __ |   |    |  |_|  ||  | |  ||       |
            |   ||  ||   |___ |       ||  |_|  ||  _    |
            |   |_| ||       ||       ||       || | |   |
            |_______||_______||_______||_______||_|  |__|

    Access to the latest docs, tips and tricks and more info on
    how to get support? Register your usage of Gluon Substrate now at

    https://gluonhq.com/activate



[Fri Oct 04 15:00:16 GMT-06:00 2024][INFO] We will now compile your code for x86_64-microsoft-windows. This may take some time. 
[Fri Oct 04 15:00:16 GMT-06:00 2024][INFO] Downloading Java Static Libs...
[Fri Oct 04 15:00:17 GMT-06:00 2024][SEVERE] download from link failed with status: 404, and body: null
Check the log files under C:\Users\Yoga L13\Documents\School\S5\SI - Simulaci├│n\T2 - N├║meros Pseudoaleatorios\Programa Algoritmos\target\gluonfx\x86_64-windows\gvm\log
And please check https://docs.gluonhq.com/ for more information.
java.lang.RuntimeException: Error downloading zips: java.io.IOException: Error downloading link from https://github.com/gluonhq/vmone/releases/download/gvm-24-2/vmone-windows-x64.zip. Unexpected status code: 404
        at com.gluonhq.substrate.util.FileDeps.setupDependencies(FileDeps.java:334)
        at com.gluonhq.substrate.util.FileDeps.resolvePath(FileDeps.java:174)
        at com.gluonhq.substrate.util.FileDeps.getJavaFXSDKLibsPath(FileDeps.java:106)
        at com.gluonhq.substrate.target.AbstractTargetConfiguration.processClassPath(AbstractTargetConfiguration.java:788)      
        at com.gluonhq.substrate.target.AbstractTargetConfiguration.validateCompileRequirements(AbstractTargetConfiguration.java:392)
        at com.gluonhq.substrate.target.AbstractTargetConfiguration.compile(AbstractTargetConfiguration.java:131)
        at com.gluonhq.substrate.SubstrateDispatcher.nativeCompile(SubstrateDispatcher.java:422)
        at com.gluonhq.NativeCompileMojo.execute(NativeCompileMojo.java:54)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137)
        at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2(MojoExecutor.java:370)
        at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute(MojoExecutor.java:351)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:215)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:171)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:163)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
        at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:56)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:299)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:963)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:296)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
        at java.base/java.lang.reflect.Method.invoke(Method.java:580)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:282)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:225)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:406)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:347)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  2.613 s
[INFO] Finished at: 2024-10-04T15:00:17-06:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.gluonhq:gluonfx-maven-plugin:1.0.24:compile (default-cli) on project RNG_Algorithms: Error: Error downloading zips: java.io.IOException: Error downloading link from https://github.com/gluonhq/vmone/releases/download/gvm-24-2/vmone-windows-x64.zip. Unexpected status code: 404 -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
PS C:\Users\Yoga L13\Documents\School\S5\SI - Simulación\T2 - Números Pseudoaleatorios\Programa Algoritmos>

@ctoabidmaqbool
Copy link
Author

ctoabidmaqbool commented Oct 5, 2024

@Aliere06 Windows supports is going to be dropped by Gluon team!

You can use simple Java & Javafx (and maybe Graalvm native-image) without using / dependent upon Gluon plugins for Desktop Windows OS. They are mainly focuing on Unix like OS e.g. Linux or Mac OS and Mobile devices e.g. Android and IOS etc.

A lot a disscussion alrady was done let see them deeply!

gluonhq/substrate#1241
gluonhq/substrate#1279
gluonhq/substrate#1284

@credmond
Copy link

credmond commented Oct 9, 2024

@Aliere06 Windows supports is going to be dropped by Gluon team!

You can use simple Java & Javafx (and maybe Graalvm native-image) without using / dependent upon Gluon plugins for Desktop Windows OS. They are mainly focuing on Unix like OS e.g. Linux or Mac OS and Mobile devices e.g. Android and IOS etc.

A lot a disscussion alrady was done let see them deeply!

gluonhq/substrate#1241 gluonhq/substrate#1279 gluonhq/substrate#1284

It's not being dropped, the latest version just doesn't support Windows, yet. It's misleading others to say Gluon is dropping support for Windows.

@DanoOM
Copy link

DanoOM commented Nov 16, 2024

Any update on this?

@abdorah
Copy link

abdorah commented Nov 24, 2024

I have the same issue:

[INFO] --- gluonfx-maven-plugin:1.0.24:compile (default-cli) @ alarm ---
nov. 24, 2024 12:40:52 PM com.gluonhq.substrate.util.Logger logInfo
INFO: Substrate is tested with the Gluon's GraalVM build which you can find at https://github.com/gluonhq/graal/releases.
While you can still use other GraalVM builds, there is no guarantee that these will work properly with Substrate
[dim. nov. 24 12:40:52 WEST 2024][INFO] ==================== COMPILE TASK ====================
             _______  ___      __   __  _______  __    _
            |       ||   |    |  | |  ||       ||  |  | |
            |    ___||   |    |  | |  ||   _   ||   |_| |
            |   | __ |   |    |  |_|  ||  | |  ||       |
[dim. nov. 24 12:40:53 WEST 2024][INFO] We will now compile your code for x86_64-microsoft-windows. This may take some time.
            |   ||  ||   |___ |       ||  |_|  ||  _    |
            |   |_| ||       ||       ||       || | |   |
            |_______||_______||_______||_______||_|  |__|

    Access to the latest docs, tips and tricks and more info on
    how to get support? Register your usage of Gluon Substrate now at

    https://gluonhq.com/activate



[dim. nov. 24 12:40:53 WEST 2024][INFO] Downloading Java Static Libs...
[dim. nov. 24 12:40:53 WEST 2024][SEVERE] download from link failed with status: 404, and body: null
Check the log files under C:\Users\kotbymo\Documents\codespace\gluon-samples\alarm\target\gluonfx\x86_64-windows\gvm\log
And please check https://docs.gluonhq.com/ for more information.
java.lang.RuntimeException: Error downloading zips: java.io.IOException: Error downloading link from https://github.com/gluonhq/vmone/releases/download/gvm-24-2/vmone-windows-x64.zip. Unexpected status code: 404
        at com.gluonhq.substrate.util.FileDeps.setupDependencies(FileDeps.java:334)
        at com.gluonhq.substrate.util.FileDeps.resolvePath(FileDeps.java:174)
        at com.gluonhq.substrate.util.FileDeps.getJavaFXSDKLibsPath(FileDeps.java:106)
        at com.gluonhq.substrate.target.AbstractTargetConfiguration.processClassPath(AbstractTargetConfiguration.java:788)
        at com.gluonhq.substrate.target.AbstractTargetConfiguration.validateCompileRequirements(AbstractTargetConfiguration.java:392)
        at com.gluonhq.substrate.target.AbstractTargetConfiguration.compile(AbstractTargetConfiguration.java:131)
        at com.gluonhq.substrate.SubstrateDispatcher.nativeCompile(SubstrateDispatcher.java:422)
        at com.gluonhq.NativeCompileMojo.execute(NativeCompileMojo.java:54)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137)
        at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2(MojoExecutor.java:370)
        at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute(MojoExecutor.java:351)
[INFO] ------------------------------------------------------------------------
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:215)
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:171)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:163)
[INFO] Total time:  4.652 s
[INFO] Finished at: 2024-11-24T12:40:53+01:00
[INFO] ------------------------------------------------------------------------
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
[ERROR] Failed to execute goal com.gluonhq:gluonfx-maven-plugin:1.0.24:compile (default-cli) on project alarm: Error: Error downloading zips: java.io.IOException: Error downloading link from https://github.com/gluonhq/vmone/releases/download/gvm-24-2/vmone-windows-x64.zip. Unexpected status code: 404 -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
        at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:56)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:299)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:963)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:296)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
        at java.base/java.lang.reflect.Method.invoke(Method.java:580)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:282)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:225)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:406)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:347)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  7.478 s
[INFO] Finished at: 2024-11-24T12:40:54+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.gluonhq:gluonfx-maven-plugin:1.0.24:build (default-cli) on project alarm: Error, gluonfx:build failed -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

I this issue raised when I wanted to test the alarm project of gluonfx samples, my configuration is the following:

$ mvn -v
Picked up JAVA_TOOL_OPTIONS: -Dlog4j2.formatMsgNoLookups=true
Apache Maven 3.8.8 (4c87b05d9aedce574290d1acc98575ed5eb6cd39)
Maven home: C:\sdkman\candidates\maven\current
Java version: 21.0.5, vendor: Oracle Corporation, runtime: C:\sdkman\candidates\java\current
Default locale: fr_FR, platform encoding: UTF-8
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"

@abdorah
Copy link

abdorah commented Nov 24, 2024

I noticed that the pipeline to create the windows artifact is intentionally turned off:
image
I think based on the only open PR, that this feature lack support currently, can you please guide us to a way to fix this or any other method to pass the build. Thank you.

@credmond
Copy link

I think the issue #8 refers to making it more clear that vmone does not yet support Windows. There were other discussions on it. It's work/effort and Gluon doesn't have the capacity right now, and nobody else from the community has taken it on to completion. You can use an older version of substrate/maven/gradle plugin, to build on Windows. The downside is you'll be stuck with JDK17, GraalVM 22 and JFX 21...until support is added to vmone.

@ctoabidmaqbool
Copy link
Author

I noticed that the pipeline to create the windows artifact is intentionally turned off: image I think based on the only open PR, that this feature lack support currently, can you please guide us to a way to fix this or any other method to pass the build. Thank you.

Windows is not yet supported, If you are instrusted in development stuff, then you can see me repo and PR (partial done)!
But I am sure without much help from Gluon Offical team it's much difficult to achive 100%:

https://github.com/ctoabidmaqbool/vmone-fork/tree/windows-impl
#7
https://github.com/ctoabidmaqbool/substrate-fork/tree/windows-impl
gluonhq/substrate#1288
https://github.com/ctoabidmaqbool/gluonfx-maven-plugin-fork

Most of the time you will workin on vmone and substrate.

I was working on this side but I soon realized that without must help from gloun team it's much difficult to achive it as I have not enough time to do so!

Another idea if you are just instrusted to make native-image exe on window you can use just gluon's grallvm without gluon-maven-plugin / gradle one's but still it's much tuff works to do so, you will face a lot chalanges and difficulties.

Or currenlty stich with old gluon plugin e.g. 23

@DovgopolsSerj
Copy link

DovgopolsSerj commented Jan 13, 2025

The downside is you'll be stuck with JDK17, GraalVM 22 and JFX 21...until support is added to vmone.

You can just use 1.0.23
I am using the latest graalvm 23.0.1
First of all, you need to have Visual Studio 22 instead of 19.
You can use the latest version of javafx 23.0.1 for development
In pom.xml new versions need to be added:

<properties>
   ...
   <javafx.version>23.0.1</javafx.version>
   <gluonfx.plugin.version>1.0.23</gluonfx.plugin.version>
</properties>

<plugin>
   <groupId>com.gluonhq</groupId>
   <artifactId>gluonfx-maven-plugin</artifactId>
   <version>${gluonfx.plugin.version}</version>
   <configuration>
      ....
      <javaStaticSdkVersion>24-2</javaStaticSdkVersion>
      <javafxStaticSdkVersion>24-ea+7.1</javafxStaticSdkVersion>
    </configuration>
</plugin>

javaStaticSdkVersion and javafxStaticSdkVersion are the same ones that are used with version 1.0.24 when building on Linux.
This is how the build to the native image is performed on windows without errors.

@ctoabidmaqbool
Copy link
Author

ctoabidmaqbool commented Jan 14, 2025

@DovgopolsSerj
Thank you for sharing your setup! However, that's not entirely the case regarding the GluonFX plugins and their dependencies. Starting with GluonFX plugin version 1.0.24+, the build process is dependent on VMOne, and currently, VMOne does not provide support for Windows x64 or Linux AArch64 targets. You can verify this on the official [VMOne release page](https://github.com/gluonhq/vmone/releases).

The current VMOne release includes the following binaries:

  • vmone-android-linux-aarch64.zip
  • vmone-ios-macos-aarch64.zip
  • vmone-linux-x64.zip
  • vmone-macos-aarch64.zip
  • vmone-macos-x64.zip

Unfortunately, Windows x64 and Linux AArch64 are missing, which means builds targeting these platforms are not currently officially supported when using GluonFX 1.0.24+.

If you need to build for Windows x64 or Linux AArch64, you'll need to stick to GluonFX plugin versions 1.0.23 or earlier, which do not depend on VMOne. For now, builds for Linux x64 and Android are supported without issue on the latest GluonFX versions.

Edit:
To clarify, this applies to 1.0.24+, not 1.0.23 or 1.0.22, as I may have misstated earlier. I hope this clears up any confusion!

Refs:
gluonhq/substrate#1284
gluonhq/substrate#1285

@DovgopolsSerj
Copy link

DovgopolsSerj commented Jan 14, 2025

Unfortunately, Windows x64 and Linux AArch64 are missing, which means builds targeting these platforms are not currently officialy supported when using GluonFX 1.0.23 or later.

Not 1.0.23
According to the documentation, the build in version 1.0.24 is not supported yet.
Gluon docs
I don't know what exactly depends on vmone, I didn't get any errors when building a fairly large application with a large list of dependencies.
In addition to the new javafx versions, the new plugin supports static assembly. Maybe vmone is used for this.
At least the name is similar to VirtualMachineOne

@credmond
Copy link

The downside is you'll be stuck with JDK17, GraalVM 22 and JFX 21...until support is added to vmone.

You can just use 1.0.23 I am using the latest graalvm 23.0.1 First of all, you need to have Visual Studio 22 instead of 19. You can use the latest version of javafx 23.0.1 for development In pom.xml new versions need to be added:

You can't just use that necessarily -- when this works for you, it is down to luck that your project doesn't have issues or attempt to access certain native code, etc... (yet).

Also, 1.0.23 doesn't use VM, not sure why @ctoabidmaqbool is saying it does, I think he meant 1.0.24+... 1.0.23 is the last release that supports Windows.

@ctoabidmaqbool
Copy link
Author

@credmond
Thank you for pointing that out, and I appreciate the clarification! You're absolutely correct—what I meant was 1.0.24+, not 1.0.23. I seem to have mixed up the versions in my earlier comment. My observations and comments were specifically regarding 1.0.24+, which indeed depends on vmone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants