GithubHelp home page GithubHelp logo

client-samples's Introduction

Gluon Client Samples

This repository has been superseded and the Client samples can be found at Gluon Samples.

client-samples's People

Contributors

abhinayagarwal avatar erwin1 avatar gluon-bot avatar joerg-wille avatar johanvos avatar jperedadnr avatar tiainen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

client-samples's Issues

Exception in Application start method

Hello,

I created native image on Mac for the https://github.com/javaterminal/TerminalFX project. It successfully created TerminalFX.app, but when it started it is giving me the 'Exception in Application start method' error. How can I see the exception details?

[DEBUG] Start running in /Users/usta/projects/TerminalFX/target/client
Omega :: host triplet = x86_64-macos-macos
Omega :: target triplet = x86_64-macos-macos
[Mon Jul 01 14:00:48 EET 2019][INFO] [SUB] 2019-07-01 14:00:48.097 TerminalFX[1755:29623] Starting Gluon VM...
[Mon Jul 01 14:00:48 EET 2019][INFO] [SUB] 2019-07-01 14:00:48.097 TerminalFX[1755:29623] Starting Gluon VM...
[Mon Jul 01 14:00:48 EET 2019][INFO] [SUB] InitializeEncoding is now (lazily) called
[Mon Jul 01 14:00:48 EET 2019][INFO] [SUB] InitializeEncoding is now (lazily) called
[Mon Jul 01 14:00:48 EET 2019][INFO] [SUB] ONLOAD PRISM_ES2
[Mon Jul 01 14:00:48 EET 2019][INFO] [SUB] ONLOAD PRISM_ES2
[Mon Jul 01 14:00:48 EET 2019][INFO] [SUB] Exception in Application start method
[Mon Jul 01 14:00:48 EET 2019][INFO] [SUB] Exception in Application start method

Thanks
Rahman

iOS 13 - text garbled

Hi,

I am currently experiencing with Gluon to target mobile devices (specially iOS ones). And I discovered that text is unreadable under iOS 13, it works fine when running on iOS 12.

See screenshot attached:
Simulator Screen Shot - iPhone 11 Pro - 2019-10-22 at 08 47 39

I did not find any other issue related to this, but feel free to close it if I am not reporting it at the right place.

Raspberry PI graalvm

Is there an equivalent of graalvm-svm-linux-20.1.0-ea+28 for raspberry pi 64-bit (ubuntu)?

Run error in Mac os

Exception in thread "JavaFX Application Thread" java.lang.NoClassDefFoundError: Could not initialize class com.sun.glass.ui.mac.MacAccessible
        at com.oracle.svm.core.hub.ClassInitializationInfo.initialize(ClassInitializationInfo.java:214)
        at java.lang.Class.ensureInitialized(DynamicHub.java:496)
        at com.sun.glass.ui.mac.MacApplication.createAccessible(MacApplication.java:259)
        at javafx.scene.Scene.getAccessible(Scene.java:6440)
        at javafx.scene.Scene$ScenePeerListener.getSceneAccessible(Scene.java:2869)
        at com.sun.javafx.tk.quantum.GlassViewEventHandler.getSceneAccessible(GlassViewEventHandler.java:1376)
        at com.sun.glass.ui.View.getAccessible(View.java:1117)
        at com.oracle.svm.jni.JNIJavaCallWrappers.jniInvoke_VARARGS:Lcom_sun_glass_ui_View_2_0002egetAccessible_00028_00029J(JNIJavaCallWrappers.java:0)

I had tried

<nativeImageArgs>
    <list>
        --initialize-at-run-time=com.sun.glass.ui.mac.MacAccessible
    </list>
</nativeImageArgs>

not working

HiDPI / GDK scale not working

I can build / compile and start a sample on my Linux x86_64 machine.

As my display uses high dpi (native resolution 3840x2160) and the build application does not use scaling automatically (would be nice) I tried to force a scaling of factory 2 by using the GDK_SCALE environment variable.

If this variable is set, I see an ongoing error reporting on the console and the UI elements are not shown correctly (at all).

nativeCompile setup steps fails for Android (with suggested Graal distribution)

When I try to build HelloFX sample using the suggested Graal distribution I get this result:

[Wed Apr 01 09:39:34 CEST 2020][INFO] ==================== COMPILE TASK ====================                                   
[Wed Apr 01 09:39:34 CEST 2020][INFO] We will now compile your code for aarch64-linux-android. This may take some time.
                                                                                                                                             
[Wed Apr 01 09:39:38 CEST 2020][INFO] [SUB] [hellofx.hellofx:95406]    classlist:   2,717.41 ms,  0.96 GB                                   
[Wed Apr 01 09:39:39 CEST 2020][INFO] [SUB] [hellofx.hellofx:95406]        (cap):     206.54 ms,  0.96 GB                                   
[Wed Apr 01 09:39:39 CEST 2020][INFO] [SUB] [hellofx.hellofx:95406]        setup:     732.43 ms,  0.96 GB         
[Wed Apr 01 09:39:39 CEST 2020][INFO] [SUB] Fatal error:java.lang.NumberFormatException                                                                                                                                                                                                   
[Wed Apr 01 09:39:39 CEST 2020][INFO] [SUB]     at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)                                                                                                                                               
[Wed Apr 01 09:39:39 CEST 2020][INFO] [SUB]     at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
[Wed Apr 01 09:39:39 CEST 2020][INFO] [SUB]     at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
[Wed Apr 01 09:39:39 CEST 2020][INFO] [SUB]     at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
[Wed Apr 01 09:39:39 CEST 2020][INFO] [SUB]     at java.base/java.util.concurrent.ForkJoinTask.getThrowableException(ForkJoinTask.java:603)
[Wed Apr 01 09:39:39 CEST 2020][INFO] [SUB]     at java.base/java.util.concurrent.ForkJoinTask.get(ForkJoinTask.java:1006)
[Wed Apr 01 09:39:39 CEST 2020][INFO] [SUB]     at com.oracle.svm.hosted.NativeImageGenerator.run(NativeImageGenerator.java:463)          
[Wed Apr 01 09:39:39 CEST 2020][INFO] [SUB]     at com.oracle.svm.hosted.NativeImageGeneratorRunner.buildImage(NativeImageGeneratorRunner.java:358)
[Wed Apr 01 09:39:39 CEST 2020][INFO] [SUB]     at com.oracle.svm.hosted.NativeImageGeneratorRunner.build(NativeImageGeneratorRunner.java:517)
[Wed Apr 01 09:39:39 CEST 2020][INFO] [SUB]     at com.oracle.svm.hosted.NativeImageGeneratorRunner.main(NativeImageGeneratorRunner.java:116) 
[Wed Apr 01 09:39:39 CEST 2020][INFO] [SUB]     at com.oracle.svm.hosted.NativeImageGeneratorRunner$JDK9Plus.main(NativeImageGeneratorRunner.java:544)
[Wed Apr 01 09:39:39 CEST 2020][INFO] [SUB] Caused by: java.lang.NumberFormatException: null                                                                                                                                                                                              
[Wed Apr 01 09:39:39 CEST 2020][INFO] [SUB]     at java.base/java.lang.Integer.parseInt(Integer.java:614)         
[Wed Apr 01 09:39:39 CEST 2020][INFO] [SUB]     at java.base/java.lang.Integer.parseInt(Integer.java:770)    
[Wed Apr 01 09:39:39 CEST 2020][INFO] [SUB]     at com.oracle.svm.hosted.c.query.QueryResultParser.parseIntegerProperty(QueryResultParser.java:232)
[Wed Apr 01 09:39:39 CEST 2020][INFO] [SUB]     at com.oracle.svm.hosted.c.query.QueryResultParser.visitStructFieldInfo(QueryResultParser.java:144)
[Wed Apr 01 09:39:39 CEST 2020][INFO] [SUB]     at com.oracle.svm.hosted.c.info.StructFieldInfo.accept(StructFieldInfo.java:74)
[Wed Apr 01 09:39:39 CEST 2020][INFO] [SUB]     at com.oracle.svm.hosted.c.info.InfoTreeVisitor.processChildren(InfoTreeVisitor.java:31)
[Wed Apr 01 09:39:39 CEST 2020][INFO] [SUB]     at com.oracle.svm.hosted.c.query.QueryResultParser.visitStructInfo(QueryResultParser.java:134)
[Wed Apr 01 09:39:39 CEST 2020][INFO] [SUB]     at com.oracle.svm.hosted.c.info.StructInfo.accept(StructInfo.java:62)
[Wed Apr 01 09:39:39 CEST 2020][INFO] [SUB]     at com.oracle.svm.hosted.c.info.InfoTreeVisitor.processChildren(InfoTreeVisitor.java:31)
[Wed Apr 01 09:39:39 CEST 2020][INFO] [SUB]     at com.oracle.svm.hosted.c.info.InfoTreeVisitor.visitNativeCodeInfo(InfoTreeVisitor.java:36)
[Wed Apr 01 09:39:39 CEST 2020][INFO] [SUB]     at com.oracle.svm.hosted.c.info.NativeCodeInfo.accept(NativeCodeInfo.java:57)
[Wed Apr 01 09:39:39 CEST 2020][INFO] [SUB]     at com.oracle.svm.hosted.c.query.QueryResultParser.parse(QueryResultParser.java:78)
[Wed Apr 01 09:39:39 CEST 2020][INFO] [SUB]     at com.oracle.svm.hosted.c.CAnnotationProcessorCache.get(CAnnotationProcessorCache.java:114)
[Wed Apr 01 09:39:39 CEST 2020][INFO] [SUB]     at com.oracle.svm.hosted.c.CAnnotationProcessor.process(CAnnotationProcessor.java:82)
[Wed Apr 01 09:39:39 CEST 2020][INFO] [SUB]     at com.oracle.svm.hosted.c.NativeLibraries.finish(NativeLibraries.java:389)
[Wed Apr 01 09:39:39 CEST 2020][INFO] [SUB]     at com.oracle.svm.hosted.NativeImageGenerator.processNativeLibraryImports(NativeImageGenerator.java:1538)
[Wed Apr 01 09:39:39 CEST 2020][INFO] [SUB]     at com.oracle.svm.hosted.NativeImageGenerator.setupNativeLibraries(NativeImageGenerator.java:1034)
[Wed Apr 01 09:39:39 CEST 2020][INFO] [SUB]     at com.oracle.svm.hosted.NativeImageGenerator.setupNativeImage(NativeImageGenerator.java:863) 
[Wed Apr 01 09:39:39 CEST 2020][INFO] [SUB]     at com.oracle.svm.hosted.NativeImageGenerator.doRun(NativeImageGenerator.java:536)
[Wed Apr 01 09:39:39 CEST 2020][INFO] [SUB]     at com.oracle.svm.hosted.NativeImageGenerator.lambda$run$0(NativeImageGenerator.java:451)
[Wed Apr 01 09:39:39 CEST 2020][INFO] [SUB]     at java.base/java.util.concurrent.ForkJoinTask$AdaptedRunnableAction.exec(ForkJoinTask.java:1407)
[Wed Apr 01 09:39:39 CEST 2020][INFO] [SUB]     at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
[Wed Apr 01 09:39:39 CEST 2020][INFO] [SUB]     at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020) 
[Wed Apr 01 09:39:39 CEST 2020][INFO] [SUB]     at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)
[Wed Apr 01 09:39:39 CEST 2020][INFO] [SUB]     at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)
[Wed Apr 01 09:39:39 CEST 2020][INFO] [SUB]     at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:177)
[Wed Apr 01 09:39:39 CEST 2020][INFO] [SUB] Error: Image build request failed with exit status 1

> Task :nativeCompile
[Wed Apr 01 09:39:39 CEST 2020][SEVERE] Process compile failed with result: 1
Check the log files under /opt/sources/eclipse.git/client-samples/Gradle/HelloFX/build/client/aarch64-android/gvm/log
And please check https://docs.gluonhq.com/client/ for more information.
[Wed Apr 01 09:39:39 CEST 2020][INFO] Logging process [compile] to file: /opt/sources/eclipse.git/client-samples/Gradle/HelloFX/target/client/log/process-compile-1585726779098.log
[Wed Apr 01 09:39:39 CEST 2020][SEVERE] Compiling failed.
Check the log files under /opt/sources/eclipse.git/client-samples/Gradle/HelloFX/build/client/aarch64-android/gvm/log
And please check https://docs.gluonhq.com/client/ for more information.

> Task :nativeCompile FAILED

Using the official CE 20.0.0 distribution of Graal gets past this point.

HelloGluon: iOS blank screen upon launch

Using macOS 10.15.3 Beta (19D49f) to successfully build and run on iPad Air 2 both hellofx and hellofxml. When it comes too running hellogluon I get a blank screen upon application launch (no errors on output); it runs ok on macOS though. Any thoughts?

Unable to run examples from IntelliJ IDEA

I am testing with the Maven HelloFX sample. I can run the sample on the command line using mvn javafx:run. However, when I try to run from IntelliJ IDEA, I get:

Exception in Application start method
java.lang.reflect.InvocationTargetException
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at javafx.graphics/com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(LauncherImpl.java:464)
	at javafx.graphics/com.sun.javafx.application.LauncherImpl.launchApplication(LauncherImpl.java:363)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at java.base/sun.launcher.LauncherHelper$FXHelper.main(LauncherHelper.java:1051)
Caused by: java.lang.RuntimeException: Exception in Application start method
	at javafx.graphics/com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:900)
	at javafx.graphics/com.sun.javafx.application.LauncherImpl.lambda$launchApplication$2(LauncherImpl.java:195)
	at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.lang.IllegalAccessError: superclass access check failed: class com.sun.javafx.scene.control.ControlHelper (in unnamed module @0xabf121a) cannot access class com.sun.javafx.scene.layout.RegionHelper (in module javafx.graphics) because module javafx.graphics does not export com.sun.javafx.scene.layout to unnamed module @0xabf121a
	at java.base/java.lang.ClassLoader.defineClass1(Native Method)
	at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1016)
	at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:174)
	at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:802)
	at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:700)
	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:623)
	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
	at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
	at javafx.scene.control.Control.<clinit>(Control.java:86)
	at hellofx.HelloFX.start(HelloFX.java:18)
	at javafx.graphics/com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$9(LauncherImpl.java:846)
	at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runAndWait$12(PlatformImpl.java:455)
	at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:428)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:427)
	at javafx.graphics/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96)
Exception running application hellofx.HelloFX

In both cases, I am using OpenJDK 11.0.2. I saw https://stackoverflow.com/questions/53600855/invocationtargetexception-when-trying-to-run-a-javafx-program but not sure if it is related, and it is also not clear what the solution is there.

Cannot create Mac executable

Output of running the Gradle HelloFX project's nativeBuild task:

> Task :nativeCompile
SVMBridge, osname = Mac OS X
gvmDir = /Users/renato/programming/experiments/client-samples/Gradle/HelloFX/build/client/gvm
Compiling additional sources to /Users/renato/programming/experiments/client-samples/Gradle/HelloFX/build/client/mac/HelloFX
Looking for /native/macosx/AppDelegate.m
answer = sun.net.www.protocol.jar.JarURLConnection$JarURLInputStream@1881242d
Looking for /native/macosx/AppDelegate.h
answer = sun.net.www.protocol.jar.JarURLConnection$JarURLInputStream@215114e2
Looking for /native/macosx/launcher.c
answer = sun.net.www.protocol.jar.JarURLConnection$JarURLInputStream@591962af
java.lang.RuntimeException: Couldn't find a relevant iOS SDK. Please mail [email protected] with the contents of /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs
        at com.gluonhq.omega.target.DarwinTargetConfiguration$SdkDirType.getSdkDir(DarwinTargetConfiguration.java:76)
        at com.gluonhq.omega.target.DarwinTargetConfiguration$SdkDirType.getSDKPath(DarwinTargetConfiguration.java:66)
        at com.gluonhq.omega.target.MacosTargetConfiguration.compileAdditionalSources(MacosTargetConfiguration.java:408)
        at com.gluonhq.omega.target.AbstractTargetConfiguration.compile(AbstractTargetConfiguration.java:306)
        at com.gluonhq.omega.Omega.nativeCompile(Omega.java:91)
        at com.gluonhq.gradle.tasks.ConfigBuild.build(ConfigBuild.java:124)
        at com.gluonhq.gradle.tasks.ClientNativeCompile.action(ClientNativeCompile.java:54)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:103)
        at org.gradle.api.internal.project.taskfactory.StandardTaskAction.doExecute(StandardTaskAction.java:48)
        at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:41)
        at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:28)
        at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:701)
        at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:668)
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$4.run(ExecuteActionsTaskExecuter.java:337)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:402)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:394)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:165)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:250)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:158)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:92)
        at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:326)
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:311)
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.access$200(ExecuteActionsTaskExecuter.java:75)
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$TaskExecution.execute(ExecuteActionsTaskExecuter.java:158)
        at org.gradle.internal.execution.impl.steps.ExecuteStep.execute(ExecuteStep.java:46)
        at org.gradle.internal.execution.impl.steps.CancelExecutionStep.execute(CancelExecutionStep.java:34)
        at org.gradle.internal.execution.impl.steps.TimeoutStep.executeWithoutTimeout(TimeoutStep.java:69)
        at org.gradle.internal.execution.impl.steps.TimeoutStep.execute(TimeoutStep.java:49)
        at org.gradle.internal.execution.impl.steps.CatchExceptionStep.execute(CatchExceptionStep.java:34)
        at org.gradle.internal.execution.impl.steps.CreateOutputsStep.execute(CreateOutputsStep.java:49)
        at org.gradle.internal.execution.impl.steps.SnapshotOutputStep.execute(SnapshotOutputStep.java:42)
        at org.gradle.internal.execution.impl.steps.SnapshotOutputStep.execute(SnapshotOutputStep.java:28)
        at org.gradle.internal.execution.impl.steps.CacheStep.executeWithoutCache(CacheStep.java:136)
        at org.gradle.internal.execution.impl.steps.CacheStep.execute(CacheStep.java:60)
        at org.gradle.internal.execution.impl.steps.CacheStep.execute(CacheStep.java:37)
        at org.gradle.internal.execution.impl.steps.PrepareCachingStep.execute(PrepareCachingStep.java:33)
        at org.gradle.internal.execution.impl.steps.StoreSnapshotsStep.execute(StoreSnapshotsStep.java:38)
        at org.gradle.internal.execution.impl.steps.StoreSnapshotsStep.execute(StoreSnapshotsStep.java:23)
        at org.gradle.internal.execution.impl.steps.SkipUpToDateStep.executeBecause(SkipUpToDateStep.java:95)
        at org.gradle.internal.execution.impl.steps.SkipUpToDateStep.lambda$execute$0(SkipUpToDateStep.java:88)
        at java.base/java.util.Optional.map(Optional.java:265)
        at org.gradle.internal.execution.impl.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:52)
        at org.gradle.internal.execution.impl.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:36)
        at org.gradle.internal.execution.impl.DefaultWorkExecutor.execute(DefaultWorkExecutor.java:34)
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:109)
        at org.gradle.api.internal.tasks.execution.ResolveIncrementalChangesTaskExecuter.execute(ResolveIncrementalChangesTaskExecuter.java:84)
        at org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.java:92)
        at org.gradle.api.internal.tasks.execution.ResolveBeforeExecutionStateTaskExecuter.execute(ResolveBeforeExecutionStateTaskExecuter.java:75)
        at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)
        at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:110)
        at org.gradle.api.internal.tasks.execution.ResolveBeforeExecutionOutputsTaskExecuter.execute(ResolveBeforeExecutionOutputsTaskExecuter.java:67)
        at org.gradle.api.internal.tasks.execution.ResolveAfterPreviousExecutionStateTaskExecuter.execute(ResolveAfterPreviousExecutionStateTaskExecuter.java:46)
        at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:94)
        at org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute(FinalizePropertiesTaskExecuter.java:46)
        at org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter.execute(ResolveTaskExecutionModeExecuter.java:95)
        at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:57)
        at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:56)
        at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:36)
        at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.executeTask(EventFiringTaskExecuter.java:63)
        at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:49)
        at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:46)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:416)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:406)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:165)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:250)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:158)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:102)
        at org.gradle.internal.operations.DelegatingBuildOperationExecutor.call(DelegatingBuildOperationExecutor.java:36)
        at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:46)
        at org.gradle.execution.plan.LocalTaskNodeExecutor.execute(LocalTaskNodeExecutor.java:43)
        at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:355)
        at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:343)
        at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:336)
        at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:322)
        at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker$1.execute(DefaultPlanExecutor.java:134)
        at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker$1.execute(DefaultPlanExecutor.java:129)
        at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.execute(DefaultPlanExecutor.java:202)
        at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.executeNextNode(DefaultPlanExecutor.java:193)
        at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.run(DefaultPlanExecutor.java:129)
        at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)
        at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
        at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
        at java.base/java.lang.Thread.run(Thread.java:834)

> Task :nativeLink
gvmDir = /Users/renato/programming/experiments/client-samples/Gradle/HelloFX/build/client/gvm
Process zips done
java.nio.file.NoSuchFileException: /Users/renato/programming/experiments/client-samples/Gradle/HelloFX/build/client/gvm/tmp
        at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:92)
        at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
        at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:116)
        at java.base/sun.nio.fs.UnixFileAttributeViews$Basic.readAttributes(UnixFileAttributeViews.java:55)
        at java.base/sun.nio.fs.UnixFileSystemProvider.readAttributes(UnixFileSystemProvider.java:145)
        at java.base/java.nio.file.Files.readAttributes(Files.java:1763)
        at java.base/java.nio.file.FileTreeWalker.getAttributes(FileTreeWalker.java:225)
        at java.base/java.nio.file.FileTreeWalker.visit(FileTreeWalker.java:276)
        at java.base/java.nio.file.FileTreeWalker.walk(FileTreeWalker.java:322)
        at java.base/java.nio.file.Files.walkFileTree(Files.java:2716)
        at com.gluonhq.omega.util.FileOps.findObject(FileOps.java:137)
        at com.gluonhq.omega.target.MacosTargetConfiguration.link(MacosTargetConfiguration.java:428)
        at com.gluonhq.omega.Omega.nativeLink(Omega.java:107)
        at com.gluonhq.gradle.tasks.ClientNativeLink.action(ClientNativeLink.java:65)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:103)
        at org.gradle.api.internal.project.taskfactory.StandardTaskAction.doExecute(StandardTaskAction.java:48)
        at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:41)
        at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:28)
        at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:701)
        at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:668)
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$4.run(ExecuteActionsTaskExecuter.java:337)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:402)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:394)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:165)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:250)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:158)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:92)
        at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:326)
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:311)
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.access$200(ExecuteActionsTaskExecuter.java:75)
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$TaskExecution.execute(ExecuteActionsTaskExecuter.java:158)
        at org.gradle.internal.execution.impl.steps.ExecuteStep.execute(ExecuteStep.java:46)
        at org.gradle.internal.execution.impl.steps.CancelExecutionStep.execute(CancelExecutionStep.java:34)
        at org.gradle.internal.execution.impl.steps.TimeoutStep.executeWithoutTimeout(TimeoutStep.java:69)
        at org.gradle.internal.execution.impl.steps.TimeoutStep.execute(TimeoutStep.java:49)
        at org.gradle.internal.execution.impl.steps.CatchExceptionStep.execute(CatchExceptionStep.java:34)
        at org.gradle.internal.execution.impl.steps.CreateOutputsStep.execute(CreateOutputsStep.java:49)
        at org.gradle.internal.execution.impl.steps.SnapshotOutputStep.execute(SnapshotOutputStep.java:42)
        at org.gradle.internal.execution.impl.steps.SnapshotOutputStep.execute(SnapshotOutputStep.java:28)
        at org.gradle.internal.execution.impl.steps.CacheStep.executeWithoutCache(CacheStep.java:136)
        at org.gradle.internal.execution.impl.steps.CacheStep.execute(CacheStep.java:60)
        at org.gradle.internal.execution.impl.steps.CacheStep.execute(CacheStep.java:37)
        at org.gradle.internal.execution.impl.steps.PrepareCachingStep.execute(PrepareCachingStep.java:33)
        at org.gradle.internal.execution.impl.steps.StoreSnapshotsStep.execute(StoreSnapshotsStep.java:38)
        at org.gradle.internal.execution.impl.steps.StoreSnapshotsStep.execute(StoreSnapshotsStep.java:23)
        at org.gradle.internal.execution.impl.steps.SkipUpToDateStep.executeBecause(SkipUpToDateStep.java:95)
        at org.gradle.internal.execution.impl.steps.SkipUpToDateStep.lambda$execute$0(SkipUpToDateStep.java:88)
        at java.base/java.util.Optional.map(Optional.java:265)
        at org.gradle.internal.execution.impl.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:52)
        at org.gradle.internal.execution.impl.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:36)
        at org.gradle.internal.execution.impl.DefaultWorkExecutor.execute(DefaultWorkExecutor.java:34)
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:109)
        at org.gradle.api.internal.tasks.execution.ResolveIncrementalChangesTaskExecuter.execute(ResolveIncrementalChangesTaskExecuter.java:84)
        at org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.java:92)
        at org.gradle.api.internal.tasks.execution.ResolveBeforeExecutionStateTaskExecuter.execute(ResolveBeforeExecutionStateTaskExecuter.java:75)
        at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)
        at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:110)
        at org.gradle.api.internal.tasks.execution.ResolveBeforeExecutionOutputsTaskExecuter.execute(ResolveBeforeExecutionOutputsTaskExecuter.java:67)
        at org.gradle.api.internal.tasks.execution.ResolveAfterPreviousExecutionStateTaskExecuter.execute(ResolveAfterPreviousExecutionStateTaskExecuter.java:46)
        at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:94)
        at org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute(FinalizePropertiesTaskExecuter.java:46)
        at org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter.execute(ResolveTaskExecutionModeExecuter.java:95)
        at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:57)
        at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:56)
        at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:36)
        at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.executeTask(EventFiringTaskExecuter.java:63)
        at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:49)
        at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:46)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:416)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:406)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:165)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:250)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:158)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:102)
        at org.gradle.internal.operations.DelegatingBuildOperationExecutor.call(DelegatingBuildOperationExecutor.java:36)
        at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:46)
        at org.gradle.execution.plan.LocalTaskNodeExecutor.execute(LocalTaskNodeExecutor.java:43)
        at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:355)
        at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:343)
        at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:336)
        at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:322)
        at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker$1.execute(DefaultPlanExecutor.java:134)
        at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker$1.execute(DefaultPlanExecutor.java:129)
        at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.execute(DefaultPlanExecutor.java:202)
        at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.executeNextNode(DefaultPlanExecutor.java:193)
        at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.run(DefaultPlanExecutor.java:129)
        at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)
        at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
        at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
        at java.base/java.lang.Thread.run(Thread.java:834)

BUILD SUCCESSFUL in 1m 3s
5 actionable tasks: 5 executed

Admitedly, I don't have XCode installed. The need for that is not documented at https://docs.gluonhq.com/client/#_the_gluon_client_plugin_for_gradle, maybe it should?

Resource file in json format not found after client-maven-plugin build

I added a settings.json file to my resources folder and I can access it when I run my maven project using the basic mvn javafx:run. I also successfully built the executable file using client-maven-plugin version 0.1.24. Unfortunately, when I run the built executable file, I always get the error message settings.json (The system cannot find the file specified). The code snippet is very simple:

try{
Reader reader = new FileReader(App.class.getResource("/settings.json").getFile());
...
}catch(IOException e){
System.out.println(e.getMessage());
}

I just can't see where I have gotten anything wrong. Besides, it works with mvn javafx:run. Is this a bug or is there an extra configuration missing?

Exe generate by the plugin is not running in some cases

Hi there,

This is related to #88 but not the same

Using the client-maven-plugin version 0.1.27 I am able to generate an exe file for a very simple sample which is consist of an HBox with a button all inside a StackPane as the root pane of scene.

The exe when launched does nothing if I depend the project on javafx-controls version 14.0.1 but it works if depending on version 14.

The weird thing is that if I use TableView it is simply not working (exe generated) using javafx-conrols version 14. The source code and pom.xml content are inserted here.

My machine settings are:
Windows 8
openjdk version "11.0.1" 2018-10-16
graalvm-ce-java11-windows-amd64-20.2.0

The App.java source code

package com.mycompany.gluonnew;

import javafx.application.Application;
import javafx.beans.property.SimpleObjectProperty;
import javafx.scene.Scene;
import javafx.scene.control.TableCell;
import javafx.scene.control.TableColumn;
import javafx.scene.control.TableView;
import javafx.scene.layout.StackPane;
import javafx.stage.Stage;

/**
 * JavaFX App
 */
public class App extends Application
{
//    private TableView<X> table;

    public static class X
    {
        int a;

        public X(int a)
        {
            this.a = a;
        }

        public int getId()
        {
            return a;
        }

        public void setA(int a)
        {
            this.a = a;
        }

    }

    @Override
    public void start(Stage stage)
    {

        TableView<X> table = new TableView<>();
        for (int i = 0; i < 100; i++) {
            TableColumn<X, Integer> a = new TableColumn<>("A" + i);
            a.setCellValueFactory(p -> new SimpleObjectProperty<>(p.getValue().getId()));
            a.setCellFactory((TableColumn<X, Integer> p) -> new TableCell<>()
            {
                @Override
                protected void updateItem(Integer item, boolean empty)
                {
                    if (empty || item == null)
                        super.updateItem(item, empty);
                    else
                        setText(item + "");
                }

            });

            table.getColumns().add(a);
        }
        for (int i = 0; i < 100; i++) {
            table.getItems().add(new X(i));
        }
        var scene = new Scene(new StackPane(table), 640, 480);
        stage.setScene(scene);
        stage.show();
    }

    public static void main(String[] args)
    {
        launch();
    }

}

The pom.xml file

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <groupId>com.mycompany</groupId>
    <artifactId>GluonNew</artifactId>
    <version>1.0-SNAPSHOT</version>
    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <maven.compiler.source>11</maven.compiler.source>
        <maven.compiler.target>11</maven.compiler.target>
    </properties>
    <dependencies>
        <dependency>
            <groupId>org.openjfx</groupId>
            <artifactId>javafx-controls</artifactId>
            <version>14</version>
        </dependency>
    </dependencies>
    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.8.0</version>
                <configuration>
                    <release>11</release>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.openjfx</groupId>
                <artifactId>javafx-maven-plugin</artifactId>
                <version>0.0.4</version>
                <configuration>
                    <mainClass>com.mycompany.gluonnew.App</mainClass>
                </configuration>
            </plugin>
            <plugin>
                <groupId>com.gluonhq</groupId>
                <artifactId>client-maven-plugin</artifactId>
                <version>0.1.27</version>
                <configuration>
                    <mainClass>com.mycompany.gluonnew.App</mainClass>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>

Would you please help me on this?

type is not available in this platform

I am trying to add the Gluon client plugin to the sample from openjfx, but running mvn client:compile gives the following exception:

SUB] [hellofx:42070]     analysis:  15,648.12 ms
[SUB] Warning: Aborting stand-alone image build. Unsupported features in 2 methods
[SUB] Detailed message:
[SUB] Error: type is not available in this platform: com.oracle.svm.hosted.c.CGlobalDataFeature
[SUB] Trace:    object java.lang.Class[]
[SUB]   object java.lang.invoke.MethodType
[SUB]   object java.lang.invoke.MethodType$ConcurrentWeakInternSet$WeakEntry
[SUB]   object java.util.concurrent.ConcurrentHashMap$Node
[SUB]   object java.util.concurrent.ConcurrentHashMap$Node[]
[SUB]   object java.util.concurrent.ConcurrentHashMap
[SUB]   object java.lang.invoke.MethodType$ConcurrentWeakInternSet
[SUB]   method java.lang.invoke.MethodType.makeImpl(Class, Class[], boolean)
[SUB] Call path from entry point to java.lang.invoke.MethodType.makeImpl(Class, Class[], boolean): 
[SUB]   at [email protected]/java.lang.invoke.MethodType.makeImpl(MethodType.java:307)
[SUB]   at [email protected]/java.lang.invoke.MethodType.methodType(MethodType.java:212)
[SUB]   at [email protected]/java.lang.invoke.VarHandle$AccessType.accessModeType(VarHandle.java:1569)
[SUB]   at [email protected]/java.lang.invoke.VarHandleReferences$FieldInstanceReadOnly.accessModeTypeUncached(VarHandleReferences.java:59)
[SUB]   at [email protected]/java.lang.invoke.VarHandle.accessModeType(VarHandle.java:1919)
[SUB]   at [email protected]/java.lang.invoke.VarHandle.varType(VarHandle.java:1886)
[SUB]   at [email protected]/java.lang.invoke.VarHandle.toString(VarHandle.java:1876)
[SUB]   at [email protected]/java.lang.String.valueOf(String.java:3042)
[SUB]   at [email protected]/java.io.PrintStream.print(PrintStream.java:745)
[SUB]   at [email protected]/java.io.PrintStream.println(PrintStream.java:882)
[SUB]   at app//com.oracle.svm.jni.functions.JNIFunctions.ExceptionDescribe(JNIFunctions.java:759)
[SUB]   at com.oracle.svm.core.code.IsolateEnterStub.JNIFunctions_ExceptionDescribe_b5412f7570bccae90b000bc37855f00408b2ad73(generated:0)
[SUB] Error: type is not available in this platform: com.oracle.svm.hosted.code.CFunctionCallStubMethod
[SUB] Trace:    object java.lang.invoke.MethodType
[SUB]   object java.lang.invoke.MethodType$ConcurrentWeakInternSet$WeakEntry
[SUB]   object java.util.concurrent.ConcurrentHashMap$Node
[SUB]   object java.util.concurrent.ConcurrentHashMap$Node[]
[SUB]   object java.util.concurrent.ConcurrentHashMap
[SUB]   object java.lang.invoke.MethodType$ConcurrentWeakInternSet
[SUB]   method java.lang.invoke.MethodType.makeImpl(Class, Class[], boolean)
[SUB] Call path from entry point to java.lang.invoke.MethodType.makeImpl(Class, Class[], boolean): 
[SUB]   at [email protected]/java.lang.invoke.MethodType.makeImpl(MethodType.java:307)
[SUB]   at [email protected]/java.lang.invoke.MethodType.methodType(MethodType.java:212)
[SUB]   at [email protected]/java.lang.invoke.VarHandle$AccessType.accessModeType(VarHandle.java:1569)
[SUB]   at [email protected]/java.lang.invoke.VarHandleReferences$FieldInstanceReadOnly.accessModeTypeUncached(VarHandleReferences.java:59)
[SUB]   at [email protected]/java.lang.invoke.VarHandle.accessModeType(VarHandle.java:1919)
[SUB]   at [email protected]/java.lang.invoke.VarHandle.varType(VarHandle.java:1886)
[SUB]   at [email protected]/java.lang.invoke.VarHandle.toString(VarHandle.java:1876)
[SUB]   at [email protected]/java.lang.String.valueOf(String.java:3042)
[SUB]   at [email protected]/java.io.PrintStream.print(PrintStream.java:745)
[SUB]   at [email protected]/java.io.PrintStream.println(PrintStream.java:882)
[SUB]   at app//com.oracle.svm.jni.functions.JNIFunctions.ExceptionDescribe(JNIFunctions.java:759)
[SUB]   at com.oracle.svm.core.code.IsolateEnterStub.JNIFunctions_ExceptionDescribe_b5412f7570bccae90b000bc37855f00408b2ad73(generated:0)
[SUB] 
[SUB] com.oracle.svm.hosted.FallbackFeature$FallbackImageRequest: Aborting stand-alone image build. Unsupported features in 2 methods
[SUB] Detailed message:
[SUB] Error: type is not available in this platform: com.oracle.svm.hosted.c.CGlobalDataFeature
[SUB] Trace:    object java.lang.Class[]
[SUB]   object java.lang.invoke.MethodType
[SUB]   object java.lang.invoke.MethodType$ConcurrentWeakInternSet$WeakEntry
[SUB]   object java.util.concurrent.ConcurrentHashMap$Node
[SUB]   object java.util.concurrent.ConcurrentHashMap$Node[]
[SUB]   object java.util.concurrent.ConcurrentHashMap
[SUB]   object java.lang.invoke.MethodType$ConcurrentWeakInternSet
[SUB]   method java.lang.invoke.MethodType.makeImpl(Class, Class[], boolean)
[SUB] Call path from entry point to java.lang.invoke.MethodType.makeImpl(Class, Class[], boolean): 
[SUB]   at [email protected]/java.lang.invoke.MethodType.makeImpl(MethodType.java:307)
[SUB]   at [email protected]/java.lang.invoke.MethodType.methodType(MethodType.java:212)
[SUB]   at [email protected]/java.lang.invoke.VarHandle$AccessType.accessModeType(VarHandle.java:1569)
[SUB]   at [email protected]/java.lang.invoke.VarHandleReferences$FieldInstanceReadOnly.accessModeTypeUncached(VarHandleReferences.java:59)
[SUB]   at [email protected]/java.lang.invoke.VarHandle.accessModeType(VarHandle.java:1919)
[SUB]   at [email protected]/java.lang.invoke.VarHandle.varType(VarHandle.java:1886)
[SUB]   at [email protected]/java.lang.invoke.VarHandle.toString(VarHandle.java:1876)
[SUB]   at [email protected]/java.lang.String.valueOf(String.java:3042)
[SUB]   at [email protected]/java.io.PrintStream.print(PrintStream.java:745)
[SUB]   at [email protected]/java.io.PrintStream.println(PrintStream.java:882)
[SUB]   at app//com.oracle.svm.jni.functions.JNIFunctions.ExceptionDescribe(JNIFunctions.java:759)
[SUB]   at com.oracle.svm.core.code.IsolateEnterStub.JNIFunctions_ExceptionDescribe_b5412f7570bccae90b000bc37855f00408b2ad73(generated:0)
[SUB] Error: type is not available in this platform: com.oracle.svm.hosted.code.CFunctionCallStubMethod
[SUB] Trace:    object java.lang.invoke.MethodType
[SUB]   object java.lang.invoke.MethodType$ConcurrentWeakInternSet$WeakEntry
[SUB]   object java.util.concurrent.ConcurrentHashMap$Node
[SUB]   object java.util.concurrent.ConcurrentHashMap$Node[]
[SUB]   object java.util.concurrent.ConcurrentHashMap
[SUB]   object java.lang.invoke.MethodType$ConcurrentWeakInternSet
[SUB]   method java.lang.invoke.MethodType.makeImpl(Class, Class[], boolean)
[SUB] Call path from entry point to java.lang.invoke.MethodType.makeImpl(Class, Class[], boolean): 
[SUB]   at [email protected]/java.lang.invoke.MethodType.makeImpl(MethodType.java:307)
[SUB]   at [email protected]/java.lang.invoke.MethodType.methodType(MethodType.java:212)
[SUB]   at [email protected]/java.lang.invoke.VarHandle$AccessType.accessModeType(VarHandle.java:1569)
[SUB]   at [email protected]/java.lang.invoke.VarHandleReferences$FieldInstanceReadOnly.accessModeTypeUncached(VarHandleReferences.java:59)
[SUB]   at [email protected]/java.lang.invoke.VarHandle.accessModeType(VarHandle.java:1919)
[SUB]   at [email protected]/java.lang.invoke.VarHandle.varType(VarHandle.java:1886)
[SUB]   at [email protected]/java.lang.invoke.VarHandle.toString(VarHandle.java:1876)
[SUB]   at [email protected]/java.lang.String.valueOf(String.java:3042)
[SUB]   at [email protected]/java.io.PrintStream.print(PrintStream.java:745)
[SUB]   at [email protected]/java.io.PrintStream.println(PrintStream.java:882)
[SUB]   at app//com.oracle.svm.jni.functions.JNIFunctions.ExceptionDescribe(JNIFunctions.java:759)
[SUB]   at com.oracle.svm.core.code.IsolateEnterStub.JNIFunctions_ExceptionDescribe_b5412f7570bccae90b000bc37855f00408b2ad73(generated:0)
[SUB] 
[SUB]   at com.oracle.svm.hosted.FallbackFeature.reportFallback(FallbackFeature.java:208)
[SUB]   at com.oracle.svm.hosted.FallbackFeature.reportAsFallback(FallbackFeature.java:218)
[SUB]   at com.oracle.svm.hosted.NativeImageGenerator.runPointsToAnalysis(NativeImageGenerator.java:732)
[SUB]   at com.oracle.svm.hosted.NativeImageGenerator.doRun(NativeImageGenerator.java:522)
[SUB]   at com.oracle.svm.hosted.NativeImageGenerator.lambda$run$0(NativeImageGenerator.java:440)
[SUB]   at java.base/java.util.concurrent.ForkJoinTask$AdaptedRunnableAction.exec(ForkJoinTask.java:1406)
[SUB]   at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
[SUB]   at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020)
[SUB]   at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)
[SUB]   at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)
[SUB]   at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:177)
[SUB] Caused by: com.oracle.graal.pointsto.constraints.UnsupportedFeatureException: Unsupported features in 2 methods
[SUB] Detailed message:
[SUB] Error: type is not available in this platform: com.oracle.svm.hosted.c.CGlobalDataFeature
[SUB] Trace:    object java.lang.Class[]
[SUB]   object java.lang.invoke.MethodType
[SUB]   object java.lang.invoke.MethodType$ConcurrentWeakInternSet$WeakEntry
[SUB]   object java.util.concurrent.ConcurrentHashMap$Node
[SUB]   object java.util.concurrent.ConcurrentHashMap$Node[]
[SUB]   object java.util.concurrent.ConcurrentHashMap
[SUB]   object java.lang.invoke.MethodType$ConcurrentWeakInternSet
[SUB]   method java.lang.invoke.MethodType.makeImpl(Class, Class[], boolean)
[SUB] Call path from entry point to java.lang.invoke.MethodType.makeImpl(Class, Class[], boolean): 
[SUB]   at [email protected]/java.lang.invoke.MethodType.makeImpl(MethodType.java:307)
[SUB]   at [email protected]/java.lang.invoke.MethodType.methodType(MethodType.java:212)
[SUB]   at [email protected]/java.lang.invoke.VarHandle$AccessType.accessModeType(VarHandle.java:1569)
[SUB]   at [email protected]/java.lang.invoke.VarHandleReferences$FieldInstanceReadOnly.accessModeTypeUncached(VarHandleReferences.java:59)
[SUB]   at [email protected]/java.lang.invoke.VarHandle.accessModeType(VarHandle.java:1919)
[SUB]   at [email protected]/java.lang.invoke.VarHandle.varType(VarHandle.java:1886)
[SUB]   at [email protected]/java.lang.invoke.VarHandle.toString(VarHandle.java:1876)
[SUB]   at [email protected]/java.lang.String.valueOf(String.java:3042)
[SUB]   at [email protected]/java.io.PrintStream.print(PrintStream.java:745)
[SUB]   at [email protected]/java.io.PrintStream.println(PrintStream.java:882)
[SUB]   at app//com.oracle.svm.jni.functions.JNIFunctions.ExceptionDescribe(JNIFunctions.java:759)
[SUB]   at com.oracle.svm.core.code.IsolateEnterStub.JNIFunctions_ExceptionDescribe_b5412f7570bccae90b000bc37855f00408b2ad73(generated:0)
[SUB] Error: type is not available in this platform: com.oracle.svm.hosted.code.CFunctionCallStubMethod
[SUB] Trace:    object java.lang.invoke.MethodType
[SUB]   object java.lang.invoke.MethodType$ConcurrentWeakInternSet$WeakEntry
[SUB]   object java.util.concurrent.ConcurrentHashMap$Node
[SUB]   object java.util.concurrent.ConcurrentHashMap$Node[]
[SUB]   object java.util.concurrent.ConcurrentHashMap
[SUB]   object java.lang.invoke.MethodType$ConcurrentWeakInternSet
[SUB]   method java.lang.invoke.MethodType.makeImpl(Class, Class[], boolean)
[SUB] Call path from entry point to java.lang.invoke.MethodType.makeImpl(Class, Class[], boolean): 
[SUB]   at [email protected]/java.lang.invoke.MethodType.makeImpl(MethodType.java:307)
[SUB]   at [email protected]/java.lang.invoke.MethodType.methodType(MethodType.java:212)
[SUB]   at [email protected]/java.lang.invoke.VarHandle$AccessType.accessModeType(VarHandle.java:1569)
[SUB]   at [email protected]/java.lang.invoke.VarHandleReferences$FieldInstanceReadOnly.accessModeTypeUncached(VarHandleReferences.java:59)
[SUB]   at [email protected]/java.lang.invoke.VarHandle.accessModeType(VarHandle.java:1919)
[SUB]   at [email protected]/java.lang.invoke.VarHandle.varType(VarHandle.java:1886)
[SUB]   at [email protected]/java.lang.invoke.VarHandle.toString(VarHandle.java:1876)
[SUB]   at [email protected]/java.lang.String.valueOf(String.java:3042)
[SUB]   at [email protected]/java.io.PrintStream.print(PrintStream.java:745)
[SUB]   at [email protected]/java.io.PrintStream.println(PrintStream.java:882)
[SUB]   at app//com.oracle.svm.jni.functions.JNIFunctions.ExceptionDescribe(JNIFunctions.java:759)
[SUB]   at com.oracle.svm.core.code.IsolateEnterStub.JNIFunctions_ExceptionDescribe_b5412f7570bccae90b000bc37855f00408b2ad73(generated:0)
[SUB] 
[SUB]   at com.oracle.graal.pointsto.constraints.UnsupportedFeatures.report(UnsupportedFeatures.java:133)
[SUB]   at com.oracle.graal.pointsto.BigBang.finish(BigBang.java:565)
[SUB]   at com.oracle.svm.hosted.NativeImageGenerator.runPointsToAnalysis(NativeImageGenerator.java:683)
[SUB]   ... 8 more
java.lang.RuntimeException: Error compiling
        at com.gluonhq.omega.SVMBridge.compile(SVMBridge.java:306)
        at com.gluonhq.omega.target.MacosTargetConfiguration.compileApplication(MacosTargetConfiguration.java:411)
        at com.gluonhq.omega.target.AbstractTargetConfiguration.compile(AbstractTargetConfiguration.java:311)
        at com.gluonhq.omega.Omega.nativeCompile(Omega.java:91)
        at com.gluonhq.NativeCompileMojo.execute(NativeCompileMojo.java:73)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:210)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:156)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148)
        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:305)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:192)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:105)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:956)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:192)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:567)
        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:  25.072 s
[INFO] Finished at: 2019-06-18T14:59:15+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.gluonhq:client-maven-plugin:0.0.9:compile (default-cli) on project hellofx: Error: Error compiling -> [Help 1]
[ERROR] 

I have attached a zip file with the source code I am using.
hellofx-sample.zip

This is the gluon client plugin config in Maven I am using:

            <plugin>
                <groupId>com.gluonhq</groupId>
                <artifactId>client-maven-plugin</artifactId>
                <version>0.0.9</version>
                <configuration>
                    <!-- Uncomment to run on iOS: -->
                    <!-- <target>ios</target>-->
                    <mainClass>${mainClassName}</mainClass>
                    <bundlesList>
                    </bundlesList>
                    <reflectionList>
                        <list>javafx.fxml.FXMLLoader</list>
                        <list>org.openjfx.PrimaryController</list>
                        <list>org.openjfx.SecondaryController</list>
                        <list>javafx.scene.control.Button</list>
                        <list>javafx.scene.control.Label</list>
                        <list>javafx.scene.layout.VBox</list>
                        <list>javafx.geometry.Insets</list>
                    </reflectionList>
                </configuration>
            </plugin>

Will performance on Android improve due to GraalVM..?

Hi,

I did compile and test about half of the Gluon samples on older Android devices: https://gluonhq.com/developers/samples

Those devices run a current version of Android (7.1 and 8.1) and run other apps like Chrome, Instagram & Twitter very quickly. Fast startup. Basically no lag.

With the Gluon samples I have very long startup times even if the device is IDLE. Even worse the UI feels very sluggish due to a lot of very noticeable lag. This is no fun.

I hoped the "Gluon Mobile with Gluon VM" samples would improve things. Sadly they don't.

What is the technical reason the startup time is so long and the UI so very sluggish with Gluon apps? Am I the first person to bring this up? Even on my flashship smartphone (S10) I feel a little lag with Gluon apps. Hardly noticeable but it is there. No so with any other app on my S10. Given that most people have much slower Android devices performance seems to be the #1 issue for Gluon to go forward?

Will the use of GraalVM improve on this?

Android installation Failure [INSTALL_FAILED_NO_MATCHING_ABIS: Failed to extract native libraries, res=-113]

I built HelloGluon for Android on
Ubuntu 19.10 on VirtualBox on Windows 10 on Intel CPU
for Android 9

The Android apk was created successfully but when I do the installation to the connected Android 9 device using

mvn client:install

I get the error. Apparently there is a mismatch between the native libraries and the target architecture.

Any suggestion as to how to solve this please? Thank you.

Failure [INSTALL_FAILED_NO_MATCHING_ABIS: Failed to extract native libraries, res=-113]

Run failed in ubuntu(wsl)

And How to set args for javafx?

I try to use runtimeArgsList but it isn't working

            <plugin>
                <groupId>com.gluonhq</groupId>
                <artifactId>client-maven-plugin</artifactId>
                <version>0.1.3</version>
                <configuration>
                    <mainClass>${mainClassName}</mainClass>
                    <verbose>true</verbose>
                    <runtimeArgsList>
                        <list>-Dprism.order=sw -Dprism.debug=true -Dprism.verbose=true -Dprism.sw=true</list>
                    </runtimeArgsList>
                </configuration>
            </plugin>
log

xqdd@DESKTOP-MI9MIU1:~/code/github/client-samples/Maven/HelloFX$ source /etc/profile
xqdd@DESKTOP-MI9MIU1:~/code/github/client-samples/Maven/HelloFX$ mvn client:run
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$1 (file:/usr/share/maven/lib/guice.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of com.google.inject.internal.cglib.core.$ReflectUtils$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
[WARNING]
[WARNING] Some problems were encountered while building the effective settings
[WARNING] 'proxies.proxy.id' must be unique but found duplicate proxy with id proxy @ /usr/share/maven/conf/settings.xml
[WARNING]
[INFO] Scanning for projects...
[INFO]
[INFO] ---------------------------< hello:hellofx >----------------------------
[INFO] Building hellofx 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- client-maven-plugin:0.1.3:run (default-cli) @ hellofx ---
Main
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
Prism-ES2 Error : GL_VERSION (major.minor) = 1.4
Graphics Device initialization failed for :  es2, sw
Error initializing QuantumRenderer: no suitable pipeline found
java.lang.RuntimeException: java.lang.RuntimeException: Error initializing QuantumRenderer: no suitable pipeline found
        at com.sun.javafx.tk.quantum.QuantumRenderer.getInstance(QuantumRenderer.java:280)
        at com.sun.javafx.tk.quantum.QuantumToolkit.init(QuantumToolkit.java:244)
        at com.sun.javafx.tk.Toolkit.getToolkit(Toolkit.java:260)
        at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:267)
[INFO] ------------------------------------------------------------------------
        at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:158)
[INFO] BUILD SUCCESS
        at com.sun.javafx.application.LauncherImpl.startToolkit(LauncherImpl.java:658)
[INFO] ------------------------------------------------------------------------
        at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:678)
[INFO] Total time:  1.075 s
        at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$2(LauncherImpl.java:195)
[INFO] Finished at: 2019-12-04T17:34:52+08:00
        at java.lang.Thread.run(Thread.java:834)
[INFO] ------------------------------------------------------------------------
        at com.oracle.svm.core.thread.JavaThreads.threadStartRoutine(JavaThreads.java:479)
        at com.oracle.svm.core.posix.thread.PosixJavaThreads.pthreadStartRoutine(PosixJavaThreads.java:193)
Caused by: java.lang.RuntimeException: Error initializing QuantumRenderer: no suitable pipeline found
        at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.init(QuantumRenderer.java:94)
        at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(QuantumRenderer.java:124)
        ... 3 morexqdd@DESKTOP-MI9MIU1:~/code/github/client-samples/Maven/HelloFX$

Windows: Error: Illegal char <"> at index 0

I'm trying to compile the samples with the following env:

  • Windows x64
  • GraalVM v20
  • MSVC 2017

All are fine , I can even see that Graal has compiled the source to .class file under the target/ folder.
However when it tried to compile with native-image I got:
[Fri May 01 13:08:44 ICT 2020][INFO] We will now compile your code for x86_64-mi crosoft-windows. This may take some time. java.nio.file.InvalidPathException: Illegal char <"> at index 0: "D:\Repo\JavaFX \gluon-client-substrate-samples\Maven\HelloFXML\target\classes at java.base/sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.ja va:182) [INFO] ------------------------------------------------------------------------ at java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:1 53) [INFO] BUILD FAILURE at java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:7 7) at java.base/sun.nio.fs.WindowsPath.parse(WindowsPath.java:92) [INFO] ------------------------------------------------------------------------ at java.base/sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java :229)

So I then [in probably damn stupid way] tried to compile it manually using native-image to that resulted class location but no luck.

Solution?

Run built native code without cli showing

Is there an option to run a built native program (on Windows, Mac or Linux) without a command line interface displayed along with the running program's GUI window?

HelloWorld: Linking fails (Fedora 31) /usr/bin/ld: cannot find -lstdc++

Hi,

Trying the HelloWorld example on Fedora Linux 31.
It compiles fine, but linking fails because it won't find the libstdc++

Linking failed. Details from linking below:
Command was: gcc /tmp/client-samples/Maven/HelloWorld/target/client/x86_64-linux/gvm/helloWorld/launcher.o /tmp/client-samples/Maven/HelloWorld/target/client/x86_64-linux/gvm/tmp/SVM-1576524751781/hello.helloworld.o -ljava -lnio -lzip -lnet -ljvm -lstrictmath -lz -ldl -lj2pkcs11 -lsunec -lextnet -lstdc++ -rdynamic -llibchelper -lpthread -o /tmp/client-samples/Maven/HelloWorld/target/client/x86_64-linux/helloWorld -L/opt/graalvm-ce-java11-19.3.0/lib/svm/clibraries/linux-amd64 -L/home/prelle/.gluon/substrate/javaStaticSdk/14-ea+5/linux-x86_64/labs-staticjdk/lib/static
/usr/bin/ld: cannot find -lstdc++
collect2: Fehler: ld gab 1 als Ende-Status zurรผck
java.lang.RuntimeException: Linking failed
	at com.gluonhq.NativeLinkMojo.execute(NativeLinkMojo.java:55)

There is indeed no static libstdc++.a in either /opt/graalvm-ce-java11-19.3.0 or /home/prelle/.gluon/substrate/...

This is likely not an issue of the examples itself, but perhaps you could point me where to go from here.

(Funny enough, the Maven run finishes reporting a "Success")

[ERROR] Failed to execute goal com.gluonhq:client-maven-plugin:0.1.7:link (default-cli) on project helloworld: Error: Linking 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
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS

Compilation Fails on Pop! OS 19.10 (based on Ubuntu)

I opened the HelloFX Maven Project on IntelliJ IDEA, and when running mvn clean client:build, compilation fails and i get this output :

dubbadhar@pop-os:~/Downloads/client-samples-master/Maven/HelloFX$ mvn clean client:build
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$1 (file:/usr/share/maven/lib/guice.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of com.google.inject.internal.cglib.core.$ReflectUtils$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
[INFO] Scanning for projects...
[INFO] 
[INFO] ---------------------------< hello:hellofx >----------------------------
[INFO] Building hellofx 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ hellofx ---
[INFO] Deleting /home/dubbadhar/Downloads/client-samples-master/Maven/HelloFX/target
[INFO] 
[INFO] ---------------------------< hello:hellofx >----------------------------
[INFO] Building hellofx 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- client-maven-plugin:0.1.11:build (default-cli) @ hellofx ---
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$1 (file:/usr/share/maven/lib/guice.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of com.google.inject.internal.cglib.core.$ReflectUtils$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
[INFO] Scanning for projects...
[INFO] 
[INFO] ---------------------------< hello:hellofx >----------------------------
[INFO] Building hellofx 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- client-maven-plugin:0.1.11:compile (default-cli) @ hellofx ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to /home/dubbadhar/Downloads/client-samples-master/Maven/HelloFX/target/classes
We will now compile your code for x86_64-linux-linux. This may take some time.
Shutdown Server(pid: 8296, port: 45455)
Build on Server(pid: 10957, port: 37815)*
[hellofx.hellofx:10957]    classlist:   4,395.78 ms
[hellofx.hellofx:10957]        (cap):   1,614.19 ms
[hellofx.hellofx:10957]        setup:   3,778.55 ms
Error: Error parsing reflection configuration in /home/dubbadhar/Downloads/client-samples-master/Maven/HelloFX/target/client/x86_64-linux/gvm/reflectionconfig-x86_64-linux.json:
Method com.sun.javafx.logging.PrintLogger.createInstance() not found. To allow unresolvable reflection configuration, use option -H:+AllowIncompleteClasspath
Verify that the configuration matches the schema described in the -H:PrintFlags=+ output for option ReflectionConfigurationFiles.
Error: Use -H:+ReportExceptionStackTraces to print stacktrace of underlying exception
Error: Image build request failed with exit status 1
Compilation failed with result = 1
Compilation failed. See error printed above.
[INFO] 
[INFO] --- client-maven-plugin:0.1.11:link (default-cli) @ hellofx ---
java.lang.IllegalArgumentException: Linking failed, since there is no objectfile named hellofx.hellofx.o under /home/dubbadhar/Downloads/client-samples-master/Maven/HelloFX/target/client/x86_64-linux/gvm
        at com.gluonhq.substrate.target.AbstractTargetConfiguration.lambda$link$0(AbstractTargetConfiguration.java:205)
        at java.base/java.util.Optional.orElseThrow(Optional.java:408)
        at com.gluonhq.substrate.target.AbstractTargetConfiguration.link(AbstractTargetConfiguration.java:203)
        at com.gluonhq.substrate.target.LinuxTargetConfiguration.link(LinuxTargetConfiguration.java:79)
        at com.gluonhq.substrate.SubstrateDispatcher.nativeLink(SubstrateDispatcher.java:213)
        at com.gluonhq.NativeLinkMojo.execute(NativeLinkMojo.java:54)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:210)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:156)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148)
        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:305)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:192)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:105)
[INFO] ------------------------------------------------------------------------
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:956)
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:192)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:282)
[INFO] Total time:  12.491 s
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:225)
[INFO] Finished at: 2020-01-15T15:29:15+05:30
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.gluonhq:client-maven-plugin:0.1.11:link (default-cli) on project hellofx: Error: Linking failed, since there is no objectfile named hellofx.hellofx.o under /home/dubbadhar/Downloads/client-samples-master/Maven/HelloFX/target/client/x86_64-linux/gvm -> [Help 1]
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:406)
[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
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:347)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  14.749 s
[INFO] Finished at: 2020-01-15T15:29:15+05:30
[INFO] ------------------------------------------------------------------------

Error: Classes that should be initialized at run time got initialized during image building:

Hi,
I failed to build javaFX project using Gluon Client Plugin. i need to initialized some of my classes at run time and I need to do this in the same plugin.
i trying to add "--initialize-at-run-time" inside a buildArgs but its not working.
Graalvm version : 19.3.0.2
Java_Home : pointing to Graalvm_Home

this how my maven plugin looks like:

    <groupId>com.gluonhq</groupId>
    <artifactId>client-maven-plugin</artifactId>
    <version>${client.plugin.version}</version>
<configuration>
<reflectionList>
<list>com.sun.javafx.logging.PrintLogger</list>
</reflectionList>
<mainClass>${mainClassName}</mainClass>
<buildArgs>
        --initialize-at-run-time=${DBUtils}
	-H:+ReportExceptionStackTraces
	-H:+TraceClassInitialization
</buildArgs>
    </configuration>

run it:
export GRAALVM_HOME=/Library/Java/JavaVirtualMachines/graalvm-ce-java11-19.3.0.2/Contents/Home
export JAVA_HOME=$GRAALVM_HOME
mvn clean client:build

The error is:
Build on Server(pid: 1490, port: 49726)
[app:1490] classlist: 10,015.59 ms
[app:1490] (cap): 2,306.22 ms
[app:1490] setup: 2,705.94 ms
[app:1490] analysis: 42,164.86 ms
Printing call tree to gui/target/client/x86_64-darwin/gvm/gui/reports/call_tree_gui.app_20200127_102029.txt
Printing list of used methods to gui/target/client/x86_64-darwin/gvm/gui/reports/used_methods_gui.app_20200127_102032.txt
Printing list of used classes to gui/target/client/x86_64-darwin/gvm/gui/reports/used_classes_gui.app_20200127_102032.txt
Printing list of used packages to gui/target/client/x86_64-darwin/gvm/gui/reports/used_packages_gui.app_20200127_102033.txt
Error: Classes that should be initialized at run time got initialized during image building:
database.DBUtils was unintentionally initialized at build time. To see why database.DBUtils got initialized use -H:+TraceClassInitialization
database.DBUtils$DBTransaction was unintentionally initialized at build time. To see why database.DBUtils$DBTransaction got initialized use -H:+TraceClassInitialization

mvn client:build on macOs 10.15 error

Wed May 27 14:29:05 CST 2020][FINE] PB Command for compile-additional-sources: gcc -c -DSUBSTRATE -I/Users/aaron/projects/client-samples/Maven/HelloFX/target/client/x86_64-darwin/gvm/hellofx AppDelegate.m launcher.c
[Wed May 27 14:29:05 CST 2020][FINE] Start process compile-additional-sources...
[Wed May 27 14:29:05 CST 2020][FINE] [SUB] AppDelegate.m:28:9: fatal error: 'Cocoa/Cocoa.h' file not found
[Wed May 27 14:29:05 CST 2020][FINE] [SUB] #import <Cocoa/Cocoa.h>
[Wed May 27 14:29:05 CST 2020][FINE] [SUB] ^~~~~~~~~~~~~~~
[Wed May 27 14:29:05 CST 2020][FINE] [SUB] AppDelegate.m:28:9: note: did not find header 'Cocoa.h' in framework 'Cocoa' (loaded from '/System/Library/Frameworks')
[Wed May 27 14:29:05 CST 2020][FINE] [SUB] 1 error generated.
[Wed May 27 14:29:05 CST 2020][FINE] Result for compile-additional-sources: 1
[Wed May 27 14:29:05 CST 2020][SEVERE] Process compile-additional-sources failed with result: 1
Check the log files under /Users/aaron/projects/client-samples/Maven/HelloFX/target/client/x86_64-darwin/gvm/log

Xcode 11.5

Missing Android NDK Ubuntu 19.10 Maven graalvm-svm-linux-20.1.0-ea+27

When I am building the sample HelloGluon for Android target, the maven displays that it downloaded both Android tools and and ndk successfully but then it displays the error below. The directory
/home/anonymous/.gluon/substrate/Android/
contains only the tools directory, no ndk-bundle.

I downloaded the NDK from the Android site and put it manually into the directory. Then the build continues but fails later with:
Error: Image build request failed with exit status 137

Probably the NDK version I downloaded is not correct.

Do you have any workaround please? Thank you.

[Tue Apr 14 14:38:36 CEST 2020][INFO] We will now compile your code for aarch64-linux-android. This may take some time.
java.io.IOException: You specified an android ndk, but it doesn't contain /home/anonymous/.gluon/substrate/Android/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/ldlld
	at com.gluonhq.substrate.target.AndroidTargetConfiguration.compile(AndroidTargetConfiguration.java:130)
	at com.gluonhq.substrate.SubstrateDispatcher.nativeCompile(SubstrateDispatcher.java:343)
	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.execute(MojoExecutor.java:210)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:156)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE

JavaFX Media not working (Ubuntu 19.10)

I tried building my app (https://github.com/dubbadhar/gramophy) with the following changes :

  1. Removing jnativehook library
  2. Removing awt usage

Build was successful, then when i start to play any media file, it just doesnt proceed. mediaPlayer.setOnError(...) isn't triggered, and its not in READY state either. No stack trace is shown as well.

I also imported org.openjfx:javafx-media:13 in pom.xml but still it isn't working.

But overall the app itself starts in a jiffy, and i really love it.
JavaFX Version : 13

.FXML not being found

Not an issue with the project in this repo but i'm not sure where to ask. When trying to run my program I cant get the .fxml files to be loaded I have them in /Resources/Packagename. If i run with mvn javafx:run the program launches and runs fine but I cant get it to find the .fxml files when running the native compiled build.

Bug in the HelloFXML Maven POM

There is a bug in the HelloFXML Maven POM.
Change the mainClassName from
<mainClassName>hellofxml/hellofx.HelloFXML</mainClassName>
to
<mainClassName>hellofx.HelloFXML</mainClassName>

Build error on Windows 10 : Missing a reflection configuration

Hi,

I failed to build HelloFX project in windows. Where can I find reflection configuration file named reflectionconfig-javafx-x86_64-windows.json?

D:\ws\git\HelloFX>set GRAALVM_HOME=%GRAALVM11_HOME%

D:\ws\git\HelloFX>set JAVA_HOME=%GRAALVM_HOME%

D:\ws\git\HelloFX>set PATH=%GRAALVM_HOME%\bin;%PATH%

D:\ws\git\HelloFX>vcvars64
**********************************************************************
** Visual Studio 2019 Developer Command Prompt v16.4.2
** Copyright (c) 2019 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x64'

D:\ws\git\HelloFX>mvn clean client:build
[INFO] Scanning for projects...
[INFO]
[INFO] ---------------------------< hello:hellofx >----------------------------
[INFO] Building hellofx 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ hellofx ---
[INFO] Deleting D:\ws\git\HelloFX\target
[INFO]
[INFO] ---------------------------< hello:hellofx >----------------------------
[INFO] Building hellofx 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- client-maven-plugin:0.1.10:build (default-cli) @ hellofx ---
[INFO] Scanning for projects...
[INFO]
[INFO] ---------------------------< hello:hellofx >----------------------------
[INFO] Building hellofx 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- client-maven-plugin:0.1.10:compile (default-cli) @ hellofx ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to D:\ws\git\HelloFX\target\classes
We will now compile your code for x86_64-microsoft-windows. This may take some time.
java.io.IOException: Missing a reflection configuration file named reflectionconfig-javafx-x86_64-windows.json
        at com.gluonhq.substrate.target.AbstractTargetConfiguration.createReflectionConfig(AbstractTargetConfiguration.java:478)
[INFO] ------------------------------------------------------------------------
        at com.gluonhq.substrate.target.AbstractTargetConfiguration.compile(AbstractTargetConfiguration.java:142)
[INFO] BUILD FAILURE
        at com.gluonhq.substrate.SubstrateDispatcher.nativeCompile(SubstrateDispatcher.java:197)
[INFO] ------------------------------------------------------------------------
        at com.gluonhq.NativeCompileMojo.execute(NativeCompileMojo.java:69)
[INFO] Total time:  4.648 s
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137)
[INFO] Finished at: 2020-01-07T13:42:07+08:00
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:210)
[INFO] ------------------------------------------------------------------------
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:156)
[ERROR] Failed to execute goal com.gluonhq:client-maven-plugin:0.1.10:compile (default-cli) on project hellofx: Error: Missing a reflection configuration file named reflectionconfig-javafx-x86_64-windows.json -> [Help 1]
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148)
[ERROR]
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
[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)
[ERROR]
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
[ERROR] For more information about the errors and possible solutions, please read the following articles:
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:305)
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:192)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:105)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:957)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:289)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:193)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        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 SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  6.979 s
[INFO] Finished at: 2020-01-07T13:42:07+08:00
[INFO] ------------------------------------------------------------------------

D:\ws\git\HelloFX>

Unable to compile examples from IntelliJ IDEA

I am try compile HelloWorld sample, but I get exception:

/jdk-11/bin/java -Dmaven.multiModuleProjectDirectory=/IdeaProjects/client-samples/Maven/HelloWorld -Dmaven.home=/idea-IC/plugins/maven/lib/maven3 -Dclassworlds.conf=/idea-IC/plugins/maven/lib/maven3/bin/m2.conf -javaagent:/idea-IC/lib/idea_rt.jar=35078:/idea-IC/bin -Dfile.encoding=UTF-8 -classpath /idea-IC/plugins/maven/lib/maven3/boot/plexus-classworlds-2.5.2.jar org.codehaus.classworlds.Launcher -Didea.version2019.1.3 com.gluonhq:client-maven-plugin:0.0.10:compile
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building helloWorld 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- client-maven-plugin:0.0.10:compile (default-cli) @ helloworld ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /idea-IC/IdeaProjects/client-samples/Maven/HelloWorld/src/main/resources
[INFO] Nothing to compile - all classes are up to date
Omega :: host triplet = x86_64-linux-linux
Omega :: target triplet = x86_64-linux-linux
java.lang.RuntimeException: Error compiling
at com.gluonhq.omega.SVMBridge.compile(SVMBridge.java:307)
at com.gluonhq.omega.target.LinuxTargetProcess.compileApplication(LinuxTargetProcess.java:105)
at com.gluonhq.omega.target.AbstractTargetProcess.compile(AbstractTargetProcess.java:318)
at com.gluonhq.omega.Omega.nativeCompile(Omega.java:72)
at com.gluonhq.NativeCompileMojo.execute(NativeCompileMojo.java:73)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
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:863)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
at org.codehaus.classworlds.Launcher.main(Launcher.java:47)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.382 s
[INFO] Finished at: 2019-07-02T16:13:08+03:00
[INFO] Final Memory: 13M/47M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.gluonhq:client-maven-plugin:0.0.10:compile (default-cli) on project helloworld: Error: Error compiling -> [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] [SUB] Unrecognized VM option 'EnableJVMCI'
[INFO] [SUB] Unrecognized VM option 'EnableJVMCI'
[INFO] [SUB] Error: Could not create the Java Virtual Machine.
Process finished with exit code 1

iOS link error - missing networking symbols.

Not sure where to post it. After extending HelloGluon with some networking code I get the error below. Works fine on desktop when target iOS is commented out
Has anyone seen this before?

Undefined symbols for architecture arm64: "_Java_jdk_net_MacOSXSocketOptions_getTcpKeepAliveIntvl0", referenced from: _MacOSXSocketOptions_getTcpKeepAliveIntvl0_3c6a1009bb3a39a1a7c77219de7a65f1e30d9750 in llvm.o

"_Java_jdk_net_MacOSXSocketOptions_getTcpKeepAliveTime0", referenced from: _MacOSXSocketOptions_getTcpKeepAliveTime0_26ecd9ad54542e93b061c6254e382d269ef9c6e1 in llvm.o

"_Java_jdk_net_MacOSXSocketOptions_getTcpkeepAliveProbes0", referenced from: _MacOSXSocketOptions_getTcpkeepAliveProbes0_661daa644bce3197db58b7b18e2fd176494d028b in llvm.o

"_Java_jdk_net_MacOSXSocketOptions_setTcpKeepAliveIntvl0", referenced from: _MacOSXSocketOptions_setTcpKeepAliveIntvl0_443e365932509a5c53b5a7690abada6a409d7963 in llvm.o

"_Java_jdk_net_MacOSXSocketOptions_setTcpKeepAliveTime0", referenced from: _MacOSXSocketOptions_setTcpKeepAliveTime0_489b5f936900a1d96819ba96c46f154c7da15fe3 in llvm.o

"_Java_jdk_net_MacOSXSocketOptions_setTcpkeepAliveProbes0", referenced from:
_MacOSXSocketOptions_setTcpkeepAliveProbes0_667486ab22396e17ac782b9be19cf70e83bdb1fa in llvm.o

"_Java_sun_nio_ch_SocketChannelImpl_checkConnect", referenced from: _SocketChannelImpl_checkConnect_abaaa701cc8c1044014e2939d46265e67b6c5541 in llvm.o

ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Build for Android on Linux failing in llvm step

I'm trying to get a multi-module maven project to build for android, inside gitpod (a browser-based IDE using a custom docker image). The project is located here: https://github.com/hallvard/timersfx and includes a core and fxui projects, and another project for each platform, e.g. fxui.android. The repo is gitpodified, so can be opened directly in gitpod.
The docker file (.gitpod.dockerfile) downloads graalvm using wget, unzips it and installs it using sdkman. When starting up gitpod, it first builds using mvn install (see .gitpod.yml). I then try to build the apk by running mvn client:build inside the fxui.android project the. After some time... the llvm step aborts with

[Sun Mar 22 16:29:43 UTC 2020][INFO] [SUB] Fatal error:org.graalvm.compiler.debug.GraalError: LLVM compilation failed for batch 1 (f7308-f14616). Use -H:LLVMBatchesPerThread=-1 to compile each method individually. (/workspace/timersfx/no.hal.timers/fxui.android/target/client/aarch64-android/gvm/tmp/SVM-1584894351655/llvm/b1o.bc): 137
[Sun Mar 22 16:29:43 UTC 2020][INFO] [SUB] Command: llc -relocation-model=pic --trap-unreachable -march=aarch64 --frame-pointer=all -O2 -filetype=obj -o b1.o b1o.bc
[Sun Mar 22 16:29:43 UTC 2020][INFO] [SUB]      at com.oracle.svm.core.graal.llvm.LLVMNativeImageCodeCache.llvmCompile(LLVMNativeImageCodeCache.java:272)

I don't understand the error and why it suggests to use -H:LLVMBatchesPerThread=-1

Please add examples not using Maven

Hello.

It would very useful if you could add some examples of how to build native client applications using only the command-line. Not all projects use Maven nowadays.

Having Gradle samples would be nice too, but once you show how to build on the command-line, it's easy for people to write a Gradle plugin or just code it in the gradle file. Same with Ant, SBT and any other build tool.

HelloWorld for iOS build failed

I've tried to build the HelloWorld sample for iOS, but without success. Can you tell me what's wrong?

buser@buser-mbp HelloWorld % mvn clean client:build
[INFO] Scanning for projects...
[INFO] 
[INFO] --------------------------< hello:helloworld >--------------------------
[INFO] Building helloWorld 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ helloworld ---
[INFO] Deleting /Users/buser/Projects/client-samples/Maven/HelloWorld/target
[INFO] 
[INFO] --------------------------< hello:helloworld >--------------------------
[INFO] Building helloWorld 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- client-maven-plugin:0.1.15:build (default-cli) @ helloworld ---
[INFO] Scanning for projects...
[INFO] 
[INFO] --------------------------< hello:helloworld >--------------------------
[INFO] Building helloWorld 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- client-maven-plugin:0.1.15:compile (default-cli) @ helloworld ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/buser/Projects/client-samples/Maven/HelloWorld/src/main/resources
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to /Users/buser/Projects/client-samples/Maven/HelloWorld/target/classes
We will now compile your code for arm64-apple-ios. This may take some time.
Build on Server(pid: 34820, port: 59060)*
[hello.helloworld:34820]    classlist:   2,812.96 ms,  1.00 GB
[hello.helloworld:34820]        (cap):   1,608.48 ms,  1.33 GB
[hello.helloworld:34820]        setup:   3,905.08 ms,  1.33 GB
[hello.helloworld:34820]   (typeflow):  24,287.44 ms,  3.55 GB
[hello.helloworld:34820]    (objects):  24,719.93 ms,  3.55 GB
[hello.helloworld:34820]   (features):   2,313.20 ms,  3.55 GB
[hello.helloworld:34820]     analysis:  52,893.52 ms,  3.55 GB
[hello.helloworld:34820]     (clinit):     747.79 ms,  4.17 GB
[hello.helloworld:34820]     universe:   3,607.49 ms,  4.17 GB
[hello.helloworld:34820]      (parse):   7,517.33 ms,  4.17 GB
[hello.helloworld:34820]     (inline):   5,327.66 ms,  4.84 GB
Error: Image build request failed with exit status -1
Compilation failed with result = 255
Compilation failed. See error printed above.
[INFO] 
[INFO] --- client-maven-plugin:0.1.15:link (default-cli) @ helloworld ---
java.lang.IllegalArgumentException: Linking failed, since there is no objectfile named hello.helloworld.o under /Users/buser/Projects/client-samples/Maven/HelloWorld/target/client/arm64-ios/gvm
	at com.gluonhq.substrate.target.AbstractTargetConfiguration.lambda$link$0(AbstractTargetConfiguration.java:210)
	at java.base/java.util.Optional.orElseThrow(Optional.java:408)
	at com.gluonhq.substrate.target.AbstractTargetConfiguration.link(AbstractTargetConfiguration.java:208)
	at com.gluonhq.substrate.target.IosTargetConfiguration.link(IosTargetConfiguration.java:148)
	at com.gluonhq.substrate.SubstrateDispatcher.nativeLink(SubstrateDispatcher.java:216)
	at com.gluonhq.NativeLinkMojo.execute(NativeLinkMojo.java:54)
	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:210)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:156)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148)
	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:305)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:192)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:105)
	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:957)
	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:289)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:193)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	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:  01:22 min
[INFO] Finished at: 2020-02-21T09:13:49+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.gluonhq:client-maven-plugin:0.1.15:link (default-cli) on project helloworld: Error: Linking failed, since there is no objectfile named hello.helloworld.o under /Users/buser/Projects/client-samples/Maven/HelloWorld/target/client/arm64-ios/gvm -> [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] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  01:25 min
[INFO] Finished at: 2020-02-21T09:13:49+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.gluonhq:client-maven-plugin:0.1.15:build (default-cli) on project helloworld: Error, client: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

Linking on ubuntu 18.04 fails

In short, nativLink failes and I seem to miss something:

Environment

$ echo $JAVA_HOME
/usr/lib/jvm/java-11-openjdk-amd64
$ java -version
openjdk version "11.0.4" 2019-07-16
OpenJDK Runtime Environment (build 11.0.4+11-post-Ubuntu-1ubuntu218.04.3)
OpenJDK 64-Bit Server VM (build 11.0.4+11-post-Ubuntu-1ubuntu218.04.3, mixed mode, sharing)
./gradlew --version

------------------------------------------------------------
Gradle 5.3
------------------------------------------------------------

Build time:   2019-03-20 11:03:29 UTC
Revision:     f5c64796748a98efdbf6f99f44b6afe08492c2a0

Kotlin:       1.3.21
Groovy:       2.5.4
Ant:          Apache Ant(TM) version 1.9.13 compiled on July 10 2018
JVM:          11.0.4 (Ubuntu 11.0.4+11-post-Ubuntu-1ubuntu218.04.3)
OS:           Linux 4.15.0-55-generic amd64

What I did

I cloned the repository, changed into the Gradle/HelloFXML directory.
./gradlew run worked perfectly, so I tried to build and link the demo with
./gradlew clean build nativeCompile nativeLink
which results in this wonderful stacktrace and I have no clue what the actual problem is

> Task :nativeLink Omega :: host triplet = x86_64-linux-linux Omega :: target triplet = x86_64-linux-linux java.lang.RuntimeException: Error linking at com.gluonhq.omega.target.LinuxTargetProcess.link(LinuxTargetProcess.java:204) at com.gluonhq.omega.Omega.nativeLink(Omega.java:86) at com.gluonhq.gradle.tasks.ClientNativeLink.action(ClientNativeLink.java:60) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:103) at org.gradle.api.internal.project.taskfactory.StandardTaskAction.doExecute(StandardTaskAction.java:48) at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:41) at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:28) at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:701) at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:668) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$4.run(ExecuteActionsTaskExecuter.java:337) at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:402) at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:394) at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:165) at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:250) at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:158) at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:92) at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:326) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:311) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.access$200(ExecuteActionsTaskExecuter.java:75) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$TaskExecution.execute(ExecuteActionsTaskExecuter.java:158) at org.gradle.internal.execution.impl.steps.ExecuteStep.execute(ExecuteStep.java:46) at org.gradle.internal.execution.impl.steps.CancelExecutionStep.execute(CancelExecutionStep.java:34) at org.gradle.internal.execution.impl.steps.TimeoutStep.executeWithoutTimeout(TimeoutStep.java:69) at org.gradle.internal.execution.impl.steps.TimeoutStep.execute(TimeoutStep.java:49) at org.gradle.internal.execution.impl.steps.CatchExceptionStep.execute(CatchExceptionStep.java:34) at org.gradle.internal.execution.impl.steps.CreateOutputsStep.execute(CreateOutputsStep.java:49) at org.gradle.internal.execution.impl.steps.SnapshotOutputStep.execute(SnapshotOutputStep.java:42) at org.gradle.internal.execution.impl.steps.SnapshotOutputStep.execute(SnapshotOutputStep.java:28) at org.gradle.internal.execution.impl.steps.CacheStep.executeWithoutCache(CacheStep.java:136) at org.gradle.internal.execution.impl.steps.CacheStep.execute(CacheStep.java:60) at org.gradle.internal.execution.impl.steps.CacheStep.execute(CacheStep.java:37) at org.gradle.internal.execution.impl.steps.PrepareCachingStep.execute(PrepareCachingStep.java:33) at org.gradle.internal.execution.impl.steps.StoreSnapshotsStep.execute(StoreSnapshotsStep.java:38) at org.gradle.internal.execution.impl.steps.StoreSnapshotsStep.execute(StoreSnapshotsStep.java:23) at org.gradle.internal.execution.impl.steps.SkipUpToDateStep.executeBecause(SkipUpToDateStep.java:95) at org.gradle.internal.execution.impl.steps.SkipUpToDateStep.lambda$execute$0(SkipUpToDateStep.java:88) at java.base/java.util.Optional.map(Optional.java:265) at org.gradle.internal.execution.impl.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:52) at org.gradle.internal.execution.impl.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:36) at org.gradle.internal.execution.impl.DefaultWorkExecutor.execute(DefaultWorkExecutor.java:34) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:109) at org.gradle.api.internal.tasks.execution.ResolveIncrementalChangesTaskExecuter.execute(ResolveIncrementalChangesTaskExecuter.java:84) at org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.java:92) at org.gradle.api.internal.tasks.execution.ResolveBeforeExecutionStateTaskExecuter.execute(ResolveBeforeExecutionStateTaskExecuter.java:75) at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58) at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:110) at org.gradle.api.internal.tasks.execution.ResolveBeforeExecutionOutputsTaskExecuter.execute(ResolveBeforeExecutionOutputsTaskExecuter.java:67) at org.gradle.api.internal.tasks.execution.ResolveAfterPreviousExecutionStateTaskExecuter.execute(ResolveAfterPreviousExecutionStateTaskExecuter.java:46) at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:94) at org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute(FinalizePropertiesTaskExecuter.java:46) at org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter.execute(ResolveTaskExecutionModeExecuter.java:95) at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:57) at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:56) at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:36) at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.executeTask(EventFiringTaskExecuter.java:63) at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:49) at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:46) at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:416) at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:406) at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:165) at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:250) at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:158) at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:102) at org.gradle.internal.operations.DelegatingBuildOperationExecutor.call(DelegatingBuildOperationExecutor.java:36) at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:46) at org.gradle.execution.plan.LocalTaskNodeExecutor.execute(LocalTaskNodeExecutor.java:43) at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:355) at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:343) at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:336) at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:322) at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker$1.execute(DefaultPlanExecutor.java:134) at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker$1.execute(DefaultPlanExecutor.java:129) at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.execute(DefaultPlanExecutor.java:202) at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.executeNextNode(DefaultPlanExecutor.java:193) at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.run(DefaultPlanExecutor.java:129) at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63) at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55) at java.base/java.lang.Thread.run(Thread.java:834)

Any Idea what could be wrong?

HelloFX run fails: Graphics Device initialization failed for : es2, sw

HelloFX subdir builds with no errors (mvn clean client:build). Invoking mvn javafx:run runs fine and the window pops up. Invoking mvn client:run or running the build static binary directly produces the above error (full stacktrace at bottom of this message). I have included the link command output by the plugin. Let me know if I can provide any other information to assist debugging this issue.

HelloWorld subdir builds and runs fine (mvn clean client:build, mvn client:run). Also invoking the built static binary runs without error:
target/client/x86_64-linux/helloWorld
Hello World!!

  • System Info:
    $ java -version
    openjdk version "11.0.5" 2019-10-15
    OpenJDK Runtime Environment (build 11.0.5+10-jvmci-19.3-b05-LTS)
    OpenJDK 64-Bit GraalVM CE 19.3.0 (build 11.0.5+10-jvmci-19.3-b05-LTS, mixed mode, sharing)
    $ dmesg | head -1
    [ 0.000000] Linux version 4.19.79-07511-ge32b3719f26b (chrome-bot@chromeos-ci-pre-try-us-central2-c-x32-13-iwzv) (Chromium OS 9.0_pre365631_p20190821-r21 clang version 9.0.0 (/var/cache/chromeos-cache/distfiles/host/egit-src/llvm-project 6b043f051836635a1e88da4d0464e6569bd7b625) (based on LLVM 9.0.0svn)) #1 SMP PREEMPT Mon Nov 18 17:41:41 PST 2019

  • Link Command:
    $ /bin/cat target/client/x86_64-linux/gvm/log/client-debug0.log
    [Thu Jan 23 14:21:23 PST 2020][FINE] ==================== COMPILE TASK ====================
    [Thu Jan 23 14:21:23 PST 2020][FINE] Processing JavaStatic dependencies at /home/jboehland/.gluon/substrate/javaStaticSdk/14-ea+5/linux-x86_64/labs-staticjdk/lib/static
    [Thu Jan 23 14:21:23 PST 2020][FINE] Processing JavaFXStatic dependencies at /home/jboehland/.gluon/substrate/javafxStaticSdk/14-ea+gvm6/linux-x86_64/sdk/lib
    [Thu Jan 23 14:21:23 PST 2020][FINE] Process zip javaStaticSdk, target = linux-x86_64
    [Thu Jan 23 14:21:23 PST 2020][FINE] Processing zip file: url = http://download2.gluonhq.com/substrate/staticjdk/labs-staticjdk-linux-x86_64-gvm-14-ea+5.zip, zip = /home/jboehland/.gluon/substrate/labs-staticjdk-linux-x86_64-gvm-14-ea+5.zip, subDir = javaStaticSdk, levels = [14-ea+5, linux-x86_64], md5 = javaStaticSdk-linux-x86_64.md5
    [Thu Jan 23 14:21:24 PST 2020][FINE] Processing zip java done
    [Thu Jan 23 14:21:24 PST 2020][FINE] Process zip javafxStaticSdk
    [Thu Jan 23 14:21:24 PST 2020][FINE] Processing zip file: url = http://download2.gluonhq.com/substrate/javafxstaticsdk/openjfx-14-ea+gvm6-linux-x86_64-static.zip, zip = /home/jboehland/.gluon/substrate/openjfx-14-ea+gvm6-linux-x86_64-static.zip, subDir = javafxStaticSdk, levels = [14-ea+gvm6, linux-x86_64], md5 = javafxStaticSdk-linux-x86_64.md5
    [Thu Jan 23 14:21:41 PST 2020][FINE] Process zip javafx done
    [Thu Jan 23 14:21:41 PST 2020][FINE] Setup dependencies done
    [Thu Jan 23 14:21:41 PST 2020][FINE] Extracting native libs to: /home/jboehland/repos/java/gluon/client-samples/Maven/HelloFX/target/client/x86_64-linux/gvm/lib
    [Thu Jan 23 14:21:41 PST 2020][FINE] Looking for resource: /native/linux/launcher.c
    [Thu Jan 23 14:21:41 PST 2020][FINE] PB Command for jar: jar cf /tmp/classes15170107816667043186/classes.jar -C /home/jboehland/repos/java/gluon/client-samples/Maven/HelloFX/target/classes .
    [Thu Jan 23 14:21:41 PST 2020][FINE] Start process jar...
    [Thu Jan 23 14:21:41 PST 2020][FINE] Result for jar: 0
    [Thu Jan 23 14:21:41 PST 2020][FINE] Scanning for init build time files
    [Thu Jan 23 14:21:41 PST 2020][FINE] Scanning /tmp/classes15170107816667043186/classes.jar
    [Thu Jan 23 14:21:41 PST 2020][FINE] Scanning for reflection files
    [Thu Jan 23 14:21:41 PST 2020][FINE] Scanning /tmp/classes15170107816667043186/classes.jar
    [Thu Jan 23 14:21:41 PST 2020][FINE] Scanning for JNI files
    [Thu Jan 23 14:21:41 PST 2020][FINE] Scanning /tmp/classes15170107816667043186/classes.jar
    [Thu Jan 23 14:21:41 PST 2020][FINE] compile command: /usr/lib/jvm/graalvm/bin/native-image --report-unsupported-elements-at-runtime -Djdk.internal.lambda.eagerlyInitialize=false -H:+ExitAfterRelocatableImageWrite -H:TempDirectory=/home/jboehland/repos/java/gluon/client-samples/Maven/HelloFX/target/client/x86_64-linux/gvm/tmp -H:+SharedLibrary -H:+AddAllCharsets -H:EnableURLProtocols=http,https -H:ReflectionConfigurationFiles=/home/jboehland/repos/java/gluon/client-samples/Maven/HelloFX/target/client/x86_64-linux/gvm/reflectionconfig-x86_64-linux.json -H:JNIConfigurationFiles=/home/jboehland/repos/java/gluon/client-samples/Maven/HelloFX/target/client/x86_64-linux/gvm/jniconfig-x86_64-linux.json -H:+PrintAnalysisCallTree -H:ResourceConfigurationFiles=/home/jboehland/repos/java/gluon/client-samples/Maven/HelloFX/target/client/x86_64-linux/gvm/resourceconfig-x86_64-linux.json -H:Log=registerResource: -H:IncludeResourceBundles=com/sun/javafx/scene/control/skin/resources/controls,com.sun.javafx.tk.quantum.QuantumMessagesBundle -Dsvm.platform=org.graalvm.nativeimage.Platform$LINUX_AMD64 -cp /home/jboehland/repos/java/gluon/client-samples/Maven/HelloFX/target/classes:/home/jboehland/.gluon/substrate/javafxStaticSdk/14-ea+gvm6/linux-x86_64/sdk/lib/javafx-base.jar:/home/jboehland/.gluon/substrate/javafxStaticSdk/14-ea+gvm6/linux-x86_64/sdk/lib/javafx-base.jar:/home/jboehland/.gluon/substrate/javafxStaticSdk/14-ea+gvm6/linux-x86_64/sdk/lib/javafx-controls.jar:/home/jboehland/.gluon/substrate/javafxStaticSdk/14-ea+gvm6/linux-x86_64/sdk/lib/javafx-controls.jar:/home/jboehland/.gluon/substrate/javafxStaticSdk/14-ea+gvm6/linux-x86_64/sdk/lib/javafx-graphics.jar:/home/jboehland/.gluon/substrate/javafxStaticSdk/14-ea+gvm6/linux-x86_64/sdk/lib/javafx-graphics.jar hellofx.HelloFX
    [Thu Jan 23 14:25:08 PST 2020][FINE] ==================== RUN TASK ====================

  • Full Stacktrace:
    $ target/client/x86_64-linux/hellofx
    Main
    Graphics Device initialization failed for : es2, sw
    Error initializing QuantumRenderer: no suitable pipeline found
    java.lang.RuntimeException: java.lang.RuntimeException: Error initializing QuantumRenderer: no suitable pipeline found
    at com.sun.javafx.tk.quantum.QuantumRenderer.getInstance(QuantumRenderer.java:280)
    at com.sun.javafx.tk.quantum.QuantumToolkit.init(QuantumToolkit.java:244)
    at com.sun.javafx.tk.Toolkit.getToolkit(Toolkit.java:260)
    at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:267)
    at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:158)
    at com.sun.javafx.application.LauncherImpl.startToolkit(LauncherImpl.java:658)
    at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:678)
    at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$2(LauncherImpl.java:195)
    at java.lang.Thread.run(Thread.java:834)
    at com.oracle.svm.core.thread.JavaThreads.threadStartRoutine(JavaThreads.java:479)
    at com.oracle.svm.core.posix.thread.PosixJavaThreads.pthreadStartRoutine(PosixJavaThreads.java:193)
    Caused by: java.lang.RuntimeException: Error initializing QuantumRenderer: no suitable pipeline found
    at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.init(QuantumRenderer.java:94)
    at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(QuantumRenderer.java:124)
    ... 3 more
    Exception in thread "main" java.lang.RuntimeException: No toolkit found
    at com.sun.javafx.tk.Toolkit.getToolkit(Toolkit.java:272)
    at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:267)
    at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:158)
    at com.sun.javafx.application.LauncherImpl.startToolkit(LauncherImpl.java:658)
    at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:678)
    at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$2(LauncherImpl.java:195)
    at java.lang.Thread.run(Thread.java:834)
    at com.oracle.svm.core.thread.JavaThreads.threadStartRoutine(JavaThreads.java:479)
    at com.oracle.svm.core.posix.thread.PosixJavaThreads.pthreadStartRoutine(PosixJavaThreads.java:193)

Exe generated by the plugin on windows 8 is not running

Hi there,

This is related to #89 but not the same.

Using the client-maven-plugin version 0.1.27 I am able to generate an exe file for a very simple sample which is consist of an HBox with a button all inside a StackPane as the root pane of scene.

However, the exe when launched does nothing. No error even if you run it from a command shell (cmd). Simply nothing happens. I've check the task manager, no process is forked or it is so fast terminating which is not visible on the task manager list of processes.

My machine settings are:
Windows 8
openjdk version "11.0.1" 2018-10-16
graalvm-ce-java11-windows-amd64-20.2.0

Here are the important sections of my pom.xml file:

...
    <dependency>
          <groupId>org.openjfx</groupId>
          <artifactId>javafx-controls</artifactId>
          <version>14.0.1</version>
      </dependency>
...

<build>
      <plugins>
          <plugin>
              <groupId>org.apache.maven.plugins</groupId>
              <artifactId>maven-compiler-plugin</artifactId>
              <version>3.8.0</version>
              <configuration>
                  <release>11</release>
              </configuration>
          </plugin>
          <plugin>
              <groupId>com.gluonhq</groupId>
              <artifactId>client-maven-plugin</artifactId>
              <version>0.1.27</version>
              <configuration>
                  <mainClass>com.mycompany.gluonnew.App</mainClass>
              </configuration>
          </plugin>
      </plugins>
  </build>

Would you please help me on this?

Compiling for Android fails on ubuntu 18.10

The compilation fails with "Error: Could not find option 'CustomLD'. Did you mean one of these: CustomLLC". Steps I did:

# installed android sdk with latest ndk, then:
$ export ANDROID_NDK=/path/to/android-sdk-linux/ndk/20.1.5948944/
# installed graalvm with native-image, then:
$ export GRAALVM_HOME=/path/to/graalvm-ce-java11-19.3.0/
$ cd client-samples/Maven/HelloWorld
# changed pom.xml and use `<target>android</target>`
$ mvn client:build
....
[INFO] Building helloWorld 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- client-maven-plugin:0.1.6:compile (default-cli) @ helloworld ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /path/to/client-samples/Maven/HelloWorld/src/main/resources
[INFO] Nothing to compile - all classes are up to date
We will now compile your code for aarch64-linux-android. This may take some time.
Build on Server(pid: 8932, port: 40851)*
Error: Could not find option 'CustomLD'. Did you mean one of these: CustomLLC. Use -H:PrintFlags= to list all available options.
Error: Use -H:+ReportExceptionStackTraces to print stacktrace of underlying exception
Error: Image build request failed with exit status 1
Compilation failed with result = 1
Compilation failed. The error should be printed above.
[INFO] 
[INFO] --- client-maven-plugin:0.1.6:link (default-cli) @ helloworld ---
java.lang.IllegalArgumentException: Linking failed, since there is no objectfile named hello.helloworld.o under /path/to/client-samples/Maven/HelloWorld/target/client/aarch64-android/gvm
	at com.gluonhq.substrate.target.AbstractTargetConfiguration.lambda$link$0(AbstractTargetConfiguration.java:213)
	at java.base/java.util.Optional.orElseThrow(Optional.java:408)
	at com.gluonhq.substrate.target.AbstractTargetConfiguration.link(AbstractTargetConfiguration.java:211)
	at com.gluonhq.substrate.target.AndroidTargetConfiguration.link(AndroidTargetConfiguration.java:130)
	at com.gluonhq.substrate.SubstrateDispatcher.nativeLink(SubstrateDispatcher.java:236)
	at com.gluonhq.NativeLinkMojo.execute(NativeLinkMojo.java:54)
	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:210)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:156)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148)
	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:305)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:192)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:105)
	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:956)
	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:192)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:567)
	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)

It seems the flag here is now unknown. Similar to #21.

Do I need an older NDK? (Update: tried various different NDK versions, but same problem)

HelloGluon build fails on iOS

I followed the various steps in the guide but I get this error:

Mac-xxx:HelloGluon Utente$ mvn clean client:build
[INFO] Scanning for projects...
[INFO] --------------------< com.gluonhq.hello:hellogluon >--------------------
[INFO] Building hellogluon 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ hellogluon ---
[INFO] --------------------< com.gluonhq.hello:hellogluon >--------------------
[INFO] Building hellogluon 1.0-SNAPSHOT
[INFO] --- client-maven-plugin:0.1.14:build (default-cli) @ hellogluon ---
[INFO] --------------------< com.gluonhq.hello:hellogluon >--------------------
[INFO] Building hellogluon 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] --- client-maven-plugin:0.1.14:compile (default-cli) @ hellogluon ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to /Users/xxx/client-samples-master/Maven/HelloGluon/target/classes
We will now compile your code for arm64-apple-ios. This may take some time.
Build on Server(pid: 49502, port: 51590)*
...
Fatal error: org.graalvm.compiler.debug.GraalError: java.io.IOException: Cannot run program "llvm-link" (in directory "/Users/xxx/client-samples-master/Maven/HelloGluon/target/client/arm64-ios/gvm/tmp/SVM-1580114083832/llvm"): error=2, No such file or directory
at com.oracle.svm.core.graal.llvm.LLVMNativeImageCodeCache.llvmLink(LLVMNativeImageCodeCache.java:555)
at com.oracle.svm.core.graal.llvm.LLVMNativeImageCodeCache.lambda$createBitcodeBatches$8(LLVMNativeImageCodeCache.java:433)
at java.base/java.util.stream.ForEachOps$ForEachOp$OfInt.accept(ForEachOps.java:204)
at java.base/java.util.stream.Streams$RangeIntSpliterator.forEachRemaining(Streams.java:104)
at java.base/java.util.Spliterator$OfInt.forEachRemaining(Spliterator.java:699)

what to do?

Compiling fails on ubuntu 18.10

System Info

Host: ubuntu 18.10 on x86_64
JDK= OpenJDK 11.0.3
Maven: 3.6.0

Problem

Trying to run the maven goal client:compile on the Maven/HelloWorld sample fails with 'Not enough memory':

andrea@andrea-tkp:~/workspace/client-samples/Maven/HelloWorld$ mvn clean client:compile
[INFO] Scanning for projects...
[INFO] 
[INFO] --------------------------< hello:helloworld >--------------------------
[INFO] Building helloWorld 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ helloworld ---
[INFO] Deleting /home/andrea/workspace/client-samples/Maven/HelloWorld/target
[INFO] 
[INFO] --- client-maven-plugin:0.0.12:compile (default-cli) @ helloworld ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/andrea/workspace/client-samples/Maven/HelloWorld/src/main/resources
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to /home/andrea/workspace/client-samples/Maven/HelloWorld/target/classes
Omega :: host triplet = x86_64-linux-linux
Omega :: target triplet = x86_64-linux-linux
[Tue Aug 27 12:04:41 CEST 2019][INFO] [SUB] [helloWorld:15374]    classlist:   1,211.57 ms
[Tue Aug 27 12:04:42 CEST 2019][INFO] [SUB] [helloWorld:15374]        (cap):   1,002.13 ms
[Tue Aug 27 12:04:43 CEST 2019][INFO] [SUB] [helloWorld:15374]        setup:   2,569.50 ms
[Tue Aug 27 12:04:43 CEST 2019][INFO] [SUB] WARNING: An illegal reflective access operation has occurred
[Tue Aug 27 12:04:43 CEST 2019][INFO] [SUB] WARNING: Illegal reflective access by com.oracle.svm.util.ReflectionUtil (file:/home/andrea/.gluon/omega/graalLibs/20.0.0-ea+15/bundle/lib/svm/builder/pointsto.jar) to method sun.nio.ch.IOUtil.initIDs()
[Tue Aug 27 12:04:43 CEST 2019][INFO] [SUB] WARNING: Please consider reporting this to the maintainers of com.oracle.svm.util.ReflectionUtil
[Tue Aug 27 12:04:43 CEST 2019][INFO] [SUB] WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
[Tue Aug 27 12:04:43 CEST 2019][INFO] [SUB] WARNING: All illegal access operations will be denied in a future release
[Tue Aug 27 12:05:09 CEST 2019][INFO] [SUB] OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x0000000569400000, 2550136832, 0) failed; error='Not enough space' (errno=12)
[Tue Aug 27 12:05:09 CEST 2019][INFO] [SUB] #
[Tue Aug 27 12:05:09 CEST 2019][INFO] [SUB] # There is insufficient memory for the Java Runtime Environment to continue.
[Tue Aug 27 12:05:09 CEST 2019][INFO] [SUB] # Native memory allocation (mmap) failed to map 2550136832 bytes for committing reserved memory.
[Tue Aug 27 12:05:09 CEST 2019][INFO] [SUB] # An error report file with more information is saved as:
[Tue Aug 27 12:05:09 CEST 2019][INFO] [SUB] # /home/andrea/workspace/client-samples/Maven/HelloWorld/target/client/linux-x86_64/gvm/hs_err_pid15374.log
Error compiling, compilation command was java -XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI -XX:-UseJVMCICompiler -Dtruffle.TrustAllTruffleRuntimeProviders=true -Dsubstratevm.IgnoreGraalVersionCheck=true -Djava.lang.invoke.stringConcat=BC_SB -Xss10m -Xms1g -Xmx13441813704 -Duser.country=US -Duser.language=en -Dgraalvm.version=20.0.0-ea+15 -Dsvm.platform=org.graalvm.nativeimage.impl.InternalPlatform$LINUX_JNI_AMD64 -Dorg.graalvm.version=20.0.0-ea+15 -Dcom.oracle.graalvm.isaot=true --add-exports jdk.internal.vm.ci/jdk.vm.ci.runtime=ALL-UNNAMED --add-exports jdk.internal.vm.ci/jdk.vm.ci.code=ALL-UNNAMED --add-exports jdk.internal.vm.ci/jdk.vm.ci.amd64=ALL-UNNAMED --add-exports jdk.internal.vm.ci/jdk.vm.ci.aarch64=ALL-UNNAMED --add-exports jdk.internal.vm.ci/jdk.vm.ci.meta=ALL-UNNAMED --add-exports jdk.internal.vm.ci/jdk.vm.ci.hotspot=ALL-UNNAMED --add-exports jdk.internal.vm.ci/jdk.vm.ci.services=ALL-UNNAMED --add-exports jdk.internal.vm.ci/jdk.vm.ci.common=ALL-UNNAMED --add-exports jdk.internal.vm.ci/jdk.vm.ci.code.site=ALL-UNNAMED --add-opens jdk.unsupported/sun.reflect=ALL-UNNAMED --add-opens java.base/jdk.internal.logger=ALL-UNNAMED --add-opens java.base/jdk.internal.module=ALL-UNNAMED --add-opens java.base/jdk.internal.ref=ALL-UNNAMED --add-opens java.base/jdk.internal.reflect=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.lang.invoke=ALL-UNNAMED --add-opens java.base/java.lang.ref=ALL-UNNAMED --add-opens java.base/java.net=ALL-UNNAMED --add-opens java.base/java.nio=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens org.graalvm.sdk/org.graalvm.nativeimage.impl=ALL-UNNAMED --module-path /home/andrea/.gluon/omega/graalLibs/20.0.0-ea+15/bundle/lib/jvmci/graal-sdk.jar:/home/andrea/.gluon/omega/graalLibs/20.0.0-ea+15/bundle/lib/truffle/truffle-api.jar --upgrade-module-path /home/andrea/.gluon/omega/graalLibs/20.0.0-ea+15/bundle/lib/jvmci/graal.jar -cp /home/andrea/.gluon/omega/graalLibs/20.0.0-ea+15/bundle/lib/jvmci/graal-sdk.jar:/home/andrea/.gluon/omega/graalLibs/20.0.0-ea+15/bundle/lib/jvmci/graal.jar:/home/andrea/.gluon/omega/graalLibs/20.0.0-ea+15/bundle/lib/svm/builder/svm.jar:/home/andrea/.gluon/omega/graalLibs/20.0.0-ea+15/bundle/lib/svm/builder/objectfile.jar:/home/andrea/.gluon/omega/graalLibs/20.0.0-ea+15/bundle/lib/svm/builder/pointsto.jar com.oracle.svm.hosted.NativeImageGeneratorRunner -imagecp /home/andrea/.gluon/omega/graalLibs/20.0.0-ea+15/bundle/lib/jvmci/graal-sdk.jar:/home/andrea/.gluon/omega/graalLibs/20.0.0-ea+15/bundle/lib/jvmci/graal.jar:/home/andrea/.gluon/omega/graalLibs/20.0.0-ea+15/bundle/lib/svm/builder/svm.jar:/home/andrea/.gluon/omega/graalLibs/20.0.0-ea+15/bundle/lib/svm/builder/objectfile.jar:/home/andrea/.gluon/omega/graalLibs/20.0.0-ea+15/bundle/lib/svm/builder/pointsto.jar:/home/andrea/workspace/client-samples/Maven/HelloWorld/target/classes: -H:CLibraryPath=/home/andrea/.gluon/omega/graalLibs/20.0.0-ea+15/bundle/lib/svm/clibraries/linux-amd64 -H:Class=hello.HelloWorld -H:+ReportExceptionStackTraces -H:ReflectionConfigurationFiles=/home/andrea/workspace/client-samples/Maven/HelloWorld/target/client/linux-x86_64/gvm/reflectionconfig-linux.json -H:JNIConfigurationFiles=/home/andrea/workspace/client-samples/Maven/HelloWorld/target/client/linux-x86_64/gvm/jniconfig-linux.json -H:TempDirectory=/home/andrea/workspace/client-samples/Maven/HelloWorld/target/client/linux-x86_64/gvm/tmp -H:IncludeResources=.*/.*frag$ -H:IncludeResources=.*/.*fxml$ -H:IncludeResources=.*/.*css$ -H:IncludeResources=.*/.*gls$ -H:IncludeResources=.*/.*ttf$ -H:IncludeResources=.*/.*png$ -H:IncludeResources=.*/.*jpg$ -H:IncludeResources=.*/.*jpeg$ -H:IncludeResources=.*/.*gif$ -H:IncludeResources=.*/.*bmp$ -H:IncludeResources=.*/.*license$ -H:IncludeResources=.*/.*json$ -H:IncludeResources=.*frag$ -H:IncludeResources=.*fxml$ -H:IncludeResources=.*css$ -H:IncludeResources=.*gls$ -H:IncludeResources=.*ttf$ -H:IncludeResources=.*png$ -H:IncludeResources=.*jpg$ -H:IncludeResources=.*jpeg$ -H:IncludeResources=.*gif$ -H:IncludeResources=.*bmp$ -H:IncludeResources=.*license$ -H:IncludeResources=.*json$ -H:Name=helloWorld -H:+ReportUnsupportedElementsAtRuntime -H:+AddAllCharsets -H:+AllowIncompleteClasspath -H:EnableURLProtocols=http,https
java.lang.RuntimeException: Error compiling
	at com.gluonhq.omega.SVMBridge.compile(SVMBridge.java:312)
	at com.gluonhq.omega.target.LinuxTargetProcess.compileApplication(LinuxTargetProcess.java:105)
	at com.gluonhq.omega.target.AbstractTargetProcess.compile(AbstractTargetProcess.java:328)
	at com.gluonhq.omega.Omega.nativeCompile(Omega.java:72)
	at com.gluonhq.NativeCompileMojo.execute(NativeCompileMojo.java:77)
	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:210)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:156)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148)
	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:305)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:192)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:105)
	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:956)
	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:192)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  32.817 s
[INFO] Finished at: 2019-08-27T12:05:09+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.gluonhq:client-maven-plugin:0.0.12:compile (default-cli) on project helloworld: Error: Error compiling -> [Help 1]

I tried adding <runtimeArgsList> -Xmx2G </runtimeArgsList> to the configuration section of client-maven-plugin but this was unsuccessful.

error C2371: 'size_t': redefinition; different basic types

While compiling in windows 10 64bit using VC 2019 I get this error :
launcher.c C:\Program Files (x86)\Microsoft Visual Studio\VC98\include\stdio.h(70): error C2371: 'size_t': redefinition; different basic types launcher.c: note: see declaration of 'size_t'
I set cl.exe 64bit in windows PATH.....
The log:

cl -c -DSUBSTRATE /MD /D_UNICODE /DUNICODE /DWIN32 /D_WINDOWS -ID:\Javafx Native\client-samples-master\Maven\HelloFXML\target\client\x86_64-windows\gvm\hellofxml launcher.c

Microsoft (R) C/C++ Optimizing Compiler Version 19.25.28614 for x64
Copyright (C) Microsoft Corporation. All rights reserved.

launcher.c
C:\Program Files (x86)\Microsoft Visual Studio\VC98\include\stdio.h(70): error C2371: 'size_t': redefinition; different basic types
launcher.c: note: see declaration of 'size_t'`

Build fails on Linux without explaining why

I have a JavaFX modular application.
When I copy the pom file from the examples and adapt them to my app, it fails after a few minutes running, without a reason.

Here's the full output:

mvn client:build                                                        
[INFO] Scanning for projects...
[INFO] 
[INFO] ------------------------------------------------------------------------
[INFO] Building logfx 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- client-maven-plugin:0.1.18:build (default-cli) @ hellogluon ---
[INFO] Scanning for projects...
[INFO] 
[INFO] ------------------------------------------------------------------------
[INFO] Building logfx 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] >>> client-maven-plugin:0.1.18: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 10 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] <<< client-maven-plugin:0.1.18:compile (default-cli) < process-classes @ hellogluon <<<
[INFO] 
[INFO] 
[INFO] --- client-maven-plugin:0.1.18:compile (default-cli) @ hellogluon ---
[Fri. Apr. 03 20:44:04 CEST 2020][INFO] ==================== COMPILE TASK ====================
[Fri. Apr. 03 20:44:04 CEST 2020][INFO] We will now compile your code for x86_64-linux-linux. This may take some time.
[Fri. Apr. 03 20:44:12 CEST 2020][INFO] [SUB] [com.athaydes.logfx.logfx:14801]    classlist:   5,624.44 ms,  0.96 GB
[Fri. Apr. 03 20:44:15 CEST 2020][INFO] [SUB] [com.athaydes.logfx.logfx:14801]        (cap):   1,296.20 ms,  0.96 GB
[Fri. Apr. 03 20:44:16 CEST 2020][INFO] [SUB] [com.athaydes.logfx.logfx:14801]        setup:   3,991.68 ms,  0.96 GB
[Fri. Apr. 03 20:45:56 CEST 2020][INFO] [SUB] [com.athaydes.logfx.logfx:14801]     (clinit):   1,188.09 ms,  5.39 GB
[Fri. Apr. 03 20:45:57 CEST 2020][INFO] [SUB] [com.athaydes.logfx.logfx:14801]   (typeflow):  46,425.30 ms,  5.39 GB
[Fri. Apr. 03 20:45:57 CEST 2020][INFO] [SUB] [com.athaydes.logfx.logfx:14801]    (objects):  46,978.50 ms,  5.39 GB
[Fri. Apr. 03 20:45:57 CEST 2020][INFO] [SUB] [com.athaydes.logfx.logfx:14801]   (features):   3,087.71 ms,  5.39 GB
[Fri. Apr. 03 20:45:57 CEST 2020][INFO] [SUB] [com.athaydes.logfx.logfx:14801]     analysis: 100,525.41 ms,  5.39 GB
[Fri. Apr. 03 20:45:59 CEST 2020][INFO] [SUB] [com.athaydes.logfx.logfx:14801]     universe:   2,033.96 ms,  5.39 GB
[Fri. Apr. 03 20:46:09 CEST 2020][INFO] [SUB] [com.athaydes.logfx.logfx:14801]      (parse):   9,454.61 ms,  5.43 GB
[Fri. Apr. 03 20:46:18 CEST 2020][INFO] [SUB] Error: Image build request failed with exit status 137
[Fri. Apr. 03 20:46:18 CEST 2020][SEVERE] Process compile failed with result: 137
Check the log files under /home/renato/programming/projects/LogFX/target/client/x86_64-linux/gvm/log
And please check https://docs.gluonhq.com/client/ for more information.
[Fri. Apr. 03 20:46:18 CEST 2020][INFO] Logging process [compile] to file: /home/renato/programming/projects/LogFX/target/client/log/process-compile-1585939578178.log
[Fri. Apr. 03 20:46:18 CEST 2020][SEVERE] Compiling failed.
Check the log files under /home/renato/programming/projects/LogFX/target/client/x86_64-linux/gvm/log
And please check https://docs.gluonhq.com/client/ for more information.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:15 min
[INFO] Finished at: 2020-04-03T20:46:18+02:00
[INFO] Final Memory: 13M/54M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.gluonhq:client-maven-plugin:0.1.18:compile (default-cli) on project hellogluon: Compiling 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
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:18 min
[INFO] Finished at: 2020-04-03T20:46:18+02:00
[INFO] Final Memory: 10M/40M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.gluonhq:client-maven-plugin:0.1.18:build (default-cli) on project hellogluon: Error, client: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

The log files only contain the same information as above.

I tried compiling the HelloFXML sample as well, with the exact same result.

According to the Gluon Client docs, I need to have gcc and ld installed. Here are the versions I have:

 HelloFXML git:(master) gcc --version                                      
gcc (Ubuntu 9.2.1-9ubuntu2) 9.2.1 20191008
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

โžœ  HelloFXML git:(master) ld --version                                       
GNU ld (GNU Binutils for Ubuntu) 2.33
Copyright (C) 2019 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) a later version.
This program has absolutely no warranty.

My OS:

uname -a
Linux renato 5.3.0-45-generic #37-Ubuntu SMP Thu Mar 26 20:41:27 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

The GraalVM installation:

java --version
openjdk 11.0.5 2019-10-15
OpenJDK Runtime Environment (build 11.0.5+10-jvmci-19.3-b05-LTS)
OpenJDK 64-Bit Server VM GraalVM 20.1.0-dev (build 11.0.5+10-jvmci-19.3-b05-LTS, mixed mode, sharing)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.