Skip to content
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

'defects4j' is not recognized as an internal or external command #427

Open
Furqan1990 opened this issue Jul 29, 2021 · 4 comments
Open

'defects4j' is not recognized as an internal or external command #427

Furqan1990 opened this issue Jul 29, 2021 · 4 comments

Comments

@Furqan1990
Copy link

I need help with this problem
"'defects4j' is not recognized as an internal or external command,
operable program or batch file." I am trying to give Defects4J PATH but it's always giving me an error. I am using windows 10 operating system
Capture

@rjust
Copy link
Owner

rjust commented Jul 30, 2021

On Windows, you may need to call the defects4j command using perl <fullpath to defects4j>\defects4j.

@Furqan1990
Copy link
Author

On Windows, you may need to call the defects4j command using perl <fullpath to defects4j>\defects4j.

Access Denied

@rjust
Copy link
Owner

rjust commented Dec 31, 2021

@Furqan1990 have you been able to solve this issue on Windows?

@rjust rjust mentioned this issue Jan 1, 2022
@h4iku
Copy link
Contributor

h4iku commented Apr 29, 2022

I don't think Defects4J will work on Windows cmd or PowerShell. There are Bash files and Bash commands in the code.

As long as you are in the Perl realm, some parts work. For example, The info command for projects and bugs works. But first, there is ./init.sh, and after that, you hit the Major framework's Bash files for compiling and testing projects. There are also some hardcoded Bash commands in the Perl code.

The easiest way to use Defects4J on Windows is through WSL. I think it's better to mention this in the README. The README says on Windows use perl "fullpath"\defects4j, and as a newcomer, you may assume by that instruction it will work on Windows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants