path

exec-maven-plugin says cannot run specified program, even though it is on the PATH

故事扮演 提交于 2020-01-11 04:39:06
问题 Edit 20140716 : Solution found tl;dr = exec-maven-plugin does not recognise .cmd files, but only .bat files, as executable scripts. Rename grunt.cmd --> grunt.bat , bower.cmd --> bower.bat , etc. as a workaround. Having done npm install -g grunt-cli on my system, grunt is most certainly on the PATH When I run maven install however, this doesn't seem to register. [ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (build-spa-bower) on project foobar: Command execution

How to set custom search paths for the terminfo database when building ncurses from source

六月ゝ 毕业季﹏ 提交于 2020-01-10 15:40:41
问题 How do I set custom search paths for the terminfo database when building ncurses from source? To be more specific, how do I force the primary directory to be searched in '~/.terminfo'? 回答1: From the terminfo manpage: Fetching Compiled Descriptions If the environment variable TERMINFO is set, it is interpreted as the pathname of a directory containing the compiled description you are working on. Only that directory is searched. If TERMINFO is not set, the ncurses version of the terminfo reader

How to remove the Win10's PATH from WSL

≡放荡痞女 提交于 2020-01-10 14:10:14
问题 I use Windows Subsystem Linux(Ubuntu 18.04) in my Win10, and I install a Maven in it. Besides, I install a maven in Win10 before. Now when I used mvn compile in WSL, it told me that maven compile fail. I use which mvn and find that it references to the Maven installed in Win10. Besides, I run env and find that Win10's Path is added to the WSL's Path. I don't want to use any thing in Win10's Path when I use WSL, how should I do? 回答1: For Windows build LOWER than 17713: WSL uses WSL

How can I construct OS-independent file paths in Perl including an optional Windows drive letter?

旧街凉风 提交于 2020-01-10 10:49:12
问题 I need to construct a file path inside a Perl script. Which path separator should I use to allow my script to work on both Windows and Unix? Keep in mind that Windows needs a drive letter. 回答1: You want File::Spec's catpath : catpath() Takes volume, directory and file portions and returns an entire path. Under Unix, $volume is ignored, and directory and file are concatenated. A '/' is inserted if need be. On other OSes, $volume is significant. $full_path = File::Spec->catpath( $volume,

How to preset the value of p:fileUpload

非 Y 不嫁゛ 提交于 2020-01-10 05:46:09
问题 I am using <p:fileUpload> component. Is it possible to preselect and show the selected file in field before the browse button? I am using Mojarra 2.0.3, PrimeFaces 2.2 RC2, GlassFish 3. 回答1: No, if this was possible, this would have been a huge security hole. You would then in theory be able to let the selected file point to C:/path/to/passwords.txt and then use JavaScript to submit the form and so silently get a file with sensitive data from the client without its permission. See also: How

Running script in crontab--reboot: command not found

穿精又带淫゛_ 提交于 2020-01-10 05:32:20
问题 I've set a script in my root crontab that is supposed to restart my machine with the reboot command. However, I am getting a reboot: command not found despite the fact that reboot is in the root user's path. $ sudo su $ which reboot /sbin/reboot $ echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/go/bin My script: #!/bin/bash ping 8.8.8.8 -c 1 > /dev/null 2>&1; exit_code=$? time_stamp=$(date +"%Y%m%d-%H%M") if [ $exit_code -ne 0 ]; then (1>&2 echo "$time_stamp

Java error - cannot find library in java.library.path?

眉间皱痕 提交于 2020-01-10 05:24:06
问题 I am getting a error message like this: The library libraryname .dll could not be loaded by Windows. Make sure that the library is in you Path environment variable. Exception in thread "main" java.lang.UnsatifiedLinkError: no libraryname in java.library.path. This error is from me trying to run a jar file on Windows XP via cmd. I am wondering, where exactly is java.library.path? I've already added C:\Program Files\Java\jdk1.6.0_26 to my PATH but it still gives me the error. How would you go

IPython sys.path different from python sys.path

独自空忆成欢 提交于 2020-01-10 03:56:08
问题 I generally use IPython and only recently noticed that the the search path for imports is wrong in the regular python shell. From what I understand, sys.path inherits from PYTHONPATH (although I don't know where PYTHONPATH lives), is this different in IPython? I'm worried that this effecting installations. For instance I just tried pip install --upgrade gensim which failed because it couldn't resolve the scipy dependency, which I already have installed. So I dove a little bit deeper and found

How can I access the “Documents and Settings” folder?

夙愿已清 提交于 2020-01-09 11:13:00
问题 I'm using C# .NET 4 with VS 2010. When Iterating over some paths, I'm running this line: files = Directory.GetFiles(path, searchPattern); I get an exception when the path is the documents and settings folder. How can I access it? And no, I don't want to skip the folder with a try and catch. I want to be able to access it somehow. Edit: I got a follow up question. As I told you, I'm iterating over the paths. Is there a way to use Environment.GetFolderPath but somehow idetifying the correct

.load() and relative paths

泄露秘密 提交于 2020-01-09 11:11:03
问题 .load() is giving me trouble. I'm working on a section loader project and I just can't seem to fetch the file that I need. What I am trying to achieve : #sectionContainer is empty on document load, but on document ready it is 'filled' with Pages1.html . This is done by a JavaScript file sections.js . The JS file and the index.html are NOT in the same folder. Here is the site structure (I am running a lot of projects on my site) main folder Project 1 Project 2 (sectionLoaderTest/) index.html