Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?


Setting the PATH Environment Variable


Before setting the PATH environment variable, download the virtual machine (VM) environment for developing applications. For information on this download, see Juniper Extension Toolkit Getting Started Guide.

PATH is the system variable that your operating system uses to locate needed executables from the command line or terminal window. Using this procedure eliminates the need to specify the entire path to executables located in your sandbox.

To set the PATH variable:

  1. Open a terminal in the VM.
  2. Locate the .bashrc file in the /home/vagrant directory.
    vagrant@jet-vm:~$ pwd
    vagrant@jet-vm:~$ ls -a
  3. Add the path from /root to the /junos-jet-sb/bin directory to the PATH variable in .bashrc.

    For example:

    vagrant@jet-vm:~$ echo 'PATH=$PATH:/usr/local/junos-jet/16.1R1.3/junos-jet-sb/bin'>>~/.bashrc
  4. Issue the env command to ensure the PATH variable contains the directory path you just added.
    vagrant@jet-vm:~$ env