-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
java.io.IOException: Cannot run program "java": CreateProcess error=206, The filename or extension is too long #250
Comments
@kawalbhatia The I just released Courgette version Refer to the example project here: https://github.com/prashant-ramcharan/courgette-jvm-classpath-example |
@prashant-ramcharan _ i tried using the classpath option. It is giving this error : Created at 2021-02-01T12:48:05.037Corrupted STDOUT by directly writing to native stream in forked JVM 1. Stream 'Error: Could not find or load main class io.cucumber.core.cli.Main'. |
This suggests that you may have incorrectly configured the classpath. Please see the example project on how to configure it correctly. Can you paste your runner and pom.xml here? |
Hi @prashant-ramcharan , Please find below the runner file I am using. And also attached is the pom.xml file ( attaching zip format as it is not allowing directly) package paralelrunner; import courgette.api.CourgetteOptions; import org.testng.annotations.AfterClass; import com.cucumber.uvs.ecom.helper.reporter.ReporterUtil; @test public class FeatureSuite extends TestNGCourgette {
} |
Can you see all the project libs (jar files) in the You should try running the And do you get the same error when running this: https://github.com/prashant-ramcharan/courgette-jvm-classpath-example/tree/master/courgette-jvm-maven |
Hi @prashant-ramcharan , Thanks for looking in to it .
Created at 2021-02-01T19:02:37.659Corrupted STDOUT by directly writing to native stream in forked JVM 1. Stream '@example'. |
Can you try running the Courgette runner directly? Not using the Also confirm the following:
|
Hi @prashant-ramcharan , I executed the https://github.com/prashant-ramcharan/courgette-jvm-classpath-example/tree/master/courgette-jvm-maven directly using runner file without maven-surefire plugin and it worked like a charm without any error. Also find below other details as required : Operating system : Windows 10 pro |
That's great @kawalbhatia I assume you running the maven tests from IntelliJ or Eclipse? Can you try running |
Hi @prashant-ramcharan - Tried running mvn test from command line . Getting the same error while executing through mvn test . |
Ok to go back to the original issue which is the If not, please share a project I can use. |
Hi @prashant-ramcharan , I hope you are referring to original issue i was getting with version 5.9.1 of Courgette library. Please find attached the sample project , if we run using maven(mv test) on windows, it gives the java.io.IOException: Cannot run program "java": CreateProcess error=206, The filename or extension is too long. We have two test runner file here :
Please let me know in case more details are required. |
Thanks @kawalbhatia - will take a look. |
@kawalbhatia I ran your project on a Windows machine and I don't get the Create Process 206 error. I also had to update your Courgette runner and pom file to make it work. Your plugins were incorrect and had missing deps. The runner now uses a custom class path as mentioned in my earlier comment. See updated project attached: UPDATED_ParallelExecution.zip Here is the video: https://recordit.co/Rfk3VqU38o (Windows 10 + Maven + Java 8) |
Hi @prashant-ramcharan - Thanks very much for looking in to it . |
Getting the error : java.io.IOException: Cannot run program "java": CreateProcess error=206, The filename or extension is too long
I am using Maven to build and test . when i am executing the runner file without Courgette option, it works well without any issue. However with Courgette option, it gives this error.
Tried following the steps in below link but not working:
https://maven.apache.org/surefire/maven-surefire-plugin/examples/class-loading.html
The text was updated successfully, but these errors were encountered: