Update Bash Profile or ZSHRC File and Create the Development Directory on Mac

Modify your bash profile or ZSHRC file to include the variables required by the Oracle Analytics Desktop scripts. Then create the development directory to contain your development environment.

  1. To modify your Bash Profile, go to the home directory and check if bash_profile is visible. If not, press Command + Shift + . to make bash_profile visible.
    To modify your ZSHRC file, open Terminal and run this command: .
    open ~/.zshrc
  2. Add these lines to bash_profile or ZSHRC.
    In PLUGIN_DEV_DIR specify the location of the development directory, for example /Users/<username>/Documents/dv-custom-plugins.
    export DVDESKTOP_SDK_HOME=/Applications/dvdesktop.app/Contents/Resources/app.nw 
    
    export PLUGIN_DEV_DIR=/Users/<username>/Documents/dv-custom-plugins 
    
    export PATH=${DVDESKTOP_SDK_HOME}/tools/bin:$PATH 
    
    export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-1.8.jdk/Contents/Home/
  3. For bash_profile, open Terminal and run this command to apply the changes:
    source ~/.bash_profile
    For the ZSHRC file, open Terminal and run this command to apply the changes:
    source ~/.zshrc
  4. To create the extension development directory, open Terminal and run this command:
    mkdir $PLUGIN_DEV_DIR