question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Does not run on Windows machine.

See original GitHub issue

When running on a windows machine this error is produced.

    java.io.IOException: Cannot run program "java": CreateProcess error=206, The filename or extension is too long
    	at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
    	at courgette.runtime.CourgetteFeatureRunner.run(CourgetteFeatureRunner.java:27)
    	at courgette.runtime.CourgetteRunner.runFeature(CourgetteRunner.java:143)
    	at courgette.runtime.CourgetteRunner.lambda$run$1(CourgetteRunner.java:47)
    	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    	at java.lang.Thread.run(Thread.java:745)
    Caused by: java.io.IOException: CreateProcess error=206, The filename or extension is too long
    	at java.lang.ProcessImpl.create(Native Method)
    	at java.lang.ProcessImpl.<init>(ProcessImpl.java:386)
    	at java.lang.ProcessImpl.start(ProcessImpl.java:137)
    	at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
    	... 7 more

Here’s the runner suite.

@RunWith(Courgette.class)
@CourgetteOptions(
        threads = 10,
        runLevel = CourgetteRunLevel.FEATURE,
        rerunFailedScenarios = true,
        showTestOutput = true,
        reportTargetDir = "build",
        cucumberOptions = @CucumberOptions(
                glue = "com.sap.automation",
                features = "classpath:features",
                plugin = {
                        "pretty",
                        "html:target/cucumber-html-report",
                        "json:target/cucumber-reports/Cucumber.json",
                        "junit:target/cucumber-reports/Cucumber.xml"},
                monochrome = true
        ))

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:19 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
hemachandraraokcommented, Aug 8, 2020

Resolved it by mapping a drive (say M:) to point to maven .m2 repository and specifying <localRepository>M:</localRepository> in settings.xml

1reaction
prashant-ramcharancommented, Oct 18, 2018

If you provide an example project which can reproduce this issue on a Mac as well, I can take a look but it sounds like you facing other non Courgette related issues.

I’ll close this issue but feel free to re-open it if you find that your errors are related to Courgette.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix the "This App Can't Run on Your PC" Error in ...
Right-click the app's executable file and select Properties. Open the Compatibility tab, check Run this program in compatibility mode for, and ...
Read more >
PC Won't Turn on? Why and How to Fix It in 10 Ways
Try a different power source. If you try to turn on your computer and absolutely nothing happens, there are generally only two possibilities....
Read more >
How to perform a clean boot in Windows - Microsoft Support
Follow troubleshooting steps to install, uninstall, or run your application. Your computer might temporarily lose some functionality while in a clean boot ...
Read more >
Top 10 Solutions to Fix This App Can't Run on Your PC in Win ...
Safe Fix Cannot Run App in Windows 10 · Solution 1: Download and Install the Right Version of Programs · Solution 2: Update...
Read more >
Troubleshooting - My Computer Won't Boot Windows - Intel
Troubleshooting - Why Won't My Computer Boot to Windows · 1. Find the battery. Locate the CMOS on your motherboard (it's a silver,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found