How-to articles, tricks, and solutions about PATH

Change composer global path (Windows)

To change the global path for Composer on Windows, you will need to update the system environment variables.

Eclipse - no Java (JRE) / (JDK) ... no virtual machine

If you see an error message in Eclipse saying "no Java (JRE) / (JDK) ... no virtual machine", it means that Eclipse is unable to find a valid Java installation on your system.

How can I find where Python is installed on Windows?

To find where Python is installed on Windows, you can follow these steps:

How can I safely create a nested directory?

To safely create a nested directory in python, you can use the os module and the makedirs function.

How do I get the filename without the extension from a path in Python?

To get the filename without the extension from a file path in Python, you can use the os.path.splitext() function.

How to get an absolute file path in Python

You can use the os.path.abspath() function to get the absolute file path of a file in Python.

How to Get the Absolute Path to the Initially Run Script in PHP

In this short snippet, you will find a reasonable and accurate solution to a common PHP: how to get the absolute path to the initially run script.

How to get the path of a running JAR file?

To get the path of a running JAR file, you can use the java.lang.Class class's getProtectionDomain method and then the getCodeSource method.

How to use glob() to find files recursively?

You can use the glob.glob() function from the glob module to search for files recursively.

Importing modules from parent folder

In Python, you can use the sys.path.append() method to add the parent directory to the list of paths where Python looks for modules.

javac is not recognized as an internal or external command, operable program or batch file [closed]

The error javac is not recognized as an internal or external command, operable program or batch file occurs when you try to run the javac command from the command prompt, but the command prompt cannot find the javac executable.

mkdir -p functionality in Python

The os.makedirs() function in Python can be used to create a directory with the -p option, which will create the entire directory path, including any missing parent directories.

PHP Fatal Error Failed opening required File

A "PHP Fatal Error: Failed opening required file" error usually occurs when a PHP script tries to include a file that does not exist or cannot be accessed.