Questions tagged [path-variables]

PATH is an environment variable on various operating systems which specifies a list of directories where executable programs are located.

Filter by
Sorted by
Tagged with
2835 votes
27 answers
891k views

Is there an equivalent of 'which' on the Windows command line?

As I sometimes have path problems, where one of my own cmd scripts is hidden (shadowed) by another program (earlier on the path), I would like to be able to find the full path to a program on the ...
namin's user avatar
  • 37.7k
301 votes
25 answers
1.5m views

How to set JAVA_HOME in Linux for all users

I am new to Linux system and there seem to be too many Java folders. java -version gives me: java version "1.7.0_55" OpenJDK Runtime Environment (rhel-2.4.7.1.el6_5-x86_64 u55-b13) OpenJDK 64-Bit ...
Bosco's user avatar
  • 3,975
108 votes
10 answers
191k views

How to remove entry from $PATH on mac

I was trying to install Sencha Touch SDK tools 2.0.0 but could not run it properly. It created an entry in the $PATH variable. Later I deleted the sencha sdk tools folder but didn't realize that the ...
Tushar Koul's user avatar
  • 2,930
87 votes
5 answers
127k views

Passing an Array or List to @Pathvariable - Spring/Java

I am doing a simple 'get' in JBoss/Spring. I want the client to pass me an array of integers in the url. How do I set that up on the server? And show should the client send the message? This is what ...
Djokovic's user avatar
  • 1,021
48 votes
4 answers
46k views

'NODE_OPTIONS' is not recognized as an internal or external command

I'm on a windows 10 machine trying to run a build script from the git bash terminal. On my terminal node is recognized just fine, for example I get the version when I run node --version. But running ...
user avatar
42 votes
7 answers
69k views

Spring MVC: how to indicate whether a path variable is required or not?

I am doing a Spring web. For a controller method, I am able to use RequestParam to indicate whether a parameter it is required or not. For example: @RequestMapping({"customer"}) public String ...
curious1's user avatar
  • 14.4k
38 votes
4 answers
34k views

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

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 ...
Leon's user avatar
  • 709
36 votes
6 answers
71k views

Can @PathVariable return null if it's not found?

Is it possible to make the @PathVariable to return null if the path variable is not in the url? Otherwise I need to make two handlers. One for /simple and another for /simple/{game}, but both do the ...
Rihards's user avatar
  • 10.3k
35 votes
13 answers
349k views

Error in setting JAVA_HOME

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 ...
paul's user avatar
  • 4,399
33 votes
3 answers
42k views

Bind Path variables to a custom model object in spring

I have a class that models my request, something like class Venue { private String city; private String place; // Respective getters and setters. } And I want to support a RESTful URL ...
Senthil Babu's user avatar
  • 1,263
32 votes
12 answers
24k views

How do I manipulate $PATH elements in shell scripts?

Is there a idiomatic way of removing elements from PATH-like shell variables? That is I want to take PATH=/home/joe/bin:/usr/local/bin:/usr/bin:/bin:/path/to/app/bin:. and remove or replace the /...
dmckee --- ex-moderator kitten's user avatar
30 votes
11 answers
70k views

Why is Tensorflow not recognizing my GPU after conda install?

I am new to deep learning and I have been trying to install tensorflow-gpu version in my pc in vain for the last 2 days. I avoided installing CUDA and cuDNN drivers since several forums online don't ...
Sarosij Bose's user avatar
30 votes
1 answer
81k views

Multiple @PathVariable in Spring MVC

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 ...
user1389920's user avatar
29 votes
4 answers
37k views

@PathVariable in SpringBoot with slashes in URL

I have to get params from URL using @PathValiable in SpringBoot application. These params often have slashes. I don't have a control about what a user would enter in URL so I would like to get what he ...
Kirill's user avatar
  • 5,768
28 votes
1 answer
33k views

Can Spring MVC's REST framework accept query strings rather than PathVariables?

In all the tutorials and articles I have read regarding Spring 3's RESTful additions to Spring MVC, I have only ever seen one way for the use to pass in query data, via a @PathVariable, like so: @...
Ken Bellows's user avatar
  • 6,811
27 votes
3 answers
89k views

Handling ambiguous handler methods mapped in REST application with Spring

I tried to use some code as below: @RequestMapping(value = "/{id}", method = RequestMethod.GET) public Brand getBrand(@PathVariable Integer id) { return brandService.getOne(id); } @...
mikezang's user avatar
  • 2,385
27 votes
4 answers
58k views

Adding Git to PATH Variable - Can't find GitHub under AppData/Local

I was following this guide here on how to add Git to my Path variable so I can use it from the command line (Not just Git Bash). Installing Git in PATH with GitHub client for Windows To quote an ...
Richard Hamilton's user avatar
25 votes
3 answers
41k views

PathVariable in Spring Controller

I'm trying to map the url /locations/{locationId}/edit.html - that seems to work with this code: @Controller @RequestMapping( "/locations" ) public class LocationController { @RequestMapping( value ...
dtrunk's user avatar
  • 4,735
18 votes
3 answers
10k views

RStudio shows a different $PATH variable

Possible duplicate question, but I don't know the startup process of RStudio to tell if the problems are the same. I'm using RStudio Desktop v0.99.442 on Linux. From the console inside RStudio, I run ...
Josh Bradley's user avatar
  • 4,710
14 votes
3 answers
4k views

Where are Visual Studios Debugging settings saved?

When I change the Debugging settings in the Project Properties (in my case especially the Environment value) it is not saved to the project or solution file. Where is it saved?
jaba's user avatar
  • 755
13 votes
5 answers
79k views

Spring multiple path variables

In my Spring controller, I try to get 3 path variables: @RequestMapping("{language}/{country}/{term}/catalogue") - @PathVariable String language, @PathVariable String country, @PathVariable String ...
Noctem's user avatar
  • 143
11 votes
1 answer
17k views

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]

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 ...
Andrew Cheong's user avatar
10 votes
3 answers
17k views

Error: Program "/ndk-build.cmd" is not found in PATH

I am stuck with this following problem on Mac OS X(10.8.4) and eclipse JUNO since 10 days and I haven't found anything working on web. I have downloaded and unzipped the android NDK. After that, I ...
mohit's user avatar
  • 413
9 votes
12 answers
10k views

How to keep from duplicating path variable in csh

It is typical to have something like this in your cshrc file for setting the path: set path = ( . $otherpath $path ) but, the path gets duplicated when you source your cshrc file multiple times, how ...
dr_pepper's user avatar
  • 1,587
9 votes
1 answer
17k views

How to use path variable instead of request parameter with AngularJS $resource

There is probably an easy way to do this but I can't seem to find out how. When I click on my delete button shown below angular hits the following url: http://localhost:8080/rest/managedCourse?id=3 ...
testing123's user avatar
  • 11.4k
8 votes
2 answers
6k views

Change the order of executable commands on Windows

Sometimes I need to change the order of an executable command that only shares the name. Let me show you a simple example: λ where find C:\Windows\System32\find.exe C:\Program Files\Git\usr\bin\find....
xbelanch's user avatar
  • 864
7 votes
2 answers
21k views

How can I change PATH variable in zsh?

I want to change my PATH variable in zsh. Problem: I don't understand where in the .zshrc file I have to make modifications. Normally, I would look for the assignment to the PATH variable and set the ...
aurumpurum's user avatar
  • 1,002
7 votes
2 answers
34k views

python is not recognized as an internal or external command [duplicate]

I try to install this software. For that Python is required. I installed Python from here of name python-2.7.3.msi. I am working on Windows 7. Hierarchy of my Python software is same as in this ...
devsda's user avatar
  • 4,202
7 votes
2 answers
11k views

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

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 ...
Seamus Nanatchk's user avatar
7 votes
2 answers
3k views

Spring MVC return HTTP 406 on URL with dot

I have found one very strange behaviour of Spring MVC. I have controller with method: @RequestMapping (value = "/delete/{id:.*}", method = RequestMethod.DELETE) public ResponseEntity<Response> ...
Vartlok's user avatar
  • 2,559
7 votes
3 answers
24k views

Jenkins not starting as a windows service

I have followed the steps to run jenkins as a window service . Followed from URL : https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+as+a+Windows+service But jenkins is not starting as a ...
anoop's user avatar
  • 71
7 votes
2 answers
6k views

@PathVariable and @RequestParam not working together

I have below code in my controller: @RequestMapping(value = "/child/{nodeId}/{relType}",method = RequestMethod.GET, produces=MediaType.APPLICATION_JSON) public Iterable<Node> ...
mahendra kawde's user avatar
6 votes
3 answers
13k views

Update Windows path variable when Java is updated automatically?

This question asks how to setup your path variable in Windows to include the Java bin directory allowing you to use the javac command from the prompt. The solution posted to this question states you ...
Mark Norgren's user avatar
  • 2,014
6 votes
1 answer
36k views

Spring Rest Controller, Path Variables on an overriden method's arguement

I have a controller annotated with @RestController and it implements an interface: public interface ContratEndpoint { String ROOT = "/api/contrats"; String GET_CONTRAT = ""; ...
Rafik BELDI's user avatar
  • 4,148
6 votes
1 answer
2k views

PATH variable different when cmd was run through the context menu

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 ...
Forivin's user avatar
  • 15.1k
6 votes
1 answer
3k views

How do I use boost bcp?

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. ...
NickLokarno's user avatar
6 votes
1 answer
6k views

@PathVariable not binding with @RequestBody

When I don't use @RequestBody the @PathVariable id is automatically set at my Entity class. But if I use @RequestBody it's not. I need that the id of Entity is set before my GenericValidator executes ...
dblank's user avatar
  • 196
6 votes
0 answers
531 views

File protocol with Windows system path variables

I want to know if there is any way to use Windows system path variables with the file protocol. Examples: file:///%WINDIR%\System32\calc.exe file:///C:\Users\%USERNAME%\Desktop The above examples ...
Lucas NN's user avatar
  • 778
5 votes
2 answers
7k views

How to set environment variable for C# debugging

I'm trying to load managed and native dll into my C# application. I want to set the PATH environment variable, so the application can find the dlls to be loaded. In C++ that's easy, but how can I do ...
Ralph Tandetzky's user avatar
5 votes
4 answers
35k views

I have 64 bit Java, but no jdk folder in my Program Files\Java folder?

I'm trying to set the JAVA_HOME environment variable - I need to set it to the 64 bit version. To make sure I have the 64 bit version, I checked java -version by the cmd prompt, and got the output: ...
u3l's user avatar
  • 3,392
5 votes
1 answer
1k views

How to make the resolution of the user path having priority over the system path?

In windows system, the order of the different paths in PATH variable environnement defines the resolution priority : Example: If the path is constituted of the following : C:/Dir1;C/Dir2 And ...
testtest8's user avatar
5 votes
2 answers
309 views

Spring MVC test - Injecting a mock repository when ever the integration test requires a specific type

I have written a web application using spring mvc 3. It provides a single endpoint that returns JSON. I did having it running successfully using url paramters but now I need to change this to use path ...
Jeremy's user avatar
  • 3,468
5 votes
2 answers
3k views

Do I need the Perl bin directory in the PATH to run perl programs (on Windows)?

Traditionally, I would just have C:\perl\bin in my PATH variable, but due to version conflicts I would like to keep different perl versions at locations C:\Perl-versionXY\bin and just execute my Perl ...
Martin Ba's user avatar
  • 38.1k
5 votes
1 answer
119 views

What's the meaning of "a trimmed down value for PATH env var" in the Anaconda release notes?

I uninstalled "Anaconda3 5.2.0" and reinstalled "Anaconda3 2020.07" on my Windows computer two days ago. As recommended by the installer, when I installed Anaconda3 5.2.0 last year ...
Gödel's user avatar
  • 592
5 votes
0 answers
1k views

Why doesn't the Python installer automatically add itself to the PATH variable on Windows?

Just for clarification: I know how to do this, but it seems silly that the developers don't automatically check the option to add it to the Windows PATH (Not to mention that it's small and easy to ...
UghThatGUyAgain's user avatar
4 votes
9 answers
13k views

Sails.js - PATH variable - sails command not recognized

After I npm installed Sails.js on Windows Server 2008, "sails" command is not recognized. Can someone give me a hint on what values to use in the PATH variable? As I understand it is Node.exe that ...
Arman Bimatov's user avatar
4 votes
2 answers
5k views

Multiple requestmapping value with path variables from thymeleaf

I have to send two data from thymeleaf to controller like this in a th:href: <table id="itemTable" class="deneme"> <tbody> <tr th:each="item : ${list.items}"> <td&...
Utku Soytaş's user avatar
  • 1,495
4 votes
1 answer
8k views

Run .exe anywhere in cmd without PATH variable

This works (Notepad++): C:\Anywhere> start notepad++ hello.txt And this works (SoX for removing silence in sounds): C:\Anywhere> sox in.wav out1.wav silence 1 0.1 1% Yet, my PATH variable ...
Antonio AN's user avatar
4 votes
1 answer
2k views

Change the default Java path to other path in FreeBSD

I have script to get the java path from this command: readlink -f $(which java). But it displays wrong path : /usr/local/bin/javavm While I need to have this path : /usr/local/openjdk8/bin/java I ...
Ratnesh's user avatar
  • 1,672
4 votes
1 answer
4k views

Spring MVC - Edit the response URL with path variables

I'm going to use the StackOverflow's user profile's page as an example. Let's say we have this URL: https://stackoverflow.com/users/2036414/userlogin If we change (edit in the browser's url bar) the ...
vitorgreati's user avatar

1
2 3 4 5 6