make ForgedAlliance.exe executable on Linux
See original GitHub issuewhen starting a game on Linux the following error occures:
2019-01-02 13:00:26.006 WARN 7291 --- [ Thread-627] com.faforever.client.game.GameService : Game could not be started
java.util.concurrent.CompletionException: com.github.nocatch.NoCatchException: java.io.IOException: Cannot run program "~/.faforever/bin/ForgedAlliance.exe" (in directory "~/.faforever/bin"): error=13, Permission denied
at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:314) ~[na:na]
at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:319) ~[na:na]
at java.base/java.util.concurrent.CompletableFuture$UniAccept.tryFire(CompletableFuture.java:718) ~[na:na]
at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506) ~[na:na]
at java.base/java.util.concurrent.CompletableFuture.complete(CompletableFuture.java:2073) ~[na:na]
at com.faforever.client.replay.ReplayServerImpl.lambda$start$2(ReplayServerImpl.java:109) ~[downlords-faf-client-0.9.3-beta.jar:0.9.3-beta]
at java.base/java.lang.Thread.run(Thread.java:844) ~[na:na]
Caused by: com.github.nocatch.NoCatchException: java.io.IOException: Cannot run program "/home/sws/.faforever/bin/ForgedAlliance.exe" (in directory "/home/sws/.faforever/bin"): error=13, Permission denied
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[na:na]
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[na:na]
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[na:na]
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:488) ~[na:na]
at com.github.nocatch.NoCatch.wrapException(NoCatch.java:61) ~[nocatch-1.1.jar:na]
at com.github.nocatch.NoCatch.noCatch(NoCatch.java:104) ~[nocatch-1.1.jar:na]
at com.github.nocatch.NoCatch.noCatch(NoCatch.java:82) ~[nocatch-1.1.jar:na]
at com.faforever.client.game.GameService.lambda$startGame$33(GameService.java:467) ~[downlords-faf-client-0.9.3-beta.jar:0.9.3-beta]
at java.base/java.util.concurrent.CompletableFuture$UniAccept.tryFire(CompletableFuture.java:714) ~[na:na]
... 4 common frames omitted
Caused by: java.io.IOException: Cannot run program "/home/sws/.faforever/bin/ForgedAlliance.exe" (in directory "/home/sws/.faforever/bin"): error=13, Permission denied
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1128) ~[na:na]
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1071) ~[na:na]
at com.faforever.client.fa.ForgedAllianceService.launch(ForgedAllianceService.java:128) ~[downlords-faf-client-0.9.3-beta.jar:0.9.3-beta]
at com.faforever.client.fa.ForgedAllianceService.startGame(ForgedAllianceService.java:73) ~[downlords-faf-client-0.9.3-beta.jar:0.9.3-beta]
at com.faforever.client.game.GameService.lambda$startGame$32(GameService.java:467) ~[downlords-faf-client-0.9.3-beta.jar:0.9.3-beta]
at com.github.nocatch.NoCatch.noCatch(NoCatch.java:100) ~[nocatch-1.1.jar:na]
... 7 common frames omitted
Caused by: java.io.IOException: error=13, Permission denied
at java.base/java.lang.ProcessImpl.forkAndExec(Native Method) ~[na:na]
at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:339) ~[na:na]
at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:270) ~[na:na]
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1107) ~[na:na]
... 12 common frames omitted
Setting the executable bit on ~/.faforever/bin/ForgedAlliance.exe
fixes this error
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
LINUX SUPPORT IS HERE - Forged Alliance Forever
i`m trying to join some game (or create) and get black screen for few ... FA via executable: /home/test1/FAForever/bin/ForgedAlliance.exe
Read more >How to run an .exe from linux command prompt - Super User
Here are some ways how to do that. But first, make sure it's executable. You can check whether the x (executable) flag is...
Read more >Supreme Commander: Forged Alliance - PCGamingWiki PCGW
The only relevant differences between the patched GOG and the Steam version will be SupremeCommander.exe and a couple of LUA files in the...
Read more >Game Details for Supreme Commander: Forged Alliance
Launch the game from FAForever, if you see the watermark, then everything's working as expected, you can run dgVoodooCpl.exe again and remove the...
Read more >Can Linux Run .exe Files? How to Run Windows Software on ...
1. Yes, you can run .exe files on Linux through Wine (a free software). Wine is a compatibility layer that acts between the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Also having the same issue as @tatsujb kinda sucks since I have 0 rank and 0 games played, makes it difficult to get into custom games…
I wonder if the previous 1v1 support should be re-opened and this be there instead? Would be more semantic given the title of this issue.
Linking to the 1v1 thread for the above issues tatsu and I where having: https://github.com/FAForever/downlords-faf-client/issues/1095