Setting up Eclipse with JRE Path

You can add this line to eclipse.ini : -vm D:/work/Java/jdk1.6.0_13/bin/javaw.exe <– change to your JDK actual path -vmargs <– needs to be after -vm <path> But it’s worth setting JAVA_HOME and JRE_HOME anyway because it may not work as if the path environment points to a different java version. Because the next one to complain … Read more

How to escape colon (:) in $PATH on UNIX?

This is impossible according to the POSIX standard. This is not a function of a specific shell, PATH handling is done within the execvp function in the C library. There is no provision for any kind of quoting. This is the reason why including certain characters (anything not in the “portable filename character set” – … Read more

What’s the relative order with which Windows search for executable files in PATH?

See the command search sequence on Microsoft Docs The PATH and PATHEXT environmental variables each provide an element of the search sequence: PATH is the ordered list of directories “where” to look, and PATHEXT is the ordered list of file extensions (“what“) to look for (in case the extension isn’t explicitly provided on the command … Read more

Handling Multiple Query Parameters in Jersey

If you change the type of your item method parameter from String to a collection such as List<String>, you should get a collection that holds all the values you are looking for. @GET @Path(“/foo”) @Produces(“text/plain”) public String methodImCalling(@DefaultValue(“All”) @QueryParam(value = “item”) final List<String> item) { return “values are ” + item; } The JAX-RS specification … Read more

msys path conversion (or cygpath for msys?)

Update (Aug-2016): This question is no longer relevant, as msys2 now comes with cygpath in its installation. … I’ll summarize my research here. The cygpath equivalent in MSYS is to use this command: { cd /c/some/path && pwd -W; } | sed ‘s”https://stackoverflow.com/”\\|g’ The problem with this approach is that it requires existing path, e.g. … Read more