I was working on project , I closed my android studio and then opened it again , I was trying to create a new project in flutter but suddenly an error appeared to me as posted below , I cannot run any commends like pub get , pub run , whenever I prefer any of them the error appears , if any one could help , that would be appreciated , I have checked most answers but none of them helped , i don't know what happened exactly . thank you
This is the error
Exception: Cannot run program "E:\flutter\flutter\bin\flutter.bat" (in directory "E:\flutter\flutter"): CreateProcess error=2, The system cannot find the file specified
This is a screenshot of the error appearing
Envirenment Variables
I think you have to exclude exe or bat file name
for example, E:\flutter\flutter\bin <<<enough, clean
and you can follow and guess through next sentences
if you are beginner like me, follow me. i will explain it detail. Windows7 case or something. I did for 3 days. finally, i found it
Basically, 1.git program already installed (on program files) 2.flutter.bat installed (C:\name(i did nee or see..whatever)\flutter\bin) dont install on program files
you did right? now, you meet to hell soon. you dont find flutter. 'where' what is path? what is right.... dont worry
Foysal Khandakar joy mentioned
for setting env = enviroment. you commend env and click we have a two type. User variable and System variable. Both are important. never wrong
If you want to addition Path, have to use ; semi-colon (in front of new path) for example, First, User Variable Path case
C:\nee\flutter\bin
C:\nee\flutter\bin;C:\nee\flutter (if you want for flutter_console)
but first is clean. enough. not important Second, System Variable Path case, You have to resister all together with ; C:\Program Files\Git\cmd;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32
C:\Program Files\Git\cmd
C:\Windows\System32\WindowsPowerShell\v1.0
C:\Windows\System32
Another case, Someone can follow next. When you insert only first and third, maybe if you are typing flutter_console on cmd, guide will be appeared. Please insert your path. http:// some blabla~~~ You have to resister second path about powershell additionally on system variable.
if you follow, you can go to sleep ^^
Related
I've scoured other forums that talk about this problem and have tried all of the recommendations I've found, but I cannot seem to get VSCode to recognize my Julia.exe path and execute commands in a .jl file. Every time I run even a simple .jl file, I get /bin/sh: julia: command not found (pictured below).
I have ensured that the executable path is set properly in the .json file, and have tried moving the executable to other locations (using an M1 Mac), but it seems it still cannot find/recognize the Julia.exe:
I have even tried just pointing to the binary folder /bin, and /bin/julia.exe (with the extension), and though VSCode does not generate the error when it cannot confirm the .exe path, the actual code still generates the error above.
I'm at my wits end here. I'm sure it's a simple answer that someone could spot in a second, or know the troubleshooting for, but I've never had this issue to this degree before with installing other languages like Kotlin. Any help is greatly appreciated.
Problem was fixed by the MacOS recommendation found here:
julialang.org/downloads/platform/#optional_add_julia_to_path
Copying the binary .exe elsewhere (outside of /Applications) and changing the executable path in VSCode fixed the issue.
I have downloaded flutter_windows_1.17.1-stable and extracted it outside the program files, yet whenever I run the 'flutter doctor' command I am getting the message '\flutter\bin\cache was unexpected at this time.'
I have searched about this and found few solutions suggesting to delete the cache folder in bin of flutter directory, I did that, also added the path in environment variables, still having the same message.
Please, I need suggestion on how to fix this.
Thank you.
Faced similar issue, I initially created C:\Program Files(Manual)\Flutter
and added to user env path variable, but got Cache error, only when I moved to c:\src\Flutter it worked, I'd say paths with spaces (and or special chars '(' ')' ' ' aren't accepted
While you're using windows, go to the system environment variables from the search and edit flutter path variable, change it to the binary folder like C:\src\flutter\bin.
When I ran into this issue, I had already installed flutter several times to fix previous errors. This issue can happen if flutter is not installed in your environment variables, but it also happens if there is another duplicate or path to another bin in the same host. Also, make sure to check on all places for duplicate paths to two or more flutter bins. There are environment variables for your account, and environment variables for the entire PC. Be sure to check in both
Make sure you extract all your files to c:/src/flutter
If the problem is still there , then to run commands use c:/src/flutter/bin
I.e., include bin to your path
I had the same issue. I tried all the above solutions, but they did not work. So I also changed the path. The solution was to direct the CMD to Flutter's main directory.
Example: You want to run the code flutter doctor. You expect to open the CMD and run the code, so you get the result while you have configured the env and path, but it does not. To run the code, go to the same directory you installed the flutter and then run your codes;
E:\Program Files\flutter> flutter doctor
I hope it works for you as it worked for me. GL
1.) Move the Flutter folder to your C Drive.
2.) Create a new Folder called "src".
3.) Move Flutter folder to src.
4.) Add C:\src\flutter\bin to Path in Control Panel -> User Accounts -> Enviorments -> Path -> edit
first if you changed your flutter's location and if you gave path again to variables, you you need to dalate old path of flutter and it works.
I'm new to cmder so excuse me if it's a basic question.
So when I open cmder, I keep getting these PATHS as "were unexpected at this time"
An image for the paths that load on startup:
I tried to extract cmder to another folder, delete them from user/system variables and add them according to cmder-github-wiki but I kept getting the same bug/error/hint or whatever it is.
I don't know if it affect my workflow or not but I hate seeing errors before I begin anything! xD
1:
Try the following:
Check your PATH variable for syntax errors, especially near any occurance of Python related things.
Check something like an "autostart.bat" that CMDer runs at every start. The culprit may be located there, near any occurance of PATH or invoking files or directories which do not exist anymore.
Please clarify: What exactly are you invoking and in which directory, to start CMDer / to get this output? Which files did you edit and what are the contents of those files?
As last resort try uninstalling and reinstalling CMDer. The execution is probably broken since the move to another directory you described and the problem might be hard to track.
i'm trying to run a Go program and it always gives me this error i tried googling it but nothing can't see what's the problem! ScreenShot
Executable file (C:/Users!/ABDELLATIF-PC/Desktop/SimpleComputerRemote/Host/bin/server.exe) doesn't exist
Its a build issue. Check your bin folder
Whether program has access to the folder
Check preferences and missing references for the golang project.
The setup process should be driven by Host/install/windows/innosetup-x64.iss for InnoSetup:
You need to check if the setup properly installed the exe, and why it looks for C:/Users!/... instead of C:/Users/...
I managed to find the issue, It is no configuration issue or anything. You have to do 3 things as follows,
1) Make sure GOPATH value is different from GOROOT.
2) Make sure GOBIN value is empty.
3) Your package name on the go file in eclipse should be main and not the package name "hello". This should be the case for at least the file that has main function. To do this, File->New go file->Source file type should be -> Command source file-> Empty main function. Then type your code after which you can build to see the the .exe file in GOPATH/bin and the program run.
Worked for me.
When i am trying to open eclipse exe file , window is not opened , why this is happened , previously it is working fine but today it is not opened any changes i need to do?it will help full if any one gave quick fix .
thanks
Ramana
(The OP ramana solved it by uninstalling and re-installing Java, but below is another potential cause)
Check if your PATH hasn't changed somehow: see Java Tips: “Adventure” in resolving the Java error “Error occurred during initialization of VM”
Running Java.exe produce error in other directories (since the SDK’s bin is added to path.)
However running in it’s bin directory, it runs fine.
In the case of the ips mentioned before, the issue was:
The good news is that it is nothing supernatural or magical image but the bad news is that the Windows directory is the “protagonist” image.
From file search, it can be concluded that somehow certain mischievous program is copying some crucial java files into Windows directory which are stored in path, and so unless the java’s bin is the foremost in the path, one will bound to get the error.
The error occurs because java.exe or other Java executable expect some support files and directories to be found but obviously could not find it in Windows directory.
Running the java.exe in its bin directory will not produce error because Windows will use the current directory to which the file is run first before searching for it in the path.
That might not be the case for you, but that could still be related to a PATH issue.