java.io.IOException: Cannot run program "/mnt/d/GraalVM-Projects/gluonhq/gluon-samples/HelloGluon/target/gluonfx/aarch64-android/gvm/android_project/gradlew": error=2, No such file or directory
Opened this issue · 0 comments
ctoabidmaqbool commented
Hi! I am using WSL (Ubuntu) on Windows 10 OS
. All is going well but when I try to execute package
or link
tasks, something went wrong!
Expected Behavior
The error happens instead of executing package task secessfully!
maqboolstudiopc@MSC-30:/mnt/d/GraalVM-Projects/gluonhq/gluon-samples/HelloGluon$ mvn -Pandroid gluonfx:package
[INFO] Scanning for projects...
[INFO]
[INFO] -------------------< com.gluonhq.samples:hellogluon >-------------------
[INFO] Building HelloGluon 1.0.0-SNAPSHOT
[INFO] from pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[WARNING] 6 problems were encountered while building the effective model for org.openjfx:javafx-graphics:jar:20.0.2 during dependency collection step for project (use -X to see details)
[INFO]
[INFO] --- gluonfx:1.0.25-SNAPSHOT:package (default-cli) @ hellogluon ---
[Mon Nov 18 11:15:49 PKT 2024][INFO] ==================== PACKAGE TASK ====================
java.io.IOException: Cannot run program "/mnt/d/GraalVM-Projects/gluonhq/gluon-samples/HelloGluon/target/gluonfx/aarch64-android/gvm/android_project/gradlew": error=2, No such file or directory
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1170)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1089)
at com.gluonhq.substrate.util.ProcessRunner.setupProcess(ProcessRunner.java:378)
at com.gluonhq.substrate.util.ProcessRunner.runProcess(ProcessRunner.java:236)
at com.gluonhq.substrate.util.ProcessRunner.runProcess(ProcessRunner.java:222)
at com.gluonhq.substrate.target.AndroidTargetConfiguration.packageApp(AndroidTargetConfiguration.java:159)
at com.gluonhq.substrate.SubstrateDispatcher.nativePackage(SubstrateDispatcher.java:458)
at com.gluonhq.NativePackageMojo.execute(NativePackageMojo.java:48)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:126)
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2(MojoExecutor.java:328)
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute(MojoExecutor.java:316)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:174)
at org.apache.maven.lifecycle.internal.MojoExecutor.access$000(MojoExecutor.java:75)
at org.apache.maven.lifecycle.internal.MojoExecutor$1.run(MojoExecutor.java:162)
at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute(DefaultMojosExecutionStrategy.java:39)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:159)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:105)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:73)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:53)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:118)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:261)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:173)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:101)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:906)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:283)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:206)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:255)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:201)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:361)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:314)
Caused by: java.io.IOException: error=2, No such file or directory
at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)
at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:295)
at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:225)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1126)
... 32 more
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 12.712 s
[INFO] Finished at: 2024-11-18T11:15:54+05:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.gluonhq:gluonfx-maven-plugin:1.0.25-SNAPSHOT:package (default-cli) on project hellogluon: Error: Cannot run program "/mnt/d/GraalVM-Projects/gluonhq/gluon-samples/HelloGluon/target/gluonfx/aarch64-android/gvm/android_project/gradlew": error=2, No such file or directory -> [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
Current Behavior
Errors happens instead of executing package
or link
tasks.
Steps to Reproduce
- clone gluon samples e.g. HelloGluon
- Run build task:
mvn clean -Pandroid gluonfx:build
- Run package task:
mvn -Pandroid gluonfx:package
All commands:
wsl
cd /mnt/d/GraalVM-Projects/gluonhq
git clone https://github.com/gluonhq/gluon-samples.git
cd gluon-samples/HelloGluon
mvn clean -Pandroid gluonfx:build
mvn clean -Pandroid gluonfx:package
Your Environment
- Windows 10 with WSL 2 (Ubuntu 20.04.6 LTS)
- Latest gluonfx-maven-plugin: 1.0.25-SNAPSHOT
- Latest substrate: 0.0.65-SNAPSHOT
Possible fixes:
dos2unix /mnt/d/GraalVM-Projects/gluonhq/gluon-samples/HelloGluon/target/gluonfx/aarch64-android/gvm/android_project/gradlew
/mnt/d/GraalVM-Projects/gluonhq/gluon-samples/HelloGluon/target/gluonfx/aarch64-android/gvm/android_project/gradlew -p /mnt/d/GraalVM-Projects/gluonhq/gluon-samples/HelloGluon/target/gluonfx/aarch64-android/gvm/android_project assembleDebug
@jperedadnr @johanvos Please try to fix AOSP, as I have run run this menuely eveytime!