Cannot use jar command on windows - windows

The jar command is not working on my box. I have downloaded the jdk, and set the envar "Path" to include the path to the jdk \bin directory. However, I still get that annoying message, "'jar' is not recognized as an internal or external command, operable program or batch file." Does anyone have any suggestions to solve this problem?

I think from the error message that you're using Windows?
If so, did you try it in a command prompt that you opened after changing your path using the GUI? And did you double check for typos in the path you added?
You can always try running "echo %PATH%" to check your path, and ensure your change is both showing up and error free

Can you paste the result of env command ? Or please launch new command prompt, then please try again if you think you configuration is Ok.

Related

'mvn' command is not recognized as an internal or external command, was working

Yesterday, I went through a tutorial that had me set up maven, and I got the project working, and shutdown the windows pc.
Now today, the mvn command isn't working.
C:\>mvn -version
'mvn' is not recognized as an internal or external command,
operable program or batch file.
My system variable:
MAVEN_HOME=C:\opt\apache-maven-3.6.3
My path variable includes this at the end:
;%MAVEN_HOME%\bin
It looks like my system variable is set up correctly:
Make sure that when you're seetting up your M2_HOME that it's pointing to you Maven basedir, NOT the bin dir.
Afterwards, make sure to set the path and PATH something like so: (PATH=%M2_HOME%\bin;%PATH%).
Then restart your machine and run this command.
dir %M2_HOME%\bin\mvn*
If there is a .bat file, it should work since you seem to run Windows. If there isn't one, then your paths are not right and you need to make sure your %PATH% variable points to the correct path to Maven.
Not sure why, but its working as it should today, no changes were made other than a restart of the windows PC. Will continue to monitor, but I can't replicate the problem to investigate it anymore.

exe command not recognised in win32 folder

I have placed a mycmd.exe file in system32 folder under windows directory.
Strange thing is that this is accessible from command prompt but when i access this file as a shell command from my VB6 application it shows is "not recognized as an internal or external command"
I am running VB project as run as administrator and using win8 64bit.
Thanks for the anticipated help!!
The WOW64 filesystem redirector is probably taking your program's path and changing it.
See: File System Redirector
Can you show the exact code you're using to run the EXE? The error you're getting makes it clear that VB isn't finding the file. Have you tried appending the path to the specific file you're trying to execute?

Why is PowerShell "not recognized" when installing Chocolatey?

I went to the Chocolatey website and copied the text for installing it and pasted into the administrator cmd.exe (using Windows 7). When I run the command I get:
'powershell' is not recognized as an internal or external command, operable program or batch file.
This GitHub article with Chocolatey installation instructions says:
This really is the easiest method because it requires no configuration of PowerShell prior to executing it.
It turns out that #balint was right about the path being incorrect. The path variable at some point had gotten replaced instead of appended to. I was able to install Chocolatey successfully after appending all the paths that had been erased previously!
you have some faulty PowerShell installation, or it is missing from the Windows PATH variable. Run in an administrator cmd:
cmd> set PATH=%PATH%;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\

IntelliJ terminal setup

I used to run gradle test via IntelliJ terminal with following command,
>gradle test Accidentally I deleted my windows path environmental variable in my windows 7 machine.
After this when I run above command I get below error
'gradle' is not recognized as an internal or external command,
operable program or batch file.
What should I add in path environmental variable to get this run again
IntelliJ version 13.0.3
I added all java and gradle path under env. variable (I can run test via cygwin with above command)
Thanks
This issue was resolved after restarting the windows. Because after adding path to the env variable and restart IntelliJ was not enough.
I should have done this before posting the question.
Please bear with me if any convenience caused.
Cheers

Hudson -- Windows execute windows batch command

I currently running the following commands on a hudson slave deployed on a windows machine.
dir
cmd
mvn clean install
I get the following return on the build.
mvn' is not recognized as an internal or external command,
operable program or batch file.
I have set the correct path on the node which points to the hudson installation on the windows machine.
I have also set the correct Path for JAVA and M2_HOME on the windows slave machine.
I was hoping for the correct way to call maven and maybe another *.bat file if need be in the future.
Please and thank you
I still haven't figured this out. A good work around is to use the full path to mvn to run it. Which worked for me.

Resources