path-variables

Error in setting JAVA_HOME

断了今生、忘了曾经 提交于 2019-12-11 13:54:00
问题 I have recently downloaded Maven and followed the instructions given on this this page. I already have ant installed on my machine. Now, if I want to verify that Maven is installed perfectly or not it is giving me error that JAVA_HOME is not set correctly, but same works perfectly fine for ANT. For Maven I tried : 1. open cmd 2. type mvn -version 3. Error appeared : C:\Users\Admin>mvn -version ERROR: JAVA_HOME is set to an invalid directory. JAVA_HOME = "C:\Program Files\Java\jre7\bin" Please

perl script lacking path for compiler - what compiler?

微笑、不失礼 提交于 2019-12-11 05:56:18
问题 When following the openDDS install guide I attempt to run configure from within the command prompt but receive this output: C:\Users\Supervisor\Desktop\opendds>C:\Users\Supervisor\Desktop\opendds\configure.cmd Can't find a compiler, set PATH or run this script with the --compiler option. For Microsoft Visual C++, run this script from the Visual Studio Command Prompt. Stopped at configure line 336. This error relates to this section of code within the perl script (as seen by the line number):

Why wouldn't I want to add Python.exe to my System Path at install time?

倾然丶 夕夏残阳落幕 提交于 2019-12-10 13:23:29
问题 I'm reinstalling Python, on Windows 7, and one of the first dialog boxes is the Customize Python screen. The default setting for "Add Python.exe to Path" is "Entire feature will be unavailable." I always change this to "Will be installed on local hard drive." It's not an issue, changing the system environment variables is a snap, but is there any upside to leaving this un-ticked? 回答1: If you only have one version of Python installed, it won't matter. If you have multiple versions installed,

PATH variable different when cmd was run through the context menu

瘦欲@ 提交于 2019-12-10 08:40:47
问题 I just spent the last hour on trying to find out why the hell my PATH variable wasn't updating for my cmd.exe. Now I figured out that it kind of did update, but only for certain conditions... I updated it via Win+Break -> Change Settings -> Advanced -> Environment Variables... Now when I open a new commandline via Win+R -> cmd -> Enter the PATH variable shows whatever I set it to. But when I open a new commandline via Shift+Rightclick into folder -> Open command window here , the PATH

In Windows cmd, how do I run an executable in the current directory (instead of one with the same name in %PATH%) without referring to the full path? [closed]

此生再无相见时 提交于 2019-12-08 19:17:57
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . I'm trying to run an executable foobar from a directory, but Windows also happens to have an executable (or command) named foobar . In UNIX, I'd just write ./foobar but Windows cmd doesn't seem to understand that. Given that I don't want to add this directory to my %PATH% , is there another way to run the

PATH variable different when cmd was run through the context menu

纵饮孤独 提交于 2019-12-05 15:59:22
I just spent the last hour on trying to find out why the hell my PATH variable wasn't updating for my cmd.exe. Now I figured out that it kind of did update, but only for certain conditions... I updated it via Win+Break -> Change Settings -> Advanced -> Environment Variables... Now when I open a new commandline via Win+R -> cmd -> Enter the PATH variable shows whatever I set it to. But when I open a new commandline via Shift+Rightclick into folder -> Open command window here , the PATH variable shows outdated content. My question: Why is this happening, what can I do about it? As pointed out by

How do I use boost bcp?

情到浓时终转凉″ 提交于 2019-12-04 06:12:15
I have the bcp tool, it came pre-built with the boost installer. I'd like to extract the dependencies I need from boost into a smaller file, since I'd like to be able to build this project at school. I'm trying to use bcp, but I don't understand how to use it, despite these instructions: http://www.boost.org/doc/libs/1_52_0/tools/bcp/doc/html/index.html#bcp.syntax I've tried typing: bcp boost/thread.hpp /"E:\documents\Dropbox\School\Comp 445\Comp445_Assign2_v2\boost2" from the command prompt, from within my boost folder: C:\Program Files (x86)\boost\boost_1_51 It just spits out a "usage" guide

Multiple @PathVariable in Spring MVC

﹥>﹥吖頭↗ 提交于 2019-12-03 16:19:09
问题 Couldn't find an answer to this unfortunately so hoping someone can help. In Spring MVC 3.1.0 here is my method: @RequestMapping(value = "/{app}/conf/{fnm}", method=RequestMethod.GET) public ResponseEntity<?> getConf(@PathVariable String app, @PathVariable String fnm) { log.debug("AppName:" + app); log.debug("fName:" + fnm); ... return ... } I've seen some examples online and it appears there is no problem having multiple @PathVariables in theory. However when I do it, both "app" and "fnm"

Handling ambiguous handler methods mapped in REST application with Spring

岁酱吖の 提交于 2019-12-03 14:30:42
I tried to use some code as below: @RequestMapping(value = "/{id}", method = RequestMethod.GET) public Brand getBrand(@PathVariable Integer id) { return brandService.getOne(id); } @RequestMapping(value = "/{name}", method = RequestMethod.GET) public List<Brand> getBrand(@PathVariable String name) { return brandService.getSome(name); } But I got error like this, how can I do? java.lang.IllegalStateException: Ambiguous handler methods mapped for HTTP path 'http://localhost:8080/api/brand/1': {public java.util.List com.zangland.controller.BrandController.getBrand(java.lang.String), public com

Spring mvc 3 : How to get path variable in an interceptor?

北城余情 提交于 2019-12-03 09:21:00
问题 In Spring MVC controller, I can get path variable using @PathVariable to get the value of a variable defined in @RequestMapping. How can I get the value of the variable in an interceptor? Thank you very much! 回答1: The thread linked to by Pao worked a treat for me In the preHandle() method you can extract the various PathVariables by running the following code Map pathVariables = (Map) request.getAttribute(HandlerMapping.URI_TEMPLATE_VARIABLES_ATTRIBUTE); 回答2: There is a thread in the Spring