I am facing this problem :
the CATLALINA_HOME environment variable contains this value:
"?C:\Tomcat" instead of "C:\Tomcat".
I don't know where this "?" comes from.
I am working on Windows.
thanks
Usually that variable comes from catalina.sh or catalina.bat look for this files in your Tomcat/bibn folder.
If you're working on Windows just open the file .bat: catalina.bat
Related
C:\apache-jmeter-4.0\bin>jmeter.bat
The JMETER_HOME environment variable is not defined correctly
This environment variable is needed to run this program
JMETER_HOME is set correctly in environment variable.
ApacheJMeter.jar is working fine.
Similar issue found in below link but this also not helping me.
JMETER_HOME environment variable is not defined
You don't need to set JMETER_HOME variable manually, jmeter.bat script should detect it automatically.
Just in case you want to override it for any reason make sure you do this carefully and the variable points to your JMeter installation like:
set JMETER_HOME=C:\apache-jmeter-4.0 pushd %JMETER_HOME% && jmeter.bat
It might also be the case that Windows doesn't have necessary permissions assuming JMeter lives in root of system drive, try running command prompt as Administrator
More information:
Running JMeter
How to Get Started With JMeter: Part 1 - Installation & Test Plans
You don't need to set JMETER_HOME path explicitly under user variables, just add/change under system variables under path variable as your bin path. If you already have earlier version of JMeter just append with latest version. Path looks like : C:\XXX\apache-jmeter-4.0\bin
I use Windows 10. When I run Heroku Cli (64) installation I get an error "PATH not updated, original length 1585 > 1024". How to solve this problem?
I got it to work on Windows 10.
I tried two things and I'm unsure which one got Heroku to work. The first thing you can try is adding it to PATH in CMD or Git Bash in this post.
You should also try to manually add it to PATH by going to Settings->Advanced System Settings->Environment Variables and adding a system variable with name PATH and with value "C:\Program Files\Heroku\bin" or wherever you have your heroku.exe file.
This will manually update the PATH.
I may be too late to answer this question but I'll share what worked for me, in case some one else ran into the same issue.
Basically, with time my path variable had too many variables added to it, and apparently, there is a characters limit that can be added to the PATH variable.
I deleted a few variables in the PATH that I do not need anymore, and that was all!
The Installer is trying to apply an environment variable to the Path. But there are already too many variables setup. Delete the ones that you no longer require and it should work.
You could access the System Environment variables by visiting- Settings->Advanced System Settings->Environment Variables
I just came across with the same problem. The solution I used is similar to selflearningcode but instead of setting a system variable which failed, I set a user variable.
Try this after selflearningcode's answer, if you can echo %PATH% and it displays heroku you should be good to go. Else, set a user variable on the same screen by adding a new entry to the path and it should work.
Note: Start a new terminal for the effects to be visible.
You might have to set Environment variables in Advanced System Settings.
If there is already a path defined, just append your path with ;
ex:
Existing path(It can be anything, just as an example): C:\Program Files (x86)\Google\Chrome\Application
If you want to add heroku path: C:\Program Files (x86)\Google\Chrome\Application;C:\Program Files\Heroku\bin
Hope it works.
I would like to ask you if it's normal that my "Setting environment" changes after each system reboot or even if I just close my cmd console.
for example, I'm using python 3.5, when I wan to use python or to uses pip under the cmd I got an error like :
C:\>python
'python' is not recognized as an internal or external command,
operable program or batch file.
To fix this, I use :
set PATH=%PATH%;C:\Python35
It works after, but as I said before, once I restart my computer, or I close the console, I've the same problem !!!
Thanks in advance for your help and comments. I just would like to inform you that I'm using Windows 7 - 64bits.
You need to add this path in System (Windows+Pause key), Advanced, Environment variables. There you have two sections, System and User, in System, edit the PATH key.
The next time you start a console the path will be present.
Alternaly, if you don't want to modify the setting there (or you have no rights) you could start the app with a batch file which sets the path before launching the app.
In Ruby you can adapt the environment variables from within the script itself by using ENV eg ENV['path'] += 'C:\\Python35'
, I'm sure Python can do this too but wouldn't know how. In your use case this won't help of course.
The SETX command will set the variable permanently. Use SETX /? for information. Set a persistent environment variable from cmd.exe
For Python, many developers use venv which is included with the Python install. https://docs.python.org/3/library/venv.html?highlight=venv#module-venv
I keep getting that error, in Command Prompt, even though I have followed both the online instructions and the Question solution here ant - not recognized as an internal.
I've followed this: ant.apache.org/manual/install.html and have downloaded Apache ANt 1.8.2 and set my variables to C:\ant, which is what I was using for the ant install. ANT_HOME was the variable that I was using. I added this on to the environment var path: %ANT_HOME%\bin;. I even made another variable and called it PATH and added %ANT_HOME%\bin; to it. I did all this in the System variables. After a restart, I logged in and it still did not allow me to use the ant -version command to retrieve any information about the ANT install. I have also started several new Command Prompt instances and I was still getting an error from "ant -version".
My System Variables have both ANT_HOME and JAVA_HOME accounted for. C:\ant is where my ANT_HOME is, so I set the ANT_HOME variable's value to that. %JAVA_HOME%\bin;%ANT_HOME%\bin; is at the end of the 'Path' variable. I resetted my computer and made several Command Prompt instances afterwards, and still doesn't recognize ANT. I can request Java's information without any difficulty, but not ANT's. Please assist.
I've set the variables correctly, and also set another PATH that isn't my original path variable. Please let me know if there is something that I'm doing wrong.
EDIT: updated by request of trashgod.
Just checking:
You need to define in your environment variables ANT_HOME=C:\ant as well as the relevant JAVA_HOME set.
You need in your PATH %ANT_HOME%\bin as well as %JAVA_HOME%\bin.
You need to verify that ant.bat is in %ANT_HOME%\bin.
You can remove the #echo off line from ant.bat. It's the first line. This way, when you type ant as a command, it'll show you all the commands being executed.
Check the value of your %PATHEXT% variable. This are the extensions added to commands to locate executable commands.
For example, mine is
.COM;.EXE;.BAT;.CMD;.PL;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.PSC1
This means, it first tries ant.com, then ant.exe, and finally ant.bat before it executes ant.bat.
What output are you given? Are you getting ant is not recognized as an internal or external command error?
I found that the user variable if you'd got spaces in the path needed to be
ANT_HOME = "C:\Program Files\Adt\ant"
Note the enclosing quotes. Then %ANT_HOME%\bin in the path meant that ant worked in the command prompt from any location
just so that this question can be answered - based on our discussions I think the ANT_HOME variable should be set to c:\ant and not c:\ant\bin in order for it to work
After an hour or so of frustration, I found that I had made a very simple mistake:
In instances such as this one, where you add to your PATH variable, make sure you do not introduce any spaces. When I added %ANT_HOME%\bin to my PATH variable, I mistakenly added a space after the previous semicolon. This will cause anything after the space to be ignored.
Not sure if you solved this problem yet but from my experience, you need to replace the %ANT_HOME%with the actual path C:\ant. I also replace my JAVA_HOME with the actual path C:\Java\jdk\. Only then my Ant and Java commands start working properly. Hope this help you.
I've done this once before and have forgotton.
I need to run for example
c:/myfolder/anotherfolder/app.bat
from anywere i.e
c:/app.bat or c:/genericfolder/app.bat or c:/thisfolder/app
is it setting environment variables?
The easiest way is to add the location of the app to your "PATH" environment variable.