gluonhq / client-samples

Client samples to run with Gluon Client plugins for Maven and Gradle
114 stars 23 forks source link

Run failed in ubuntu(wsl) #31

Open xqdd opened 4 years ago

xqdd commented 4 years ago

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$